/* ===== İlim Yolu Page — page-specific styles ===== */
/* #325/T7: extracted from ilim-yolu.html <style> */

body { padding-top: 0; }
.page-header {
    padding: 5rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem,4vw,2.5rem);
    margin-bottom: 0.75rem;
}
.page-header h1 .gold { color: var(--gold); }
.page-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1rem; }

.loading-state { text-align:center; padding:4rem 2rem; color:var(--muted); }
.spinner {
    width:36px; height:36px;
    border:3px solid var(--glass-border);
    border-top-color:var(--gold);
    border-radius:50%;
    animation:spin 0.8s linear infinite;
    margin:0 auto 1rem;
}
@keyframes spin { to { transform:rotate(360deg); } }
.error-state { text-align:center; padding:4rem 2rem; color: #EF4444; }

.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 640px) { .path-grid { grid-template-columns: 1fr; } }

.path-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.path-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }

.path-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.path-card .book-name {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.path-card .desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.path-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.badge-level {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.7rem;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: var(--gold);
}

.progress-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.progress-bar-fill {
    height: 100%;
    background: #10B981;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.path-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    border: none;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.path-btn.start { background: var(--accent); color: #fff; }
.path-btn.start:hover { background: #059669; }
.path-btn.continue { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.path-btn.continue:hover { background: rgba(245,158,11,0.25); }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 1rem;
}
.modal-content {
    background: #111827;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.modal-close {
    background: none; border: none;
    color: var(--muted); font-size: 1.5rem;
    cursor: pointer; padding: 0.25rem; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.modal-footer .step-info { font-size: 0.85rem; color: var(--muted); }

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.step-item:last-child { border-bottom: none; }
.step-check {
    width: 22px; height: 22px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
    background: transparent;
    color: transparent;
}
.step-check.checked {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}
.step-check.checked::after { content: "✓"; font-size: 14px; font-weight: 700; }
.step-check.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.step-check:not(.checked):not(.disabled):hover {
    border-color: #10B981;
}
.step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-info-wrap { flex: 1; min-width: 0; }
.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.step-label.dim { opacity: 0.5; }
.step-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.step-action-btn {
    flex-shrink: 0;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--gold);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-top: 2px;
    display: inline-block;
}
.step-action-btn:hover { background: rgba(245,158,11,0.22); }

.save-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.save-btn:hover { background: #059669; }
.save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-hint {
    font-size: 0.75rem;
    color: var(--gold);
    text-decoration: none;
    margin-right: 12px;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
    grid-column: 1 / -1;
}

/* === Phase 2: Inline-Style-Klassen (T24) === */
.ily-nav-active { color: var(--text); }
.ily-hidden { display: none; }

/* === Phase 2b: JS innerHTML Style-Klassen (T28k-10a) === */
.ily-dim { opacity: 0.4; }
.ily-book-ref { margin-bottom: 1rem; font-size: 0.85rem; color: var(--muted); }
.ily-book-link { color: var(--gold); text-decoration: none; }

/* === Phase 2b: JS innerHTML Style-Klassen (T28k-10b) === */
.ily-center-muted { color: var(--muted); text-align: center; }
.ily-card-nav { margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.ily-nav-info { font-size: 0.8rem; color: var(--muted); }
.ily-flashcard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; min-height: 140px; cursor: pointer; text-align: center; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.ily-card-face { font-size: 0.95rem; line-height: 1.5; }
.ily-card-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.ily-card-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: center; }
.ily-gold { color: var(--gold); }
.ily-score-wrap { text-align: center; padding: 2rem; }
.ily-score-big { font-size: 2.5rem; font-weight: 800; color: var(--gold); margin-bottom: 0.5rem; }
.ily-score-sub { color: var(--muted); margin-bottom: 1.5rem; }
.ily-quiz-opt { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.65rem 0.85rem; margin-bottom: 0.5rem; cursor: pointer; font-size: 0.85rem; transition: background 0.15s; }
.ily-quiz-question { font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; line-height: 1.5; }
.ily-quiz-feedback { min-height: 1.5rem; margin-top: 0.75rem; font-size: 0.8rem; }
.ily-correct { color: #10B981; }
.ily-wrong { color: #F87171; }
