/* ===================== DSA — Pratik & Test Sistemi Stilleri =====================
 * Paylaşılan css/style.css'te bulunmayan, CS kursuyla aynı görünümü sağlayan
 * sınıflar. index.html'de shared style.css'ten SONRA yüklenir.
 * ============================================================================ */

/* Bölüm başlığı (h2) ve açıklaması */
.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Büyük buton */
.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* ===================== Scrollbar (CS ile aynı ince, temalı) ===================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
#sidebar { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-dark); }
#section-list { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-dark); }

/* ===================== Final konuları ayıracı (sidebar + welcome) ===================== */
.sidebar-final-divider {
    list-style: none;
    margin: 18px 0 6px;
    padding: 8px 12px;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(168,85,247,0.12));
    border: 1px dashed rgba(6,182,212,0.5);
}
.sidebar-final-divider span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #22d3ee;
    text-transform: uppercase;
}
.welcome-final-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px 0 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(6,182,212,0.1), rgba(168,85,247,0.1));
    border: 1px dashed rgba(168,85,247,0.5);
}
.welcome-final-divider span {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

/* Sorting karşılaştırma tablosu */
.cmp-table th { color: var(--text-primary); font-weight: 700; }
.cmp-table td { border-top: 1px solid var(--border); color: var(--text-secondary); }

/* ===================== Hocanın sınav notu bandı ===================== */
.hoca-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 24px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.08));
    border: 1px solid rgba(245,158,11,0.5);
    border-left: 4px solid #f59e0b;
}
.hoca-note-icon { font-size: 1.6rem; line-height: 1.2; flex-shrink: 0; }
.hoca-note-content { flex: 1; min-width: 0; }
.hoca-note-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 8px;
}
.hoca-note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hoca-note-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.hoca-note-q {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.hoca-note code { background: rgba(0,0,0,0.25); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

/* Konuya yönlendirme parlama efekti */
@keyframes hocaFlash {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0); transform: scale(1); }
    20%  { box-shadow: 0 0 0 4px rgba(245,158,11,0.65), 0 0 36px rgba(245,158,11,0.55); transform: scale(1.015); }
    50%  { box-shadow: 0 0 0 4px rgba(245,158,11,0.35), 0 0 24px rgba(245,158,11,0.3); transform: scale(1); }
    75%  { box-shadow: 0 0 0 4px rgba(245,158,11,0.5), 0 0 30px rgba(245,158,11,0.4); transform: scale(1.008); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); transform: scale(1); }
}
.hoca-note.flash { animation: hocaFlash 1.8s ease; }

/* ===================== Bölüm altı mini test kartı ===================== */
.cs-minitest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 8px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(168,85,247,0.08));
    border: 1px dashed rgba(34,211,238,0.5);
}
.cs-minitest-info { display: flex; align-items: center; gap: 14px; }
.cs-minitest-icon { font-size: 1.8rem; }
.cs-minitest-info h4 { margin: 0 0 2px; font-size: 1rem; color: var(--text-primary); }
.cs-minitest-info p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.cs-minitest-btn {
    flex-shrink: 0;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    color: #04121a;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-minitest-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,211,238,0.35); }

/* ===================== Pratik hero kutusu ===================== */
.practice-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(168,85,247,0.12));
    border: 1px solid rgba(34,211,238,0.35);
}
.practice-hero-text h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--text-primary); }
.practice-hero-text p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); max-width: 520px; }

/* ===================== Konu grubu kartları ===================== */
.practice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.practice-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.practice-card-head { display: flex; align-items: center; gap: 10px; }
.practice-card-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.practice-card-head h4 { margin: 0; font-size: 0.98rem; color: var(--text-primary); }
.practice-card-count { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.practice-card-btn {
    margin-top: auto;
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.practice-card-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }

/* ===================== Genel tekrar ipucu kutusu ===================== */
.practice-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: rgba(34,211,238,0.06);
    border-left: 3px solid #22d3ee;
}
.practice-note span { font-size: 1.3rem; }
.practice-note p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.practice-note a { color: #22d3ee; text-decoration: underline; }

/* ===================== Hocanın sınav notları — soru planı ===================== */
.exam-plan-list { display: flex; flex-direction: column; gap: 12px; }
.exam-plan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.exam-plan-item.classic {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.08));
    border-color: rgba(245,158,11,0.5);
}
.exam-plan-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    color: #04121a;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}
.exam-plan-item.classic .exam-plan-num { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.exam-plan-body { flex: 1; min-width: 0; }
.exam-plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.exam-plan-head h4 { margin: 0; font-size: 0.98rem; color: var(--text-primary); }
.exam-plan-slide {
    font-size: 0.72rem;
    font-weight: 600;
    color: #22d3ee;
    background: rgba(34,211,238,0.12);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.exam-plan-body p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.exam-plan-goto {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.exam-plan-goto:hover { border-color: #22d3ee; color: #22d3ee; background: rgba(34,211,238,0.08); }

/* ===================== Deneme sınavı — konu etiketleri ===================== */
.exam-topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.exam-topic-tags span {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .cs-minitest, .practice-hero { flex-direction: column; align-items: stretch; text-align: left; }
    .cs-minitest-btn, .practice-hero .btn-large { width: 100%; }

    .practice-cards { grid-template-columns: 1fr; }
    .practice-card-btn { width: 100%; }
    .practice-hero-text p { max-width: 100%; }

    .cs-minitest-icon { font-size: 1.4rem; }
    .cs-minitest-info h4 { font-size: 0.95rem; }
    .cs-minitest-info p { font-size: 0.82rem; }

    .exam-plan-item { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
    .exam-plan-num { width: 34px; height: 34px; font-size: 0.92rem; }
    .exam-plan-goto { width: 100%; }
    .exam-topic-tags span { font-size: 0.75rem; padding: 5px 10px; }

    .hoca-note { padding: 14px 16px; gap: 10px; }
    .hoca-note-list li { flex-direction: column; gap: 4px; }
    .hoca-note-q { align-self: flex-start; }

    .cmp-table { font-size: 11px; }
    .cmp-table th, .cmp-table td { padding: 6px 4px !important; }
}

@media (max-width: 400px) {
    .cs-minitest { padding: 14px 16px; }
    .practice-hero { padding: 18px; }
    .practice-card { padding: 14px 16px; }
}
