/*
Theme Name: ZonePlay24
Author: Your Name
Version: 1.0
*/

/* ============================================
   ROOT VARIABLES - EASY COLOR MANAGEMENT
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #2a8fbd;
    --color-primary-dark: #227599;
    --color-primary-light: #66c2ff;
    --color-primary-gradient: linear-gradient(135deg, #2a8fbd 0%, #227599 100%);
    
    /* Background Colors */
    --color-bg-dark: #020b03;
    --color-bg-card: #021004;
    --color-bg-card-light: #051405;
    --color-bg-black: #000000;
    
    /* Text Colors */
    --color-text-white: #ffffff;
    --color-text-gray: #d1d5db;
    --color-text-gray-light: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Accent Colors */
    --color-gold: #ffea00;
    --color-gold-dark: #cc7a00;
    --color-gold-gradient: linear-gradient(to bottom, #ffea00, #ffb703, #cc7a00);
    
    /* Glow Colors */
    --color-glow-primary: rgba(42, 143, 189, 0.4);
    --color-glow-primary-strong: rgba(42, 143, 189, 0.8);
    --color-glow-green: rgba(0, 255, 102, 0.3);
    --color-glow-green-strong: rgba(0, 255, 102, 0.6);
    
    /* Border Colors */
    --color-border-primary: rgba(42, 143, 189, 0.3);
    --color-border-primary-strong: rgba(42, 143, 189, 0.4);
    
    /* Shadow Colors */
    --shadow-primary: 0 0 25px rgba(42, 143, 189, 0.15);
    --shadow-primary-strong: 0 0 35px rgba(42, 143, 189, 0.3);
    --shadow-green: 0 0 20px rgba(0, 255, 102, 0.1);
    --shadow-green-strong: 0 0 35px rgba(0, 255, 102, 0.3);
    
    /* Fonts */
    --font-orbitron: 'Orbitron', sans-serif;
    --font-rajdhani: 'Rajdhani', sans-serif;
    --font-metal-mania: 'Metal Mania', cursive;
    
    /* Sizes */
    --header-height: 70px;
    --border-radius-lg: 2.5rem;
    --border-radius-xl: 3rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
body { 
    font-family: var(--font-rajdhani); 
    background-color: var(--color-bg-dark); 
}

.bonx-main-title { 
    font-family: var(--font-metal-mania); 
    letter-spacing: 2px;
    color: var(--color-text-white);
    text-shadow: 4px 4px 0px rgba(42, 143, 189, 0.4), 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* ============================================
   BONX BUTTON - DIAMOND CUT
   ============================================ */
.bonx-btn {
    position: relative;
    background: var(--color-gold-gradient);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    color: var(--color-text-white);
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 4px 10px var(--color-glow-primary));
}

.bonx-btn::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: var(--color-primary-gradient);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    z-index: -1;
}

.bonx-btn::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; height: 45%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0));
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    z-index: -1;
}

.bonx-btn:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 15px var(--color-glow-primary-strong));
}

/* ============================================
   ARCAD E PLAY BUTTON
   ============================================ */
.arcade-play-btn {
    position: relative;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 35% 35%, var(--color-primary) 0%, var(--color-primary-dark) 50%, #154c65 100%);
    border: 5px solid var(--color-text-white);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 4px 10px rgba(255, 255, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arcade-play-btn::before {
    content: '';
    position: absolute;
    top: 10px; left: 15px;
    width: 22px; height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-35deg);
}

.arcade-play-btn::after {
    content: '';
    position: absolute;
    bottom: 12px; right: 18px;
    width: 14px; height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.arcade-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px var(--color-glow-primary), inset 0 4px 10px rgba(255, 255, 102, 0.6);
}

/* ============================================
   ARCAD E ARROW BUTTON
   ============================================ */
.arcade-arrow-btn {
    position: relative;
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 35% 35%, var(--color-text-white) 0%, #a2d2df 45%, #1d5b79 100%);
    border: 3px solid var(--color-text-white);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.arcade-arrow-btn::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 28px;
    width: 6px;
    height: 6px;
    background: var(--color-text-white);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--color-text-white);
}

.arcade-arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px var(--color-glow-primary-strong), inset 0 3px 6px rgba(255, 255, 255, 1);
}

.arcade-arrow-btn:active {
    transform: scale(0.95);
}

/* ============================================
   DELAY HELPERS
   ============================================ */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ============================================
   GLOBAL ANIMATIONS
   ============================================ */
section:first-of-type {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PARTICLES
   ============================================ */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.gaming-particle {
    position: absolute;
    bottom: -20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    opacity: 0.6;
    animation: riseUp linear infinite;
}

@keyframes riseUp {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-105vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

/* ============================================
   HERO EFFECTS
   ============================================ */
.hero-scanline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(42, 143, 189, 0.05),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(42, 143, 189, 0.15);
    pointer-events: none;
    z-index: 2;
}

.hero-bg-blue {
    background-blend-mode: overlay;
    background-color: var(--color-primary);
}

/* ============================================
   CYBER GAME CARD
   ============================================ */
@keyframes hyperBlueGlow {
    0% {
        border-color: var(--color-primary);
        box-shadow: 
            0 0 25px var(--color-primary),
            0 0 50px rgba(42, 143, 189, 0.8),
            0 0 90px rgba(42, 143, 189, 0.5),
            inset 0 0 30px rgba(42, 143, 189, 0.6);
    }
    50% {
        border-color: var(--color-primary-light);
        box-shadow: 
            0 0 45px var(--color-primary),
            0 0 90px var(--color-primary),
            0 0 140px rgba(42, 143, 189, 0.9),
            inset 0 0 55px rgba(42, 143, 189, 0.9);
    }
    100% {
        border-color: var(--color-primary);
        box-shadow: 
            0 0 25px var(--color-primary),
            0 0 50px rgba(42, 143, 189, 0.8),
            0 0 90px rgba(42, 143, 189, 0.5),
            inset 0 0 30px rgba(42, 143, 189, 0.6);
    }
}

.cyber-game-card {
    border: 4.5px solid var(--color-primary);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    animation: hyperBlueGlow 1.4s infinite ease-in-out;
}

.cyber-game-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 
        0 0 60px var(--color-primary),
        0 0 120px var(--color-primary),
        0 0 180px rgba(42, 143, 189, 1),
        inset 0 0 70px rgba(42, 143, 189, 1);
    animation: none;
    transform: translateY(-8px) scale(1.03);
}

/* ============================================
   MOBILE PERFORMANCE
   ============================================ */
@media (max-width: 768px) {
    .cyber-game-card {
        animation: none !important;
        box-shadow: 0 0 15px var(--color-glow-primary) !important;
    }
}