/*
 Theme Name:   Blocksy Child
 Template:     blocksy
*/

/* ============================================================
   ZQuiz Computer — "Practice Terminal" थीम
   कॉन्सेप्ट: कंप्यूटर/IT क्विज़ साइट, इसलिए डिज़ाइन एक कोड एडिटर /
   टर्मिनल विंडो जैसा — डार्क टाइटलबार, मोनोस्पेस लोगो, फाइल-टैब
   जैसे क्विज़ कार्ड्स। मुख्य कंटेंट सफेद/हल्का ही रहेगा ताकि
   पढ़ने में आसानी बनी रहे — डार्क सिर्फ हेडर/हीरो/फुटर में।
   ============================================================ */

:root {
    --ink:            #10161d;
    --ink-muted:      #5b6672;
    --page-bg:        #eef1f4;
    --surface:        #ffffff;
    --border:         #e2e7ec;

    --term-bg:        #0b0f14;
    --term-bg-2:      #121923;
    --term-line:      #232c38;

    --accent:         #22c07a;   /* टर्मिनल ग्रीन — प्राइमरी */
    --accent-dark:    #189a63;
    --accent-amber:   #f5a524;   /* सेकेंडरी — बैज/हाईलाइट */
    --accent-cyan:    #4cc9f0;   /* लिंक/होवर */

    --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- बेस स्टाइल --- */
body {
    background-color: var(--page-bg) !important;
    font-family: var(--font-body);
    color: var(--ink);
    margin: 0;
    padding: 0;
}

/* स्क्रीन रीडर के लिए टेक्स्ट */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Skip link */
.skip-link {
    left: -9999px;
    position: absolute !important;
    top: 0;
    z-index: 100000;
    background: var(--accent);
    color: #06170f !important;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-code);
}
.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ============================================================
   हेडर — कोड एडिटर टाइटलबार जैसा दिखने के लिए
   ============================================================ */

.main-header {
    background: var(--term-bg) !important;
    padding: 0;
    position: sticky; top: 0; z-index: 10005;
    box-shadow: 0 2px 14px rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--term-line);
}

/* macOS जैसी टाइटलबार — साइट का "signature" विज़ुअल एलिमेंट */
.term-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 5%;
    background: var(--term-bg-2);
    border-bottom: 1px solid var(--term-line);
}
.term-dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block;
    opacity: 0.9;
}
.dot-red    { background: #ff5f57; }
.dot-amber  { background: #febc2e; }
.dot-green  { background: #28c840; }
.term-titlebar-text {
    font-family: var(--font-code);
    font-size: 12px;
    color: #7d8a99;
    margin-left: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-content-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    padding: 12px 5%;
}

/* लोगो — प्रॉम्प्ट स्टाइल ">_ ComputeQuiz" */
.logo-container { display: flex !important; align-items: center; text-decoration: none; gap: 10px; }
.logo-prompt {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    background: rgba(34, 192, 122, 0.12);
    border: 1px solid rgba(34, 192, 122, 0.35);
    border-radius: 6px;
    padding: 4px 8px;
    line-height: 1;
}
.logo-container .logo-prompt::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 13px;
    margin-left: 3px;
    background: var(--accent);
    vertical-align: -2px;
    animation: term-blink 1.1s steps(1) infinite;
}
.logo-text {
    color: #ffffff !important;
    font-family: var(--font-code);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
}
.logo-accent { color: var(--accent); }
.site-description {
    color: #8b96a3;
    font-size: 11px;
    opacity: 0.95;
    margin-top: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    display: block;
    letter-spacing: 0.2px;
}

@keyframes term-blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-container .logo-prompt::after { animation: none; }
}

/* मेनू — फाइल-टैब जैसा लुक */
.header-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.header-menu li a {
    color: #c7d0da !important;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    font-family: var(--font-code);
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.header-menu li a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.04);
    border-bottom-color: var(--accent);
}

/* शेयर बार */
.share-bar { position: fixed; bottom: 25px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 20000; }
.share-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3); font-size: 22px; text-decoration: none; }
.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }
.facebook { background: #1877F2; }

/* मोबाइल के लिए */
@media screen and (max-width: 768px) {
    .header-content-wrapper { flex-direction: column; }
    .header-menu { margin-top: 10px; overflow-x: auto; width: 100%; justify-content: center; }
}

/* एक लाइन में मेनू */
.nav-container ul,
.nav-container .header-menu,
#site-header ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
}

.nav-container ul li,
.nav-container .header-menu li {
    display: inline-block !important;
    flex: 0 0 auto !important;
}

.nav-container ul li a,
.nav-container .header-menu li a {
    display: block !important;
    white-space: nowrap !important;
}

.nav-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-container::-webkit-scrollbar { display: none; }

.header-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.header-menu li { flex: 0 0 auto !important; }

@media screen and (max-width: 850px) {
    .main-wrapper { width: 100% !important; margin: 0 !important; }
}

@media screen and (min-width: 769px) {
    .header-content-wrapper {
        display: flex;
        justify-content: space-between !important;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    .nav-container { width: auto !important; background: transparent !important; }
}

@media screen and (max-width: 768px) {
    .header-content-wrapper { flex-direction: column; align-items: center; }
    .logo-container { margin-bottom: 10px; }
    .term-titlebar-text { font-size: 10px; }
}

@media screen and (max-width: 768px) {
    .share-bar { bottom: 100px !important; right: 15px !important; gap: 8px !important; }
    .share-btn { width: 42px !important; height: 42px !important; font-size: 20px !important; }
}

/* ============================================================
   मुख्य कंटेंट रैपर
   ============================================================ */
.main-wrapper {
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    min-height: 400px !important;
    background-color: transparent;
}

/* ============================================================
   हीरो — टर्मिनल आउटपुट जैसा
   ============================================================ */
.term-hero {
    background: var(--term-bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(34,192,122,0.10), transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(76,201,240,0.08), transparent 40%);
    padding: 46px 5% 54px;
    margin-bottom: 30px;
}
.term-hero-inner { max-width: 850px; margin: 0 auto; }

.term-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--accent-amber);
    background: rgba(245, 165, 36, 0.12);
    border: 1px solid rgba(245, 165, 36, 0.35);
    border-radius: 20px;
    padding: 5px 13px;
    margin-bottom: 16px;
}

.term-hero h1 {
    font-family: var(--font-code);
    color: #ffffff;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.35;
}
.term-hero h1 .accent { color: var(--accent); }

.term-console {
    background: var(--term-bg-2);
    border: 1px solid var(--term-line);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: var(--font-code);
    font-size: 13.5px;
    line-height: 1.9;
    color: #b7c2cf;
    max-width: 560px;
}
.term-console .prompt { color: var(--accent); }
.term-console .out { color: #7d8a99; }
.term-console .ok { color: var(--accent); }
.term-console .cursor {
    display: inline-block; width: 8px; height: 14px;
    background: var(--accent); vertical-align: -2px;
    animation: term-blink 1.1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) { .term-console .cursor { animation: none; } }

/* ============================================================
   क्विज़ कार्ड — खुले हुए एडिटर टैब जैसा
   ============================================================ */
.archive-container { max-width: 850px; margin: 0 auto 30px; padding: 0 15px; }

.archive-container .page-title {
    font-family: var(--font-code);
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin: 0 0 22px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.archive-container .page-title::before {
    content: "//";
    color: var(--accent);
    font-weight: 700;
}

.archive-item {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    box-shadow: 0 3px 10px rgba(16,22,29,0.045) !important;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.archive-item:hover {
    box-shadow: 0 8px 22px rgba(16,22,29,0.09) !important;
    transform: translateY(-2px);
}

/* फाइल-टैब स्ट्रिप */
.zq-card-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f6f8fa;
    border-bottom: 1px solid var(--border);
    padding: 9px 18px;
    font-family: var(--font-code);
    font-size: 11.5px;
    color: var(--ink-muted);
}
.zq-card-tab .file-name::before { content: "📄 "; }
.zq-card-tab .free-badge {
    background: rgba(34,192,122,0.12);
    color: var(--accent-dark);
    border: 1px solid rgba(34,192,122,0.3);
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.archive-item .entry-body { padding: 20px 22px 22px; }

.entry-title {
    font-size: 20px; margin-top: 0; margin-bottom: 10px; font-weight: 700;
    font-family: var(--font-body);
}
.entry-title a { text-decoration: none; color: var(--ink); }
.entry-title a:hover { color: var(--accent-dark); }

.entry-excerpt { color: var(--ink-muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 16px; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: #fff;
    padding: 9px 16px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    font-family: var(--font-code);
    transition: background .2s ease;
}
.read-more:hover { background: var(--accent-dark); }

.pagination a, .pagination span {
    font-family: var(--font-code);
    font-size: 13px;
}

/* खाली स्टेट */
.archive-empty {
    text-align: center; padding: 50px 20px;
    background: var(--surface); border-radius: 12px; border: 1px dashed var(--border);
}
.archive-empty h2 { color: var(--ink); margin-top: 0; font-family: var(--font-code); }
.archive-empty p { color: var(--ink-muted); }

/* ============================================================
   सिंगल क्विज़/पोस्ट पेज
   ============================================================ */
.single-post-container { max-width: 850px; margin: 30px auto 40px; padding: 0 15px; }

.post-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 3px 10px rgba(16,22,29,0.045);
    overflow: hidden;
}

/* फाइल-पाथ ब्रेडक्रंब बार — जैसे किसी IDE में फाइल टैब्स के नीचे पाथ दिखता है */
.zq-path-bar {
    background: #f6f8fa;
    border-bottom: 1px solid var(--border);
    padding: 10px 26px;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.2px;
}
.zq-path-bar .seg { color: var(--accent-dark); }

.post-container .entry-inner { padding: 30px 30px 34px; }

.post-container .entry-title {
    margin-top: 0; margin-bottom: 14px; color: var(--ink);
    font-size: 28px; font-weight: 800; line-height: 1.3;
    font-family: var(--font-body);
}

.post-meta {
    font-size: 13.5px; color: var(--ink-muted); margin-bottom: 26px;
    border-bottom: 1px solid var(--border); padding-bottom: 14px;
    font-family: var(--font-code);
    display: flex; gap: 16px; flex-wrap: wrap;
}

.entry-content { color: #2a333d; font-size: 16px; line-height: 1.8; }

.comments-section {
    margin-top: 30px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; padding: 28px;
}

.zq-auto-breadcrumb { font-family: var(--font-code) !important; }

/* ============================================================
   फुटर
   ============================================================ */
.footer-section {
    background: var(--term-bg) !important;
    color: #c7d0da !important;
    padding: 42px 20px 30px !important;
    text-align: center !important;
    margin-top: 50px !important;
    width: 100% !important;
    display: inline-block !important;
    box-sizing: border-box;
    border-top: 1px solid var(--term-line);
}
footer.footer-section { text-align: center !important; display: block !important; }

.footer-brand {
    font-family: var(--font-code);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-brand .accent { color: var(--accent); }

.footer-section p {
    margin: 0 !important; display: block !important; width: 100% !important;
    font-size: 13px; letter-spacing: 0.3px; color: #7d8a99;
    font-family: var(--font-code);
}

.footer-menu-links div, .footer-menu-links ul {
    display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
    justify-content: center !important; align-items: center !important;
    list-style-type: none !important; padding: 0 !important; margin: 0 auto 18px auto !important;
}
.footer-menu-links li { display: inline-block !important; list-style: none !important; margin: 5px 15px !important; }
.footer-menu-links li a {
    color: #c7d0da !important; text-decoration: none !important;
    font-size: 13.5px !important; white-space: nowrap !important;
    font-family: var(--font-code);
}
.footer-menu-links li a:hover { color: var(--accent) !important; }

@media screen and (max-width: 600px) {
    .footer-menu-links li { margin: 5px 8px !important; }
}

.footer-section ul li { display: inline-block !important; }
.footer-section ul li a { color: #c7d0da !important; text-decoration: none !important; font-size: 14px !important; }
.footer-section ul li a:hover { color: var(--accent) !important; text-decoration: none !important; }

.logo-brand-info { display: flex; flex-direction: column; justify-content: center; }
.online-tag { font-size: 14px; margin-left: 5px; font-weight: normal; opacity: 0.9; }

/* Ultimate Member टैब्स */
.um-profile-nav-item .title.uimob500-hide,
.um-profile-nav-item .title.uimob340-hide,
.um-profile-nav-item .title.uimob800-hide {
    display: inline-block !important;
    font-size: 11px !important;
    margin-left: 4px !important;
}

/* Performance Report card (My Tests टैब) */
.zq-report-wrap {
    background: var(--surface);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
}
.zq-report-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.zq-report-title { color: var(--ink); margin: 0; font-size: 1.2rem; font-family: var(--font-code); }
.zq-download-btn {
    background: var(--accent);
    color: #06170f;
    border: none; padding: 9px 16px; border-radius: 7px;
    cursor: pointer; font-weight: 700; flex-shrink: 0;
    font-family: var(--font-code); font-size: 13px;
    transition: background .2s ease;
}
.zq-download-btn:hover { background: var(--accent-dark); color: #ffffff; }
.zq-chart-box { margin-bottom: 30px; height: 250px; }

@media screen and (max-width: 600px) {
    .zq-report-header { flex-direction: column; align-items: flex-start; }
    .zq-report-title { font-size: 1.05rem; }
    .zq-download-btn { width: 100%; text-align: center; }
    .zq-chart-box { height: 220px; }
}
