/* ==========================================
   SürüTakip - Herkese açık sayfalar (landing + giriş)
   Tema değişkenleri, Apple yazı tipi, tema düğmesi
   ========================================== */

:root,
[data-theme="dark"] {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

    --bg: #000000;
    --bg-soft: #0a0a0c;
    --surface: rgba(10, 10, 12, 0.92);
    --surface-2: rgba(255, 255, 255, 0.04);
    --surface-3: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text-100: #f5f5f7;
    --text-300: #a1a1a6;
    --text-400: #86868b;

    /* Apple sistem renkleri: baba hattı mavi, anne hattı pembe */
    --sire: #0a84ff;
    --sire-rgb: 10, 132, 255;
    --dam: #ff375f;
    --dam-rgb: 255, 55, 95;

    --btn-bg: #f5f5f7;
    --btn-text: #0a0a0c;
    --halo: rgba(0, 0, 0, 0.85);
    --dither: #ffffff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    --ok: #30d158;
    --err: #ff453a;
}

[data-theme="light"] {
    --bg: #eef1f6;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-2: rgba(20, 22, 30, 0.03);
    --surface-3: rgba(20, 22, 30, 0.06);
    --border: rgba(20, 22, 30, 0.1);
    --border-strong: rgba(20, 22, 30, 0.2);

    --text-100: #1d1d1f;
    --text-300: #424245;
    --text-400: #6e6e73;

    --sire: #0066cc;
    --sire-rgb: 0, 102, 204;
    --dam: #d70040;
    --dam-rgb: 215, 0, 64;

    --btn-bg: #1d1d1f;
    --btn-text: #ffffff;
    --halo: rgba(238, 241, 246, 0.9);
    --dither: #1d1d1f;
    --shadow: 0 30px 80px rgba(20, 22, 30, 0.15);
    --ok: #1f8f3a;
    --err: #d70015;
}

html {
    background: var(--bg);
    color-scheme: dark;
}

[data-theme="light"] {
    color-scheme: light;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-100);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Gateway Flow'daki ince dither dokusu */
.dither {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-color: var(--dither);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 2 2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 2 2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px;
    z-index: 6;
}

/* Tema düğmesi */
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-100);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.theme-btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sire);
    outline-offset: 2px;
}

/* Baba / anne hattı açıklaması */
.legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-400);
    pointer-events: none;
}

.legend span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

.legend .sire::before { background: var(--sire); }
.legend .dam::before { background: var(--dam); }
