/* =====================================================================
   PAZARLAMAX — DESIGN TOKENS
   Strict Bento Grid Information Hub
   ===================================================================== */

:root {
    /* -----------------------------------------------------------------
       ACIK TEMA — kirik beyaz zemin + koyu mavi vurgu
       Referans his: dokumantasyon / ansiklopedi. Uzun okuma icin optimize.
       Tum renkler burada tanimlidir; bilesenlerde sabit renk kullanmayin.
       ----------------------------------------------------------------- */

    /* Yuzeyler */
    --bg-color: #FBFAF7;              /* Kirik beyaz — global zemin */
    --bg-elevated: #FFFFFF;           /* Kart yuzeyi */
    --bg-elevated-2: #FFFFFF;         /* Daha yuksek katman (golge ile ayrisir) */
    --bg-secondary: #F4F2ED;          /* Alternatif bolum zemini */
    --bg-tertiary: #EDEAE3;           /* Ucuncul panel */

    /* Kenarliklar ve ayiricilar — acik temada koyu, dusuk opaklik */
    --border-color: rgba(22, 24, 29, 0.12);
    --border-strong: rgba(22, 24, 29, 0.22);
    --border-light: rgba(22, 24, 29, 0.06);

    /* Tipografi */
    --text-color: #16181D;            /* Ana metin */
    --text-secondary: #454B57;        /* Ikincil metin */
    /* Not: bu tonlar --bg-secondary (#F4F2ED) uzerinde de WCAG AA (4.5:1)
       esigini gecmek uzere koyulastirildi. Daha acik tonlar altbilgi ve
       komut paletinde esigin altinda kaliyordu. */
    --text-muted: #5C636F;            /* Sonuk metin */
    --text-faint: #6E7684;            /* En sonuk */
    --text-on-accent: #FFFFFF;        /* Vurgu zemin uzerindeki metin */

    /* Vurgu — Koyu Mavi (#1D4ED8) */
    --accent: #1D4ED8;
    --accent-strong: #1E3A9F;         /* hover: daha koyu */
    --accent-soft: rgba(29, 78, 216, 0.10);
    --accent-glow: rgba(29, 78, 216, 0.18);
    --accent-light: #4F7DF0;          /* gradyan esi */
    --accent-tint: rgba(29, 78, 216, 0.05);
    --overlay: rgba(16, 24, 40, 0.45); /* modal arka plani */
    --header-bg: rgba(251, 250, 247, 0.88); /* yapiskan baslik, blur ile */

    /* Yardimci renkler */
    --success: #0F7B4F;
    --warning: #B45309;
    --danger: #C0392B;

    /* Legacy aliases (eski sinif adlariyla uyumluluk icin) */
    --primary-color: var(--accent);
    --primary-dark: var(--accent-strong);
    --primary-light: var(--accent-soft);
    --secondary-color: var(--accent);
    --accent-color: var(--accent);
    --accent-dark: var(--accent-strong);

    /* Spacing scale (8pt baseline) */
    --spacing-xs: 0.25rem;            /* 4px  */
    --spacing-sm: 0.5rem;             /* 8px  */
    --spacing-md: 1rem;               /* 16px — GRID GAP BASE */
    --spacing-lg: 1.5rem;             /* 24px — CARD PADDING BASE */
    --spacing-xl: 2rem;               /* 32px */
    --spacing-2xl: 3rem;              /* 48px */
    --spacing-3xl: 4rem;              /* 64px */

    /* Bento grid system */
    --bento-gap: 16px;                /* strict equal gap */
    --bento-pad: 24px;                /* strict equal card padding */
    --bento-radius: 24px;             /* strict equal corner */
    --bento-radius-sm: 16px;
    --bento-radius-pill: 999px;

    /* Legacy radius aliases */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: var(--bento-radius);
    --radius-xl: var(--bento-radius);

    /* Type system — Urbanist (geometric, modern) */
    --font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --font-family-heading: 'Urbanist', var(--font-family);
    --font-family-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4.25rem;

    --line-height-tight: 1.1;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Layout */
    --max-width: 1360px;
    --max-width-content: 880px;
    --max-width-narrow: 720px;

    /* Motion */
    --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 380ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Yukselti — acik temada golge yumusak ve gri tonlu olmali.
       Koyu temadaki agir siyah golgeler beyaz zeminde kir gibi gorunur. */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
    --shadow-accent: 0 0 0 1px var(--accent), 0 8px 24px var(--accent-glow);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% -10%, rgba(29, 78, 216, 0.05), transparent 42%),
        radial-gradient(circle at 100% 110%, rgba(29, 78, 216, 0.04), transparent 52%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-strong);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    color: var(--text-color);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--font-size-4xl); font-weight: var(--font-weight-extrabold); }
h2 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); }
h4 { font-size: var(--font-size-xl);  font-weight: var(--font-weight-semibold); }
h5 { font-size: var(--font-size-lg);  font-weight: var(--font-weight-semibold); }
h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.font-bold    { font-weight: var(--font-weight-bold); }
.font-semibold{ font-weight: var(--font-weight-semibold); }
.font-medium  { font-weight: var(--font-weight-medium); }

/* Responsive font scale */
@media (max-width: 1024px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }

    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
}

/* Scrollbar (acik) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(22, 24, 29, 0.20); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection */
::selection { background: var(--accent); color: var(--text-on-accent); }
