/* WIN99 PROFESSIONAL DESIGN - FIRST PAGE RANKING OPTIMIZED */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Consistency */
:root {
    --primary: #E10600;
    --primary-dark: #B8050A;
    --accent: #f59e0b;
    --success: #10b981;
    --royal: #8b5cf6;
    --vip: #ec4899;
    --dark: #0a0a0a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --white: #ffffff;
    --text-light: #f9fafb;
    --text-gray: #d1d5db;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(225, 6, 0, 0.3);
    --shadow-success: 0 0 30px rgba(16, 185, 129, 0.3);
    --shadow-royal: 0 0 30px rgba(139, 92, 246, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 50%, var(--dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Hierarchy */
.font-display {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Professional Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Professional Buttons */
.cta-primary {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-success);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.4);
    border-color: var(--success);
}

.cta-secondary {
    background: linear-gradient(135deg, var(--royal) 0%, #7c3aed 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-royal);
    border: 2px solid transparent;
}

.cta-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
    border-color: var(--royal);
}

/* Navigation Enhancements */
nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(225, 6, 0, 0.1);
}

.nav-item:hover::before {
    width: 80%;
}

/* Logo Animations */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 30px rgba(225, 6, 0, 0.8);
        transform: scale(1.02);
    }
}

.logo-explosion {
    animation: logoExplosion 3s ease-in-out infinite;
}

@keyframes logoExplosion {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    50% { transform: scale(1.1) rotate(-1deg); }
    75% { transform: scale(1.05) rotate(0.5deg); }
}

/* Empire Cards */
.empire-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.empire-card:hover {
    transform: translateY(-8px) scale(1.03);
}

.empire-card article {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.empire-card article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.empire-card:hover article::before {
    left: 100%;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-coin {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    animation: floatUp 8s linear infinite;
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.coin-1 { left: 10%; animation-delay: 0s; }
.coin-2 { left: 30%; animation-delay: 2s; }
.coin-3 { left: 60%; animation-delay: 4s; }
.coin-4 { left: 80%; animation-delay: 6s; }

/* Live Status Indicator */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Mega Glow Effect */
.mega-glow {
    box-shadow: 0 0 50px rgba(225, 6, 0, 0.6);
    animation: megaGlow 3s ease-in-out infinite alternate;
}

@keyframes megaGlow {
    0% { 
        box-shadow: 0 0 50px rgba(225, 6, 0, 0.6);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 0 80px rgba(225, 6, 0, 0.9);
        filter: brightness(1.1);
    }
}

/* Hero Animations */
.hero-slide {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionReveal 0.8s ease-out forwards;
}

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feed Item Animation */
.feed-item {
    animation: feedSlideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes feedSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Support Float */
.support-float {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Reward Cards */
.reward-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .cta-primary, .cta-secondary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .glass-effect {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .float-coin {
        font-size: 1.5rem;
    }
    
    .mega-glow {
        box-shadow: 0 0 30px rgba(225, 6, 0, 0.5);
    }
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.cta-primary:focus,
.cta-secondary:focus,
.nav-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Print Styles */
@media print {
    .floating-elements,
    .support-float,
    nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}