/*
Theme Name: NeuroJitter
Theme URI: https://neurojitter.xyz
Author: NeuroJitter Engineering Team
Description: Ultra-lightweight, zero-asset dark mode web app theme optimized for psychological self-tests, micro-reflexes, and GEO/SEO indexing.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: neurojitter
*/

/* ==============================================================
   1. GLOBAL DESIGN TOKENS & RESET
   ============================================================== */
:root {
    --bg-base: #0B0F19;
    --bg-surface: #0F1523;
    --bg-card: #111827;
    --bg-card-hover: #161F32;
    --border-subtle: #1E293B;
    --border-focus: #38BDF8;
    
    /* Neon & Accent Colors */
    --accent-cyan: #38BDF8;
    --accent-purple: #A855F7;
    --accent-pink: #EC4899;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-red: #EF4444;

    /* Typography & Text Tokens */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #A1A1AA; /* High contrast pass for Accessibility */
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Layout Dimensions */
    --sidebar-width: 260px;
    --header-height: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==============================================================
   2. CUSTOM SLEEK SCROLLBAR
   ============================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ==============================================================
   3. DESKTOP APP LAYOUT & SIDEBAR NAVIGATION
   ============================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
    overflow-y: auto;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.custom-logo-link img {
    max-height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-name span {
    color: var(--accent-cyan);
}

.nav-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin: 16px 0 8px 12px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(88, 66, 190, 0.6) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-left: 3px solid var(--accent-cyan);
}

.sidebar-category-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

/* ==============================================================
   4. MAIN CONTENT CONTAINER & TOP BAR
   ============================================================== */
.app-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.content-viewport {
    padding: 20px 36px 40px 36px;
    flex: 1;
}

/* ==============================================================
   5. COMPACT HERO BANNER & CRISP NEON VISUAL
   ============================================================== */
.hero-split-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 32px;
    background: radial-gradient(circle at 60% 50%, rgba(168, 85, 247, 0.16) 0%, rgba(56, 189, 248, 0.06) 45%, rgba(15, 21, 35, 1) 90%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-category-banner {
    padding: 24px 32px;
    background: radial-gradient(circle at 60% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(15, 21, 35, 1) 90%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    margin-bottom: 20px;
}

.hero-category-banner h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-category-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 550px;
    line-height: 1.45;
}

.hero-content-col {
    flex: 1.2;
    max-width: 440px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.hero-heading {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #ffffff;
}

.hero-heading span {
    color: var(--accent-cyan);
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Center Crisp Neon Graphic */
.hero-visual-col {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mind-silhouette-frame {
    width: 270px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)) drop-shadow(0 0 15px rgba(236, 72, 153, 0.4));
    transition: transform 0.3s ease;
}

.mind-silhouette-frame:hover {
    transform: scale(1.03);
}

.neon-mind-art {
    width: 100%;
    height: 100%;
}

/* Right Quote Accent */
.hero-quote-col {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10px;
}

.quote-text {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 500;
}

.q-dim {
    color: var(--text-dim);
}

.q-light {
    color: #94A3B8;
}

.quote-accent-dash {
    width: 20px;
    height: 2px;
    background: #64748B;
    margin-top: 8px;
    border-radius: 2px;
}

/* ==============================================================
   6. MOBILE HORIZONTAL CATEGORY SCROLL BAR (CLEAN CHIPS)
   ============================================================== */
.mobile-cat-scroll-bar {
    display: none;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 14px 0;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.mobile-cat-scroll-bar::-webkit-scrollbar {
    display: none;
}

.mob-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mob-cat-chip.active, .mob-cat-chip:hover {
    background-color: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* ==============================================================
   7. SMART ADSENSE CONTAINER (ZERO GAP WHEN EMPTY)
   ============================================================== */
.ad-slot-container {
    text-align: center;
    margin: 24px auto;
    max-width: 728px;
    display: block;
}

/* Auto Hide when no ad script is inserted */
.ad-slot-container:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* ==============================================================
   8. RESPONSIVE GAME CARDS & GRIDS
   ============================================================== */
.grid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.grid-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.test-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.test-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.test-card-thumb {
    width: 100%;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-surface);
    margin-bottom: 14px;
}

.test-meta-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.chip-hot {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.test-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.test-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 14px;
    line-height: 1.4;
}

.btn-card-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-top: auto;
}

/* ==============================================================
   9. SINGLE GAME PAGE (DISTRACTION-FREE VIEWPORT)
   ============================================================== */
.single-game-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.game-navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-main);
}

.interactive-viewport {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
}

/* ==============================================================
   10. GLOBAL FOOTER
   ============================================================== */
.app-footer {
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
    padding: 40px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.legal-disclaimer {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* ==============================================================
   11. MOBILE BOTTOM NAVIGATION & BREAKPOINTS
   ============================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 21, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 4px;
}

.mobile-nav-link.active {
    color: var(--accent-cyan);
}

@media (max-width: 1100px) {
    .hero-split-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .hero-visual-col, .hero-quote-col {
        display: none;
    }
}

@media (max-width: 900px) {
    .app-sidebar {
        display: none;
    }
    .app-main {
        margin-left: 0;
        width: 100%;
        padding-bottom: 70px;
    }
    .app-topbar {
        padding: 0 20px;
    }
    .content-viewport {
        padding: 16px;
    }
    .mobile-cat-scroll-bar {
        display: flex;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mobile-bottom-nav {
        display: flex;
    }
}
/* Auto SVG Card Thumbnail */
.auto-svg-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080d1a !important;
}
.auto-svg-card svg {
    display: block;
    width: 100%;
    height: 100%;
}
/* ==============================================================
   NEUROJITTER AUTO-DIVIDER & CLEAN SPACING SYSTEM
   ============================================================== */
.nj-post-body {
    width: 100%;
    margin-bottom: 40px;
}

/* Protita Heading Auto-Divider shoho alada section hobe */
.nj-post-body h2,
.nj-post-body h3 {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 36px !important;
    margin-bottom: 14px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    letter-spacing: -0.01em !important;
}

/* Prothom Heading er divider dorkar nei */
.nj-post-body h2:first-of-type,
.nj-post-body h3:first-of-type {
    margin-top: 28px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Neon dot indicator protita heading er bam pashe */
.nj-post-body h2::before,
.nj-post-body h3::before {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: #38bdf8 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px #38bdf8 !important;
}

/* Paragraph: Standard comfortable padding & line-height */
.nj-post-body p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #94a3b8 !important;
    margin-bottom: 18px !important;
}

/* How to play list padding */
.nj-post-body ol,
.nj-post-body ul {
    margin: 14px 0 24px 28px !important;
    padding: 0 !important;
}
.nj-post-body li {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: #cbd5e1 !important;
    margin-bottom: 10px !important;
}
.nj-post-body kbd {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 0.8rem !important;
}

/* Score Table: Clean column spacing with background */
.nj-post-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #0d131f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 18px 0 28px 0 !important;
    display: table !important;
}
.nj-post-body th {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
}
.nj-post-body td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    font-size: 0.86rem !important;
    color: #94a3b8 !important;
}
.nj-post-body tr:last-child td {
    border-bottom: none !important;
}

/* FAQ Details/Accordion clean box */
.nj-post-body details {
    background: #0d131f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
}
.nj-post-body summary {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
}
.nj-post-body details p {
    font-size: 0.85rem !important;
    margin: 8px 0 0 0 !important;
    color: #94a3b8 !important;
}