/* ============================================
   Interview Questions page
   ============================================ */
.iq-page { padding: 60px 0 90px; }

#iq-app { max-width: 860px; margin: 0 auto; }

/* ---- Filters ---- */
.iq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.iq-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    transition: all 0.16s;
}
.iq-pill:hover { border-color: rgba(99, 102, 241, 0.5); }
.iq-pill.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}
.iq-pill-n {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.05rem 0.45rem;
    border-radius: 100px;
    opacity: 0.9;
}
.iq-pill.active .iq-pill-n { background: rgba(255, 255, 255, 0.25); }

.iq-count {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0 0 2rem;
}

/* ---- List ---- */
.iq-list { display: flex; flex-direction: column; gap: 1.1rem; }

.iq-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.09));
    border-radius: 16px;
    padding: 1.6rem;
}

.iq-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.iq-cat {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 100px;
}
.iq-num { font-size: 0.8rem; font-weight: 700; opacity: 0.45; }

.iq-q {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 1.1rem;
}

.iq-options { display: flex; flex-direction: column; gap: 0.55rem; }

.iq-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 11px;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.16s;
}
.iq-opt:hover { border-color: rgba(99, 102, 241, 0.5); }
.iq-opt-key {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 7px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 700; font-size: 0.82rem;
}
.iq-opt-text { flex: 1; }
.iq-opt-mark { font-weight: 800; font-size: 1.05rem; }

.iq-opt.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}
.iq-opt.correct .iq-opt-key { background: #22c55e; border-color: transparent; color: #fff; }
.iq-opt.correct .iq-opt-mark { color: #22c55e; }
.iq-opt.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.iq-opt.wrong .iq-opt-key { background: #ef4444; border-color: transparent; color: #fff; }
.iq-opt.wrong .iq-opt-mark { color: #ef4444; }

.iq-reveal {
    margin-top: 0.9rem;
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.3rem 0;
}
.iq-reveal:hover { text-decoration: underline; }

.iq-explain {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem 1.05rem;
    background: rgba(99, 102, 241, 0.07);
    border-left: 3px solid #6366f1;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.92;
}
.iq-explain-icon { flex-shrink: 0; }

.iq-empty { text-align: center; opacity: 0.7; padding: 3rem 1rem; }

@media (max-width: 720px) {
    .iq-card { padding: 1.25rem; }
    .iq-q { font-size: 1.02rem; }
}
