/* theme.css - NOFNWAY Command Center */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

:root {
    --brand:  #0057B8;   /* Superman blue — deep, confident */
    --accent: #C62828;   /* Superman red  */
    --gold:   #F9A825;   /* Comic book gold */
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-dim: #666666;
    --border: #d1d8e0;

    /* State Colors */
    --ready:   #2ecc71;
    --working: #f1c40f;
    --dev:     #95a5a6;

    /* Animation */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --brand:    #4d9eff;   /* lighter for legibility on dark bg */
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --border: #333333;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    transition: background 0.3s ease;
}


/* ═══════════════════════════════════════
   NAVBAR & BRAND
═══════════════════════════════════════ */
.navbar {
    background: #000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--brand);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-family: 'Bangers', 'Montserrat', sans-serif;
    font-size: 2.1rem;
    color: white;
    letter-spacing: 3px;
    text-decoration: none;
    line-height: 1;
}
.brand span { color: var(--brand); }

.nav-controls { display: flex; align-items: center; gap: 15px; }

.theme-toggle, .share-btn {
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.theme-toggle {
    background: linear-gradient(135deg, var(--brand) 0%, #0d1b2a 100%);
    color: white;
    border: none;
}

.share-btn {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.bookmark-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.bookmark-btn:hover { color: var(--text-main); border-color: var(--text-dim); }

.theme-toggle:hover, .share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.share-btn:hover { background: var(--brand); color: #fff; }

/* ═══════════════════════════════════════
   PRIVACY SHIELD BUTTON & PANEL
═══════════════════════════════════════ */
.privacy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s;
}
.privacy-btn:hover { color: var(--brand); }

.privacy-panel {
    position: fixed;
    top: 72px;
    right: 16px;
    width: 300px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    z-index: 998;
    box-shadow: 4px 4px 0 var(--brand);
}
.privacy-panel[hidden] { display: none !important; }

.privacy-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.privacy-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 5px;
}

.privacy-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.privacy-close:hover { color: var(--text-main); }

.privacy-panel p {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.65;
    color: var(--text-dim);
}

@media (max-width: 600px) {
    .privacy-panel {
        left: 12px;
        right: 12px;
        width: auto;
        top: 58px;
    }
}


/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero {
    background: #0a0a0a;
    border-bottom: 4px solid var(--accent);
    padding: 40px 20px;
}

.hero-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Keyboard key emblem */
.hero-emblem-wrap {
    flex-shrink: 0;
}

.hero-emblem {
    width: 90px;
    height: 84px;
    background: var(--brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0,0,0,0.3);
    border-bottom: 7px solid rgba(0,0,0,0.45);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.22);
}

.hero-emblem span {
    font-family: 'Bangers', cursive;
    color: white;
    font-size: 28px;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Hero copy */
.hero-callout {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.55;
    margin: 0 0 14px;
}

.hero-headline {
    font-family: 'Bangers', cursive;
    font-size: 4.5rem;
    color: white;
    line-height: 0.9;
    letter-spacing: 3px;
    margin: 0 0 20px;
    text-shadow: 4px 4px 0 var(--brand);
}

@media (max-width: 640px) {
    .hero-inner { flex-direction: column; gap: 32px; text-align: center; }
    .hero-headline { font-size: 3.5rem; }
}


/* ═══════════════════════════════════════
   CONTENT CONTAINERS
═══════════════════════════════════════ */
.container { max-width: 1200px; margin: 6px auto; padding: 0 20px 60px; }

.intro-box {
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 30px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.intro-box h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand);
    margin-top: 0;
    font-weight: 900;
}
.intro-box p { font-size: 1.1rem; color: var(--text-main); }


/* ═══════════════════════════════════════
   GRID & CATEGORY TITLES
═══════════════════════════════════════ */
.category-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin: 32px 0 24px;
    text-transform: uppercase;
    font-weight: 900;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}


/* ═══════════════════════════════════════
   CARDS — comic panel style
═══════════════════════════════════════ */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 26px 28px 24px;
    border: 2px solid var(--border);
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 3px 3px 0 var(--border);
}

.card:hover {
    border-color: var(--brand);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--brand);
}

.card h3 {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Coming Soon cards */
.card.card-coming-soon {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.coming-soon-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    margin-top: 8px;
}

/* Connectivity disclaimer */
.net-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    margin-top: 8px;
    opacity: 0.75;
}


/* ═══════════════════════════════════════
   ABOUT STRIP
═══════════════════════════════════════ */
.about-strip {
    margin-top: 52px;
    padding: 40px 44px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 2px solid var(--border);
    border-left: 6px solid var(--brand);
    box-shadow: 3px 3px 0 var(--border);
}

.about-text {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 780px;
    margin: 0 0 20px;
}

.about-manifesto {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--brand);
    margin: 0;
    padding-top: 18px;
    border-top: 2px solid var(--border);
}

@media (max-width: 600px) {
    .about-strip { padding: 28px 24px; }
}


/* ═══════════════════════════════════════
   HOW IT WORKS EXPLAINER BOX
═══════════════════════════════════════ */
.how-it-works {
    margin-bottom: 36px;
    padding: 20px 28px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-left: 5px solid var(--brand);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.75;
    box-sizing: border-box;
    max-width: 100%;
}
.how-it-works p { margin: 0 0 8px; }
.how-it-works p:last-child { margin: 0; }
.how-it-works ul { margin: 4px 0 10px; padding-left: 18px; }
.how-it-works ol  { margin: 4px 0 10px; padding-left: 18px; }
.how-it-works li  { margin-bottom: 5px; }
.how-it-works strong { color: var(--text-main); }
.how-it-works kbd {
    display: inline-block;
    padding: 1px 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}


/* ═══════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.faq-item {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 3px 3px 0 var(--border);
}

.faq-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-main);
    margin: 0 0 10px;
}

.faq-item p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}


/* ═══════════════════════════════════════
   EXTERNAL LINKS GRID
═══════════════════════════════════════ */
.ext-section { margin-top: 60px; }

.ext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.ext-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 3px 3px 0 var(--border);
    transition: var(--transition);
}

.ext-card:hover {
    border-color: var(--gold);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--gold);
}

.ext-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-main);
}

.ext-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.ext-arrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-top: 4px;
}


/* ═══════════════════════════════════════
   GAMES SECTION — featured card
═══════════════════════════════════════ */
.games-section {
    margin-bottom: 0;
}

.game-feature-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border);
    padding: 36px 40px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 3px 3px 0 var(--border);
}

.game-feature-card:hover {
    border-color: var(--gold);
    box-shadow: 6px 6px 0 var(--gold);
    transform: translate(-3px, -3px);
}

.game-card-graphic {
    flex-shrink: 0;
    opacity: 0.9;
}

.game-card-content {
    flex: 1;
    min-width: 0;
}

.game-card-badge {
    display: inline-block;
    background: rgba(249,168,37,0.1);
    color: #F9A825;
    border: 1px solid rgba(249,168,37,0.35);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.game-card-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--text-main);
    margin-bottom: 4px;
}

.game-card-title span { color: var(--gold); }

.game-card-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.game-card-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 24px;
    max-width: 520px;
}

.game-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.game-card-play-btn {
    background: #0057B8;
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    transition: filter 0.15s;
    white-space: nowrap;
}

.game-card-play-btn:hover { filter: brightness(1.15); }

.game-card-print-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Game card — dark mode restores the moody black aesthetic */
[data-theme="dark"] .game-feature-card {
    background: #0d0d14;
    border-color: rgba(249,168,37,0.22);
    box-shadow: none;
}
[data-theme="dark"] .game-feature-card:hover {
    border-color: rgba(249,168,37,0.55);
    box-shadow: 0 10px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(249,168,37,0.12);
    transform: translateY(-2px);
}
[data-theme="dark"] .game-card-title { color: #fff; }
[data-theme="dark"] .game-card-title span { color: #F9A825; }
[data-theme="dark"] .game-card-tagline { color: rgba(255,255,255,0.28); }
[data-theme="dark"] .game-card-desc { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .game-card-print-note { color: rgba(255,255,255,0.28); }

@media (max-width: 700px) {
    .game-feature-card {
        flex-direction: column;
        padding: 28px 22px;
        gap: 22px;
        align-items: flex-start;
    }
    .game-card-graphic { display: none; }
}


/* ═══════════════════════════════════════
   FOOTER & TERMINAL
═══════════════════════════════════════ */
footer {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
    background: rgba(0,0,0,0.02);
    border-top: 1px solid var(--border);
}

.terminal-container {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: bold;
    min-height: 1.5em;
    margin-bottom: 20px;
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--gold);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.disclaimer {
    max-width: 650px;
    margin: 30px auto;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

/* Ko-fi link — gold CTA */
.kofi-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    background-color: var(--gold);
    color: #000 !important;
    text-decoration: none;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.kofi-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
    filter: brightness(1.05);
}

#terminal-text {
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.2));
    display: inline-block;
}


/* ═══════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════ */

/* Visible focus ring for keyboard users — hidden for mouse/touch */
:focus-visible {
    outline: 2.5px solid var(--brand);
    outline-offset: 3px;
    border-radius: 3px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Screen-reader-only utility — hides visually, keeps in DOM for AT */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Study strip — homepage connector between tools and games */
.study-strip {
    margin: 40px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--brand);
    background: var(--card-bg);
    border-radius: 0 8px 8px 0;
}
.study-strip p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* Respect reduced-motion preference — kills all transitions/animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════
   FOOTER SHARE
═══════════════════════════════════════ */
.footer-share {
    margin-bottom: 12px;
}
.footer-share-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity .15s;
}
.footer-share-btn:hover {
    opacity: 1;
    color: var(--brand);
}


/* ═══════════════════════════════════════
   MOBILE — RESPONSIVE NAVBAR
═══════════════════════════════════════ */

/* Brand subtitle (e.g. "// Just Pick") — shown on desktop, hidden on mobile */
.brand-sub { display: inline; }

/* Nav button text variants — swap short/full text at mobile breakpoint */
.nav-text-short { display: none; }

@media (max-width: 520px) {
    .navbar {
        padding: 0.6rem 1rem;
        gap: 6px;
    }
    .brand {
        font-size: 1.5rem;
        letter-spacing: 1px;
        min-width: 0;
        flex-shrink: 1;
    }
    .brand-sub { display: none; }
    .nav-controls { gap: 8px; flex-wrap: wrap; }
    .share-btn,
    .theme-toggle,
    .bookmark-btn {
        padding: 7px 10px;
        font-size: 0.65rem;
        letter-spacing: 0;
    }
    .nav-text-full  { display: none; }
    .nav-text-short { display: inline; }
    .how-it-works   { padding: 16px; }
}
