/* Viva Prep — extends Lazy IITians brand from style.css / base */

:root {
    --brand: #ff6b6b;
    --brand-dark: #e55a5a;
    --ink: #1e293b;
    --muted: #64748b;
    --surface: #f8fafc;
    --radius: 14px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--ink);
}

.hero-viva {
    background-color: #0f172a;
    background-image:
        linear-gradient(120deg, rgba(15, 23, 42, 0.78) 0%, rgba(21, 101, 192, 0.55) 55%, rgba(15, 23, 42, 0.65) 100%),
        url("images/hero-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
}

.hero-viva::after {
    display: none;
}

.hero-viva h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
}

.hero-viva .lead {
    color: #cbd5e1;
    max-width: 36rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-bar {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1rem;
}

.submission-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.submission-card:hover {
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    transform: translateY(-1px);
}

.badge-proctor {
    background: #fff1f1;
    color: var(--brand-dark);
    border: 1px solid #ffd4d4;
    font-weight: 700;
}

.badge-level {
    background: #e3f0fc;
    color: #1565c0;
    font-weight: 600;
}

.badge-subject {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.q-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.q-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
    cursor: default;
}

.q-list li.has-ts,
.q-list li.has-video {
    cursor: default;
}

.q-list li.has-ts:hover,
.q-list li.has-video:hover,
.q-list li.active {
    background: #fff5f5;
}

.btn-video-explain {
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    line-height: 1.3;
}

.btn-video-explain:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

body.video-modal-open {
    overflow: hidden;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.video-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.video-modal-close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(248, 250, 252, 0.25);
    background: rgba(248, 250, 252, 0.08);
    color: #f8fafc;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-modal-close:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: #f87171;
}

.video-modal-question {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0 0 0.85rem;
}

.video-modal-player {
    border-radius: 12px;
}

.q-num {
    flex: 0 0 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.advice-block {
    background: #fff8e6;
    border-left: 3px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
}

.sidebar-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    background: #fff;
}

.sidebar-card h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0.2rem;
}

.tag-chip:hover {
    background: #ffe4e4;
    color: var(--brand-dark);
}

.tag-chip .count {
    color: var(--muted);
    font-weight: 500;
}

.disclaimer-banner {
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
    margin-top: 3rem;
}

.yt-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

.yt-wrap > div,
.yt-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.panel-shell {
    background: var(--surface);
    min-height: 70vh;
}

.panel-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.panel-stat .num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
}

.question-row {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    margin-bottom: 0.75rem;
}

.ts-btn {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.nav-link-highlight {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c !important;
    border-radius: 999px;
    padding: 0.35rem 0.9rem !important;
    font-weight: 700 !important;
    border: 1px solid #fdba74;
}

.nav-link-highlight:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #9a3412 !important;
}

.free-materials-banner {
    background: linear-gradient(120deg, #fff7ed 0%, #ffedd5 45%, #fef3c7 100%);
    border: 2px solid #fb923c;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.18);
}

.free-materials-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.free-materials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ea580c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.free-materials-content {
    flex: 1;
    min-width: 200px;
}

.free-materials-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #9a3412;
    margin-bottom: 0.25rem;
}

.free-materials-desc {
    color: #c2410c;
    font-size: 0.95rem;
}

.btn-free-materials {
    background: #ea580c;
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-free-materials:hover {
    background: #c2410c;
    color: #fff !important;
    transform: translateY(-1px);
}

.footer-link-highlight {
    color: #ea580c !important;
    font-weight: 700;
}

.footer-link-highlight:hover {
    color: #c2410c !important;
}

@media (max-width: 768px) {
    .hero-viva { padding: 1.75rem 1.15rem; }
    .free-materials-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-free-materials {
        width: 100%;
        text-align: center;
    }
}
