/* ========================================
   NihonGo! — Interactive Interview Styles
   ======================================== */

/* ─── PAGE LAYOUT ─── */
.interview-page {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
    animation: interviewFadeIn 0.6s ease-out;
}

@keyframes interviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── PAGE HEADER ─── */
.interview-header {
    margin-bottom: 32px;
    position: relative;
}

.interview-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.interview-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ─── INTERVIEW CONTENT WRAPPER ─── */
/* Clean container for the grid or flashcard */
.interview-content-wrap {
    background: transparent;
    padding: 0;
    overflow: visible;
    position: relative;
    box-shadow: none;
    border: none;
    max-height: none;
}

/* ─── INTERVIEW GRID & CARDS ─── */
.interview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .interview-grid {
        grid-template-columns: 1fr;
    }
}

.interview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interview-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card Elements */
.interview-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.interview-card .num-badge {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.interview-card .topic-badge {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.interview-card .card-section-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.interview-card .card-kanji {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 6px;
    color: #d41e6b; /* Large highlighted color matching vocab */
}

/* Furigana size adjustment inside cards */
.interview-card .card-kanji ruby rt {
    font-size: 0.55em;
    transform: translateY(-2px);
    color: var(--text-secondary);
}

.interview-card .card-romaji {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.interview-card .card-question-bn {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Answers drawer */
.interview-card .answers-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    border-top: 1px solid var(--border);
    padding-top: 0;
    margin-top: 0;
}

.interview-card.expanded .answers-drawer {
    max-height: 1000px;
    opacity: 1;
    padding-top: 16px;
    margin-top: 16px;
    overflow-y: visible;
}

.interview-card .answer-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.interview-card .answer-box:last-child {
    margin-bottom: 0;
}

.interview-card .answer-box .label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.interview-card .answer-box .a-jp {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.interview-card .answer-box .a-jp ruby rt {
    font-size: 0.55em;
    color: var(--text-secondary);
}

.interview-card .answer-box .a-bn {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Fill-in-the-blank styling */
.interview-card .fill,
.fc-ans-box .fill {
    background: rgba(239, 68, 68, 0.15) !important;
    border-bottom: 2px solid #ef4444;
    color: #ef4444;
    padding: 0 4px;
    font-weight: 600;
    border-radius: 2px;
}

/* ─── FLASHCARD BACK EXTRA SCROLL ─── */
.fc-scrollable-answers {
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    padding-right: 6px;
    margin-top: 6px;
}

.fc-scrollable-answers::-webkit-scrollbar {
    width: 4px;
}

.fc-scrollable-answers::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.fc-ans-box {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light theme support overrides for flashcard details */
[data-theme="light"] .fc-ans-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .interview-card {
    background: var(--bg-secondary);
}

[data-theme="light"] .interview-card .answer-box {
    background: var(--bg-primary);
}

/* Japanese fonts */
.font-jp {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}
