/* ═══════════════ BRICKBREAKER.NET — CLEAN LIGHT THEME ═══════════════ */

/* ── CSS VARIABLES ───────────────────────── */
:root {
    --bg:           #ffffff;
    --bg-card:      #f5f5f7;
    --bg-light:     #fafafa;
    --primary:      #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light:#ede9fe;
    --blue:         #0693e3;
    --gold:         #fcb900;
    --green:        #00d084;
    --text:         #212529;
    --text-dim:     #6c757d;
    --text-faint:   #adb5bd;
    --border:       #dee2e6;
    --border-hover: #7c3aed;
    --radius:       8px;
    --shadow:       0 1px 3px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(124,58,237,0.12);
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'Inter', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }

strong { color: var(--text); font-weight: 600; }

/* ── UTILITY CLASSES ─────────────────────── */
.neon-cyan  { color: var(--primary); }
.neon-pink  { color: var(--blue); }
.neon-gold  { color: var(--gold); }
.neon-green { color: var(--green); }

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    color: var(--text);
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.nav-logo-img { display: block; height: 36px; width: auto; }
.hero-logo-img { display: block; height: auto; max-width: 100%; }
.footer-logo-img { display: block; height: 36px; width: auto; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.nav-links > li > a {
    display: block;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Game container */
.game-container {
    width: 100%;
    max-width: 840px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 50px 0 20px;
}

.game-frame-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.game-frame {
    display: block;
    width: 100%;
    aspect-ratio: 800 / 600;
    border: none;
}

/* Scroll hint */
.hero-scroll-hint {
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 1px;
    padding-bottom: 20px;
    animation: fadeHint 2s ease-in-out infinite;
}

@keyframes fadeHint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ═══════════════ BELOW THE FOLD ═══════════════ */
.below-fold { position: relative; background: var(--bg); z-index: 2; }

/* ── SECTIONS ──────────────────────────────── */
.section { padding: 64px 0; }

.section-title {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* ── PAGE H1 ────────────────────────────────── */
.page-h1 {
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--text);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

/* ── STATS ─────────────────────────────────── */
.stats-section { padding: 48px 0 20px; background: var(--bg); }

.stat-row {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.stat-card { text-align: center; }

.stat-num {
    display: block;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

/* ── GAMES GRID ────────────────────────────── */
.games-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: var(--shadow);
}
.game-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.game-card-brick { font-size: 2.2rem; margin-bottom: 10px; }

.game-card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    background: var(--bg-light);
}

.game-card-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    line-height: 1.4;
}

/* ── SOCIAL SHARE BAR ──────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
}

.share-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-right: 4px;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--bg);
    transition: all 0.2s;
}
.share-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ── CONTENT SECTIONS ──────────────────────── */
.content-section.alt-bg { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.content-body {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.85;
}
.content-body p { margin-bottom: 16px; }
.content-body p:last-child { margin-bottom: 0; }
.content-body strong { color: var(--text); font-weight: 600; }

.content-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 28px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-h3 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    color: var(--text-dim);
    line-height: 1.75;
}
.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.7rem;
}
.feature-list li strong { color: var(--text); }

.steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step;
}
.steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    margin-bottom: 18px;
    color: var(--text-dim);
    line-height: 1.75;
}
.steps-list li::before {
    content: '0' counter(step);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
}
.steps-list li strong { color: var(--text); }

/* ── CTA ───────────────────────────────────── */
.cta-section {
    background: var(--primary-light);
    border-top: 1px solid rgba(124,58,237,0.1);
    border-bottom: 1px solid rgba(124,58,237,0.1);
    padding: 64px 0;
}

.cta-block { text-align: center; }

.cta-title {
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.cta-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px 36px;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.cta-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
    transform: translateY(-1px);
}

/* ── FAQ ───────────────────────────────────── */
.faq-list-single {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: box-shadow 0.25s;
    box-shadow: var(--shadow);
}
.faq-card:hover { box-shadow: var(--shadow-hover); }

.faq-q {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 12px;
}

.faq-a {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ol, .faq-a ul { padding-left: 20px; margin-bottom: 8px; }
.faq-a li { margin-bottom: 7px; }

/* ── FEATURES ──────────────────────────────── */
.features-section { background: var(--bg-card); border-top: 1px solid var(--border); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: all 0.25s;
    box-shadow: var(--shadow);
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }

.feature-card h3 {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 52px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 14px;
}
.footer-col p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    font-size: 0.7rem;
    color: var(--text-faint);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .hero-logo-img { max-width: 240px; }
    .hero-tagline { font-size: 0.65rem; }

    .nav-brand { font-size: 0.95rem; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 10px;
        gap: 2px;
        box-shadow: var(--shadow);
    }
    .nav-toggle { display: block; }
    .nav-links > li > a { font-size: 0.85rem; padding: 10px 16px; }

    .section { padding: 40px 0; }
    .section-title { font-size: 1.1rem; }
    .stat-row { gap: 28px; }
    .stat-num { font-size: 1.4rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-logo-img { max-width: 200px; }
    .hero-tagline { font-size: 0.58rem; }
    .container { padding: 0 14px; }
    .stat-row { gap: 20px; }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.6rem; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .game-card-name { font-size: 0.6rem; }
    .section-title { font-size: 1rem; }
    .faq-q { font-size: 0.85rem; }
    .faq-a { font-size: 0.82rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
