/* ===== Scholars Page — page-specific styles ===== */
/* #325/T8: extracted from scholars.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; }
.page-header .level-hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; opacity: 0.7; }

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

.loading-state { text-align:center; padding:4rem 2rem; color:var(--muted); grid-column:1/-1; }
.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); } }

.scholar-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: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.scholar-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.scholar-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
}
.scholar-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.scholar-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.scholar-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
}
.badge-gold {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: var(--gold);
}

.level-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}
.level-btn {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.level-btn:hover { border-color: var(--accent); color: var(--text); }
.level-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.scholar-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.scholar-btn:hover { background: #059669; }

.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #059669; }

/* === Phase 2b: JS innerHTML Style-Klassen (T28k-5) === */
.sch-error-text { color: #EF4444; }
.sch-tags-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; justify-content: center; }
