/* ============================================
   FIREFLYTE - Page-Specific Styles
   Dark surveillance camera, fireflies at night
   ============================================ */

/* ============================================
   FIREFLYTE PAGE - Body & Background
   ============================================ */

.page-fireflyte {
    --fireflyte-accent: #b8d86a;
    --fireflyte-glow: rgba(184, 216, 106, 0.3);
    background:
        linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.92)),
        url('../../fireflyte/img/ss5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #c8c8c0;
}

/* CRT noise overlay */
.page-fireflyte::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 14% 22%, rgba(255,255,255,0.04), transparent),
        radial-gradient(1px 1px at 48% 12%, rgba(255,255,255,0.03), transparent),
        radial-gradient(1.5px 1.5px at 32% 68%, rgba(255,255,255,0.04), transparent),
        radial-gradient(1px 1px at 86% 44%, rgba(255,255,255,0.03), transparent),
        radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,0.025), transparent),
        radial-gradient(1px 1px at 22% 52%, rgba(255,255,255,0.03), transparent),
        radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,0.025), transparent),
        radial-gradient(1px 1px at 90% 18%, rgba(255,255,255,0.02), transparent);
    pointer-events: none;
    z-index: -2;
    opacity: 0.7;
}

/* Vignette — heavy, like a cheap camera lens */
.page-fireflyte::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   FIREFLYTE - Firefly Particles
   ============================================ */

.fireflyte-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.fireflyte-particle {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 3px);
    height: var(--size, 3px);
    border-radius: 50%;
    background: rgba(200, 230, 100, 0.95);
    box-shadow:
        0 0 6px rgba(200, 230, 100, 0.8),
        0 0 14px rgba(184, 216, 106, 0.5),
        0 0 28px rgba(184, 216, 106, 0.2);
    animation: fireflyteFloat var(--dur, 4s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes fireflyteFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    50% {
        transform: translate(var(--dx, 10px), var(--dy, -10px));
        opacity: 0.3;
    }
    65% {
        opacity: 0.95;
    }
    85% {
        opacity: 0.15;
    }
    100% {
        transform: translate(calc(var(--dx, 10px) * 2), calc(var(--dy, -10px) * 1.5));
        opacity: 0;
    }
}

/* ============================================
   FIREFLYTE - Title Card (replaces logo image)
   ============================================ */

.fireflyte-title-card {
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid rgba(184, 216, 106, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fireflyte-title-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg,
            rgba(255,255,255,0.015) 0,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
}

.fireflyte-title-text {
    font-family: 'Oxanium', monospace;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #c8c8c0;
    text-shadow:
        0 0 8px rgba(184, 216, 106, 0.3),
        0 0 20px rgba(184, 216, 106, 0.1);
}

/* ============================================
   FIREFLYTE PAGE - Theme Overrides
   ============================================ */

.page-fireflyte #site-header {
    position: relative;
    z-index: 3;
}

.page-fireflyte #main-content,
.page-fireflyte #site-footer {
    position: relative;
    z-index: 1;
}

.page-fireflyte .info-card,
.page-fireflyte .game-about {
    background: none;
    border: none;
    border-radius: 0;
    padding-left: 0;
}

.page-fireflyte .game-about {
    border-top: 1px solid rgba(184, 216, 106, 0.1);
    border-left: none;
}

.page-fireflyte .section-header h2,
.page-fireflyte .info-card h3 {
    color: var(--fireflyte-accent);
}

.page-fireflyte .badge-jam {
    color: var(--fireflyte-accent);
    border-color: var(--fireflyte-accent);
}

.page-fireflyte .spec-row {
    border-bottom-color: rgba(184, 216, 106, 0.1);
}

.page-fireflyte .main-screenshot {
    border-color: rgba(184, 216, 106, 0.12);
    background: rgba(0, 0, 0, 0.5);
}

.page-fireflyte .gallery-thumb--active,
.page-fireflyte .gallery-thumb:hover {
    border-color: var(--fireflyte-accent);
}

.page-fireflyte .about-text p {
    color: rgba(200, 200, 192, 0.85);
}

/* ============================================
   FIREFLYTE - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .fireflyte-particles {
        display: none;
    }

    .page-fireflyte::before,
    .page-fireflyte::after {
        animation: none !important;
    }
}
