/* ===================================
   RV-CREW Gaming Community
   Main Stylesheet
   =================================== */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */
.background-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Content */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    text-align: center;
}

/* Logo Container with Glow Animation */
.logo-container {
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.9));
    }
}

/* Subtitle */
.subtitle {
    font-size: 1.25rem;
    color: #e5e5e5;
    max-width: 28rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel Button - Purple Gradient */
.btn-panel {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-panel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Forum Button - Pink/Rose Gradient */
.btn-forum {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-forum:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

/* Discord Button - Cyan/Blue Gradient */
.btn-discord {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-discord:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

/* Download GTA Button - Orange/Yellow Gradient */
.btn-download {
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

/* Button Active State */
.btn:active {
    transform: scale(0.98);
}

/* Particles Container */
.particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(249, 115, 22, 0.6);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .buttons-container {
        flex-direction: row;
        gap: 1rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .content {
        gap: 2.5rem;
    }
    
    .logo {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 280px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 160px;
    }
}

/* Selection Styles */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #ffffff;
}

/* Focus Styles for Accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.5);
}

.btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-container {
        animation: none;
        filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.7));
    }
}

/* Loading State */
body.loading .content {
    opacity: 0;
}

body:not(.loading) .content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Custom Scrollbar (for any scrollable elements) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #f472b6);
}
