/* =====================================================
   AKORUM.NET — TEMEL KATMAN (base)
   Reset sonrası global erişilebilirlik, tipografi ve davranış.
   tokens.css'ten SONRA, style.css'ten ÖNCE yüklenir.
   ===================================================== */

/* --- Temel tipografi --- */
body {
    font-family: var(--font-body);
}

/* Başlıklar: Outfit display — ağırlıklı, sıkı ve dengeli */
h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}
h1 {
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Sayısal veriler: hizalı ve tabular (frekans, puan, istatistik) */
.tuner-note-value,
.rating-summary,
.rep-stat-value,
.song-meta,
.chord-back-name {
    font-variant-numeric: tabular-nums;
}

/* --- Klavye odağı: tüm etkileşimli öğelerde görünür halka --- */
:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form elemanlarında çift halkayı önle */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 0;
}

/* --- Metin seçimi --- */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* --- Hareket azaltma tercihi --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Kaydırma çubuğu (Webkit) — temaya duyarlı --- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
    border: 3px solid var(--body-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Tema değiştirme düğmesi --- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

/* Ikon gösterimi: açık temada ay, koyu temada güneş */
.theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: inline-block; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }
