/* ==========================================================================
   Geometry Dash Unblocked - High-Performance Arcade Stylesheet
   Optimized for 100/100 Core Web Vitals & Mobile-First Performance
   ========================================================================== */

:root {
    --bg-dark: #0a0d14;
    --bg-card: #131824;
    --bg-card-hover: #1b2234;
    --bg-accent: #1e2638;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --neon-cyan: #00e5ff;
    --neon-green: #00ff88;
    --neon-yellow: #ffe600;
    --neon-pink: #ff007f;
    --neon-purple: #a855f7;
    --neon-orange: #ff6b35;
    --border-color: #242f45;
    --border-glow: rgba(0, 229, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-heading: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.35);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-cube {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cubeSpin 6s infinite ease-in-out;
}

@keyframes cubeSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.logo-cube::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #0a0d14;
    border-radius: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.search-box {
    position: relative;
}

.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px 8px 36px;
    color: #fff;
    font-size: 14px;
    width: 210px;
    transition: var(--transition);
}

.search-input:focus {
    width: 260px;
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* AdSense Monetization Zones (100% Policy Compliant) */
.ad-slot-wrapper {
    margin: 22px auto;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.ad-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.ad-slot-box {
    background: rgba(19, 24, 36, 0.6);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    min-width: 320px;
    max-width: 100%;
    color: var(--neon-cyan);
    font-size: 13px;
    font-family: monospace;
    overflow: hidden;
}

.ad-slot-header {
    max-width: 970px;
}

.ad-slot-bottom-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 13, 20, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

.ad-sticky-close {
    position: absolute;
    right: 15px;
    top: -12px;
    background: #e11d48;
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

/* Hero & US SEO Headline */
.hero-section {
    padding: 24px 0 16px;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(19, 24, 36, 0.95), rgba(15, 23, 42, 0.98)), 
                radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.12), transparent 45%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 36px;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-green));
}

.hero-title {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 820px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Game Player Container */
.game-player-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    transition: var(--transition);
}

.game-player-wrapper {
    position: relative;
    width: 100%;
    height: min(620px, 75vh);
    min-height: 450px;
    background: #000;
    overflow: hidden;
}

@media (max-width: 768px) {
    .game-player-wrapper {
        height: 420px;
        min-height: 350px;
    }
}

#iframe-player-box,
#canvas-player-box,
.game-player-wrapper iframe,
.game-player-wrapper canvas,
.game-iframe,
#geometry-game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    display: block;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

/* Theater Mode & Fullscreen */
.game-player-section.theater-mode {
    max-width: 100vw !important;
    border-radius: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    z-index: 1100;
}

.game-player-section.theater-mode .game-player-wrapper {
    height: 82vh !important;
    max-height: 850px !important;
}

:fullscreen .game-player-wrapper,
:-webkit-full-screen .game-player-wrapper {
    height: 100vh !important;
    max-height: 100vh !important;
}

.lights-off-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lights-off-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.game-player-section.highlighted {
    position: relative;
    z-index: 1060;
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.6);
}

/* Player Control Bar */
.game-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #0e131d;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 14px;
}

.game-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-title-bar h2 {
    font-size: 19px;
    margin-bottom: 2px;
}

.game-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-hot { background: rgba(255, 107, 53, 0.2); color: var(--neon-orange); border: 1px solid var(--neon-orange); }
.badge-new { background: rgba(0, 255, 136, 0.2); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-update { background: rgba(0, 229, 255, 0.2); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge-hardcore { background: rgba(255, 0, 127, 0.2); color: var(--neon-pink); border: 1px solid var(--neon-pink); }

.player-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tool {
    background: var(--bg-accent);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-tool:hover {
    background: var(--border-color);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-tool.active {
    background: var(--neon-cyan);
    color: #0a0d14;
    border-color: var(--neon-cyan);
}

.btn-fullscreen {
    background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
    color: #0a0d14;
    font-weight: 700;
    border: none;
}

.btn-fullscreen:hover {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
    color: #000;
}

/* Category Filter Tabs */
.filter-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
}

.filter-btn.active {
    background: var(--neon-cyan);
    color: #0a0d14;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* Game Grid & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.3);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #0f1420;
    overflow: hidden;
}

.card-thumb-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 20, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .card-play-overlay {
    opacity: 1;
}

.card-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--neon-green);
    color: #0a0d14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 16px var(--neon-green);
    transform: scale(0.8);
    transition: transform 0.25s ease;
}

.game-card:hover .card-play-btn {
    transform: scale(1);
}

.card-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--neon-yellow);
    font-weight: 600;
}

/* Content Layout (Article & Sidebar) */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
    margin-bottom: 50px;
}

.article-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.article-body h2 {
    font-size: 24px;
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

.article-body h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--neon-cyan);
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 8px;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

.control-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.control-key {
    font-size: 17px;
    font-weight: bold;
    color: var(--neon-green);
    margin-bottom: 6px;
    font-family: monospace;
}

.control-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
    margin: 22px 0;
}

.faq-item {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle-icon {
    transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--neon-cyan);
    border-radius: 2px;
}

/* Footer */
.site-footer {
    background: #06080d;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 100px; /* Space for sticky ad */
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    border-top: 1px solid #1a2233;
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .site-nav {
        display: none;
    }
    .hero-banner {
        padding: 22px 18px;
    }
    .hero-title {
        font-size: 24px;
    }
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .ad-slot-header {
        display: none;
    }
}

