/* =============================================================================
   Tema tokenlari — arayuzdeki her renk/olcu bu degiskenlerden okunur.
   Degerler calisma zamaninda App/View/Static/Header.php icindeki
   <style id="tp-brand"> bloğu ile (veritabanindan) ezilir; bu yuzden
   bilesen dosyalarinda (theme.css) asla hex renk yazilmaz.
   ============================================================================= */

:root {
    /* --- Ana marka --- */
    --tp-primary: #1F4B8B;
    --tp-primary-rgb: 31, 75, 139;
    --tp-primary-dark: #16386A;
    --tp-primary-darker: #0F2A50;
    --tp-primary-soft: #E9F0F9;
    --tp-primary-ink: #1F4B8B;
    --tp-on-primary: #FFFFFF;

    --tp-secondary: #334E68;
    --tp-secondary-rgb: 51, 78, 104;
    --tp-secondary-soft: #EDF1F5;
    --tp-on-secondary: #FFFFFF;

    --tp-accent: #F2A104;
    --tp-accent-rgb: 242, 161, 4;
    --tp-accent-ink: #916102;
    --tp-on-accent: #1A1A1A;

    /* --- Yuzeyler --- */
    --tp-bg: #FFFFFF;
    --tp-bg-soft: #F5F7FA;
    --tp-surface: #FFFFFF;
    --tp-surface-soft: #F8FAFC;
    --tp-inverse: #101820;
    --tp-inverse-soft: #1B2631;

    /* --- Metin --- */
    --tp-heading: #14202B;
    --tp-text: #475666;
    --tp-text-muted: #7A8896;
    --tp-text-inverse: #F2F5F8;
    --tp-text-inverse-muted: #AEBAC6;

    /* --- Cizgi / durum --- */
    --tp-border: #E2E8EF;
    --tp-border-strong: #CBD5E0;
    --tp-ring: rgba(var(--tp-primary-rgb), .28);
    --tp-success: #16A34A;
    --tp-danger: #DC2626;
    /* WhatsApp marka yeşili; beyaz ikonun 3:1 eşiğini geçmesi için koyu tonu kullanılır. */
    --tp-whatsapp: #0F766E;
    --tp-whatsapp-dark: #0D6B60;
    --tp-warning: #D97706;

    /* --- Tipografi --- */
    --tp-font-head: "Sora", "Segoe UI", Tahoma, Arial, sans-serif;
    --tp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --tp-fs-base: 16px;
    --tp-fs-sm: .875rem;
    --tp-fs-xs: .78rem;
    --tp-fs-lead: clamp(1rem, .95rem + .3vw, 1.16rem);
    --tp-fs-h1: clamp(2rem, 1.2rem + 3.2vw, 3.3rem);
    --tp-fs-h2: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
    --tp-fs-h3: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
    --tp-fs-h4: 1.18rem;
    --tp-fs-h5: 1.02rem;
    --tp-lh-body: 1.68;
    --tp-lh-head: 1.15;
    --tp-tracking-head: -.02em;
    --tp-weight-head: 700;
    --tp-weight-body: 400;

    /* --- Sekil --- */
    --tp-radius-xs: 6px;
    --tp-radius-sm: 10px;
    --tp-radius: 16px;
    --tp-radius-lg: 24px;
    --tp-radius-pill: 999px;
    --tp-shadow-xs: 0 1px 2px rgba(16, 24, 32, .06);
    --tp-shadow-sm: 0 4px 14px rgba(16, 24, 32, .07);
    --tp-shadow: 0 12px 32px rgba(16, 24, 32, .10);
    --tp-shadow-lg: 0 24px 60px rgba(16, 24, 32, .16);
    --tp-border-w: 1px;

    /* --- Yogunluk / ritim (profiller arasinda degisebilir) --- */
    --tp-section: clamp(56px, 7vw, 104px);
    --tp-section-sm: clamp(40px, 4vw, 64px);
    --tp-gap: 24px;
    --tp-gap-sm: 16px;
    --tp-gap-lg: 40px;
    --tp-container: 1220px;
    --tp-gutter: 20px;
    --tp-header-h: 78px;
    --tp-topbar-h: 40px;

    /* --- Hareket --- */
    --tp-ease: cubic-bezier(.22, .61, .36, 1);
    --tp-dur-fast: 140ms;
    --tp-dur: 260ms;
    --tp-dur-slow: 480ms;

    /* --- Bilesen ozel --- */
    --tp-btn-pad-y: 14px;
    --tp-btn-pad-x: 26px;
    --tp-btn-fs: .95rem;
    --tp-btn-weight: 600;
    --tp-card-pad: 28px;
    --tp-nav-gap: 30px;
}

/* Koyu yuzey bolumleri icin lokal token kapsayicisi:
   .tp-inverse altindaki metin/cizgi degerleri tersine cevirir. */
.tp-inverse {
    --tp-heading: var(--tp-text-inverse);
    --tp-text: var(--tp-text-inverse-muted);
    --tp-text-muted: rgba(255, 255, 255, .62);
    --tp-border: rgba(255, 255, 255, .12);
    --tp-surface: rgba(255, 255, 255, .05);
    --tp-surface-soft: rgba(255, 255, 255, .03);
    color: var(--tp-text-inverse);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --tp-dur-fast: 1ms;
        --tp-dur: 1ms;
        --tp-dur-slow: 1ms;
    }
}
