/* ════════════════════════════════════════════════
   Results Section
   ════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════ */
.results-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 80px;
    animation: fadeInUp 0.5s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Video header */
.video-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.video-header-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.video-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.video-meta { flex: 1; min-width: 0; }

.video-difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.difficulty-beginner    { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.difficulty-intermediate { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.difficulty-advanced    { background: rgba(239,68,68,0.1);  color: var(--error);   border: 1px solid rgba(239,68,68,0.25);  }

.video-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.video-author { font-size: 14px; color: var(--text-secondary); }

.video-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.export-pdf-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--success);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}
.export-pdf-btn svg { width: 16px; height: 16px; }
.export-pdf-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--success);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.new-video-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}
.new-video-btn svg { width: 16px; height: 16px; }
.new-video-btn:hover { border-color: var(--accent); color: var(--accent-light); }

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left / Video column */
.video-column {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.video-player-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.video-player-wrapper iframe { width: 100%; height: 100%; display: block; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.12); }

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.card-icon { font-size: 20px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; flex: 1; }
.chapter-count {
    font-size: 12px; color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 3px 10px; border-radius: 20px;
}

/* Overview */
.overview-text {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.75; margin-bottom: 20px;
}
.takeaways-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-muted); margin-bottom: 12px;
}
.takeaways-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.takeaways-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-secondary); line-height: 1.55;
}
.takeaways-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Right / content column */
.content-column { display: flex; flex-direction: column; gap: 20px; }

