/* Extracted from gaming.php */

/* ===================================
   GAMING PAGE - CYBERPUNK STYLE
   =================================== */


body {
    background: #0a0a0f !important;
}

/* Sticky Header */
header {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #0a0a0f !important;
}

/* Footer visibility */
footer {
    position: relative;
    z-index: 10;
    background: #0a0a0f !important;
}

:root {
    --gaming-bg: #0a0a0f;
    --gaming-primary: #00d9ff;
    --gaming-secondary: #ff00ff;
    --gaming-accent: #00ff88;
    --gaming-dark: #12121a;
    --gaming-card: rgba(18, 18, 26, 0.8);
    --gaming-text: #e0e0e0;
    --gaming-glow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.gaming-page {
    background: transparent;
    min-height: 100vh;
    color: var(--gaming-text);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* === 1. CYBER GRID BACKGROUND === */
.cyber-grid-canvas {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === 2. GLITCH TEXT EFFECT === */
.glitch-text {
    position: relative;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: var(--gaming-glow);
    cursor: pointer;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--gaming-secondary);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: var(--gaming-primary);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* === HERO SECTION === */
.gaming-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.gaming-hero__content {
    max-width: 900px;
}

.gaming-hero__sub {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    letter-spacing: 0.05em;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    min-height: 1.5em;
}

/* === TYPING EFFECT === */
.typing-text {
    display: inline;
    border-right: 2px solid var(--gaming-primary);
    padding-right: 5px;
    animation: cursor-blink 0.7s step-end infinite;
}

.typing-text.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes cursor-blink {
    0%, 100% { border-color: var(--gaming-primary); }
    50% { border-color: transparent; }
}

.gaming-hero__ping {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.ping-box {
    background: var(--gaming-card);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 24px;
    padding: 45px 80px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ping-box:hover {
    border-color: var(--gaming-primary);
    box-shadow: var(--gaming-glow);
    transform: translateY(-5px);
}

.ping-box--west {
    border-color: var(--gaming-accent);
}

.ping-box--west:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.ping-box__label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.ping-box__value {
    font-size: 5.5rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
}

.ping-box__value--bad { color: #ff4444; }
.ping-box__value--good { color: var(--gaming-accent); }

.ping-box__unit {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
}

/* === 3. BENTO GRID WITH 3D CARDS === */
.bento-section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.bento-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--gaming-card);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gaming-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    border-color: var(--gaming-primary);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
    transform: translateY(-10px) rotateX(5deg);
}

.bento-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    fill: var(--gaming-primary);
}

.bento-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.bento-card__desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.bento-card--peering .bento-card__icon { fill: var(--gaming-primary); }
.bento-card--jitter .bento-card__icon { fill: var(--gaming-secondary); }
.bento-card--speed .bento-card__icon { fill: var(--gaming-accent); }
.bento-card--uptime .bento-card__icon { fill: #ffaa00; }

.bento-card--peering:hover { border-color: var(--gaming-primary); box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3); }
.bento-card--jitter:hover { border-color: var(--gaming-secondary); box-shadow: 0 20px 40px rgba(255, 0, 255, 0.3); }
.bento-card--speed:hover { border-color: var(--gaming-accent); box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3); }
.bento-card--uptime:hover { border-color: #ffaa00; box-shadow: 0 20px 40px rgba(255, 170, 0, 0.3); }

/* === GAME SELECTOR === */
.game-selector {
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.game-btn {
    background: var(--gaming-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
}

.game-btn:hover, .game-btn.active {
    border-color: var(--gaming-primary);
    color: #fff;
    box-shadow: var(--gaming-glow);
}

.game-btn img {
    width: 42px;
    height: 42px;
    width: 42px;
    height: 42px;
}

/* === 6. SCANNER FORM === */
.form-section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.scanner-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gaming-card);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.scanner-form::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gaming-primary), transparent);
    animation: scanner-line 3s ease-in-out infinite;
}

@keyframes scanner-line {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.scanner-form__title {
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.scanner-form__price {
    text-align: center;
    font-size: 1.4rem;
    color: var(--gaming-accent);
    margin-bottom: 30px;
}

.scanner-form__group {
    margin-bottom: 20px;
}

.scanner-form__input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-size: 1.15rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.scanner-form__input:focus {
    outline: none;
    border-color: var(--gaming-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.scanner-form__input::placeholder {
    color: rgba(255,255,255,0.4);
}

.scanner-form__btn {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    width: 100%;
    background: linear-gradient(135deg, var(--gaming-primary), var(--gaming-accent));
    border: none;
    border-radius: 12px;
    padding: 18px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.scanner-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.scanner-form__btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.scanner-form__btn:active::after {
    width: 300px;
    height: 300px;
}

/* === NIGHT MODE TOGGLE === */
.night-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background: var(--gaming-card);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gaming-text);
}

.night-toggle:hover {
    border-color: var(--gaming-primary);
    box-shadow: var(--gaming-glow);
}

.night-toggle__icon {
    font-size: 1.4rem;
}

/* === 4. NEON PARTICLES === */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--gaming-primary);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px var(--gaming-primary);
}

/* === OVERCLOCK EASTER EGG === */
.gaming-page.overclock {
    --gaming-primary: #ff0040;
    --gaming-accent: #ff8800;
}

.gaming-page.overclock .glitch-text {
    animation: overclock-pulse 0.5s infinite;
}

@keyframes overclock-pulse {
    0%, 100% { text-shadow: 0 0 20px #ff0040, 0 0 40px #ff0040; }
    50% { text-shadow: 0 0 40px #ff0040, 0 0 80px #ff0040, 0 0 120px #ff8800; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .gaming-hero__ping {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .ping-box {
        width: 100%;
        max-width: 300px;
    }
    
    .game-selector {
        gap: 10px;
    }
    
    .game-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .night-toggle {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    position: relative;
    z-index: 5;
}
.faq-section__title {
    text-align: center;
    font-size: 2rem;
    color: var(--gaming-primary);
    margin-bottom: 40px;
    text-transform: uppercase;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--gaming-card);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--gaming-primary);
    box-shadow: var(--gaming-glow);
}
.faq-item[open] {
    border-color: var(--gaming-primary);
}
.faq-item__question {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gaming-primary);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-item__question::after {
    transform: rotate(45deg);
}
.faq-item__answer {
    padding: 0 24px 20px;
    color: var(--gaming-text);
    line-height: 1.7;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}
.success-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.success-modal__content {
    background: linear-gradient(135deg, #12121a 0%, #1a1a2e 100%);
    border: 2px solid var(--gaming-primary);
    border-radius: 20px;
    padding: 50px 60px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.3), inset 0 0 60px rgba(0, 217, 255, 0.05);
    animation: modalSlideIn 0.4s ease;
    max-width: 500px;
}
@keyframes modalSlideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.success-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gaming-text);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.success-modal__close:hover {
    color: var(--gaming-primary);
    background: rgba(0, 217, 255, 0.1);
    transform: rotate(90deg);
}
.success-modal__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--gaming-primary), var(--gaming-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    animation: iconPulse 1.5s ease infinite;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 136, 0.6); }
}
.success-modal__title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.success-modal__text {
    color: var(--gaming-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.success-modal__text span {
    color: var(--gaming-primary);
    font-weight: 600;
}
.success-modal__btn {
    background: linear-gradient(135deg, var(--gaming-primary), var(--gaming-secondary));
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.success-modal__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Hide night toggle and green call button on Gaming page */
.night-toggle,
.btnCall {
    display: none !important;
}
