/* ========================================
   EĞİTİM SAYFALARI STİLLERİ
   ======================================== */

/* Content Card */
.content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 20px;
    color: #1e293b;
}

.content-card-body {
    line-height: 1.8;
    color: #475569;
    font-size: 15px;
}

/* Seviye Badge - Büyük */
.egitim-seviye-badge-lg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
}

.egitim-seviye-badge-lg i {
    font-size: 28px;
}

/* İlerleme Durumu */
.hikaye-progress {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hikaye-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    color: #64748b;
}

.hikaye-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.hikaye-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Üst Konuya Dön Butonu */
.egitim-ust-konu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.egitim-ust-konu-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
    transform: translateX(-2px);
}

.egitim-ust-konu-btn i {
    font-size: 12px;
    color: #94a3b8;
}

/* Bölüm Listesi */
.bolum-item {
    position: relative;
}

.bolum-item.has-reading-progress a {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Reading Progress Bar */
.reading-progress-bar {
    height: 3px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-top: -1px;
}

.reading-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 0 0 8px 8px;
}

.reading-progress-fill.animating {
    animation: smoothProgress 120s linear forwards;
}

.reading-progress-fill.completed {
    animation: none !important;
    width: 100% !important;
    background: linear-gradient(90deg, #10b981, #059669);
}

@keyframes smoothProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Test Card */
.egitim-test-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.egitim-test-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.egitim-test-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.egitim-test-info {
    font-size: 14px;
    color: #64748b;
}

.egitim-test-info .text-warning {
    color: #f59e0b !important;
}

.egitim-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.egitim-test-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.egitim-test-btn.btn-locked {
    background: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.egitim-test-btn.btn-locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

.egitim-test-soru-sayisi {
    font-size: 12px;
    color: #94a3b8;
}

/* Test Okuma Durumu */
.egitim-test-reading-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    text-align: center;
}

.reading-timer-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.egitim-test-card.unlocked .egitim-test-btn.btn-locked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    cursor: pointer;
    opacity: 1;
}

/* Bölüm Navigasyon */
.bolum-nav-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.bolum-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 48%;
}

.bolum-nav-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.bolum-nav-btn.prev {
    justify-content: flex-start;
}

.bolum-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.bolum-nav-btn i {
    font-size: 18px;
    color: #94a3b8;
}

.bolum-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bolum-nav-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bolum-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* Egitim Kart Stilleri - Masal gibi */
.egitim-kart {
    border-left-color: #667eea !important;
}

.egitim-kart:hover {
    border-left-color: #764ba2 !important;
}

.egitim-kart.read {
    border-left-color: #10b981 !important;
}

.egitim-kart .bolum-sira {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.egitim-kart.read .bolum-sira {
    background: linear-gradient(135deg, #10b981, #059669);
}

.egitim-kart .bolum-ikon i {
    color: #667eea;
}

.egitim-kart.read .bolum-ikon i {
    color: #10b981;
}

/* İlişkili Dersler Sidebar Stilleri */
.egitim-iliskili-sidebar .sidebar-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Sinif Açıklaması */
.egitim-sinif-aciklama {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Badge Progress */
.badge-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Bölüm Yok Container */
.bolum-yok-container {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin-top: 20px;
}

.bolum-yok-ikon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.bolum-yok-baslik {
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.bolum-yok-aciklama {
    font-size: 14px;
    color: #64748b;
}

/* Hikaye Bölüm Başlık */
.hikaye-bolum-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.hikaye-bolum-baslik i {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .bolum-nav-container {
        flex-direction: column;
    }

    .bolum-nav-btn {
        max-width: 100%;
    }

    .bolum-nav-btn.next {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Dark Mode */
[data-theme="dark"] .content-card,
.dark .content-card {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .content-card-body,
.dark .content-card-body {
    color: #cbd5e1;
}

[data-theme="dark"] .hikaye-progress,
.dark .hikaye-progress {
    background: #334155;
}

[data-theme="dark"] .hikaye-progress-bar,
.dark .hikaye-progress-bar {
    background: #475569;
}

[data-theme="dark"] .egitim-ust-konu-btn,
.dark .egitim-ust-konu-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .egitim-ust-konu-btn:hover,
.dark .egitim-ust-konu-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #f1f5f9;
}

[data-theme="dark"] .egitim-test-card,
.dark .egitim-test-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
}

[data-theme="dark"] .egitim-test-info,
.dark .egitim-test-info {
    color: #94a3b8;
}

[data-theme="dark"] .egitim-test-soru-sayisi,
.dark .egitim-test-soru-sayisi {
    color: #64748b;
}

[data-theme="dark"] .bolum-nav-btn,
.dark .bolum-nav-btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .bolum-nav-btn:hover,
.dark .bolum-nav-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .bolum-nav-title,
.dark .bolum-nav-title {
    color: #f1f5f9;
}

[data-theme="dark"] .reading-progress-bar,
.dark .reading-progress-bar {
    background: rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .egitim-test-reading-info,
.dark .egitim-test-reading-info {
    background: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .egitim-sinif-aciklama,
.dark .egitim-sinif-aciklama {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .bolum-yok-container,
.dark .bolum-yok-container {
    background: #1e293b;
}

[data-theme="dark"] .bolum-yok-baslik,
.dark .bolum-yok-baslik {
    color: #f1f5f9;
}

[data-theme="dark"] .bolum-yok-aciklama,
.dark .bolum-yok-aciklama {
    color: #94a3b8;
}

[data-theme="dark"] .hikaye-bolum-baslik,
.dark .hikaye-bolum-baslik {
    color: #f1f5f9;
    border-color: #475569;
}
