/* ==========================================================================
   AjansPro vitrin (public) — "Katmanlı mağaza"
   Hafif renkli, noktalı dokulu zemin üstünde gölgeli beyaz kartlar; ürün görselleri tarayıcı penceresi çerçevesinde,
   ikonlar renkli rozetlerde. Üstte iki katlı yatay başlık; satın alma sağdan açılan panelde. Temanın sahne rengi
   giriş bantlarında, ana rengi eylemlerde ve rozetlerde.
   Renk değerleri yönetimden seçilen temadan gelir (aşağıdaki palet blokları); bu dosya yalnızca public'e aittir.
   Yazı tipi: Onest (SIL OFL 1.1, ortak system/assets/fonts); alan adı ve kod girişleri için Geist Mono (SIL OFL 1.1).
   ========================================================================== */

@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+20A0-20C0; }

:root {
  --font-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Ölçek: 13 · 14 · 15 · 16 · 18 · 22 · 28 · 40 · 60 · 84 · 128 px */
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem;
  --fs-3xl: clamp(1.875rem, 3.2vw, 2.5rem);
  --fs-4xl: clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-name: clamp(2.5rem, 5.8vw, 5.25rem);     /* ürün adı (bölüm ve ürün sayfası) */
  --fs-hero: clamp(3rem, 8.4vw, 8rem);          /* ana sayfa başlığı */
  --fs-read: 1.0625rem;
  --lh: 1.6; --lh-snug: 1.3; --lh-tight: 1.05;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem; --s24: 6rem; --s32: 8rem;
  --section: clamp(4.5rem, 10vw, 8.5rem);

  /* Köşe: düğme hap, giriş 12, kutu 20, görsel 18, büyük blok 32 */
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-img: 14px; --r-card: 16px; --r-block: 24px; --r-pill: 999px;

  --container: 1240px; --container-read: 760px; --gutter: clamp(1rem, 4vw, 3rem); --header-h: 0px; --side-w: 17rem; --view-max: 72rem;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 380ms;
  --z-header: 40; --z-drawer: 60; --z-modal: 70; --z-toast: 80;

  /* Durum renkleri (bütün temalarda ortak) */
  --success: #16834f; --success-soft: #e3f4ea; --success-ink: #0f6139;
  --warning: #a86207; --warning-soft: #fbefd9; --warning-ink: #7c4705;
  --danger: #c2372f; --danger-soft: #fbe6e4; --danger-ink: #962620;
  --info: #2a67a8; --info-soft: #e5eef8; --info-ink: #1f4f82;
  --overlay: rgba(10, 14, 24, .48);

  /* ── Kraliyet (varsayılan): kraliyet mavisi, nane ── */
  color-scheme: light;
  --page: #ffffff; --band: #f3f5f9; --band-2: #e9edf4; --line: #e3e7ee; --line-strong: #ccd3de;
  --text: #0d1528; --text-2: #434c60; --muted: #646b7d;
  --accent: #2453e6; --accent-hover: #1b45cc; --accent-soft: #e8eefd; --accent-text: #1d45c8; --accent-ink: #ffffff; --accent-rgb: 36, 83, 230;
  --stage: #0f2160; --stage-2: #172c75; --stage-text: #eef2ff; --stage-muted: #aab7e0; --stage-line: rgba(238, 242, 255, .16);
  --signal: #6ad7bf; --signal-ink: #062c24;
  --shot: 0 1px 2px rgba(13, 21, 40, .06), 0 22px 48px -24px rgba(13, 21, 40, .34);
  --pop: 0 0 0 1px rgba(13, 21, 40, .05), 0 16px 44px -14px rgba(13, 21, 40, .28);
  /* Katmanlar: kart, üstüne gelinen kart, sahne üstündeki pencere */
  --e1: 0 0 0 1px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --e2: 0 0 0 1px rgba(16, 24, 40, .06), 0 4px 10px -2px rgba(16, 24, 40, .08), 0 16px 32px -12px rgba(16, 24, 40, .16);
  --e3: 0 0 0 1px rgba(16, 24, 40, .06), 0 30px 60px -18px rgba(16, 24, 40, .35), 0 12px 24px -12px rgba(16, 24, 40, .18);
  --dot: color-mix(in srgb, var(--text) 9%, transparent);
  --ring: 0 0 0 4px rgba(var(--accent-rgb), .18);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a0e17; --band: #111827; --band-2: #172033; --line: #1e2739; --line-strong: #2b364c;
  --text: #e7ebf3; --text-2: #b4bccc; --muted: #8a93a8;
  --accent: #7d9cff; --accent-hover: #98b0ff; --accent-soft: #172453; --accent-text: #a3b8ff; --accent-ink: #0a1020; --accent-rgb: 125, 156, 255;
  --stage: #0e1d52; --stage-2: #162865; --stage-text: #eaf0ff; --stage-muted: #a8b5d6; --stage-line: rgba(234, 240, 255, .14);
  --signal: #6ad7bf; --signal-ink: #062c24;
  --success: #5cc98f; --success-soft: #11291d; --success-ink: #8fdcb2;
  --warning: #e3aa55; --warning-soft: #2e2213; --warning-ink: #efc78b;
  --danger: #ef8a82; --danger-soft: #34191a; --danger-ink: #f6b2ac;
  --info: #84b3e8; --info-soft: #16243a; --info-ink: #b1cff0;
  --overlay: rgba(2, 4, 10, .7);
  --shot: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 50px -24px rgba(0, 0, 0, .8);
  --pop: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 48px -14px rgba(0, 0, 0, .7);
  --e1: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4);
  --e2: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 32px -12px rgba(0, 0, 0, .7);
  --e3: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -18px rgba(0, 0, 0, .85);
  --dot: color-mix(in srgb, var(--text) 8%, transparent);
}

/* ── Renk temaları (Ayarlar → Site ayarları → Genel → Renk teması; App\Core\Theme) ──
   Her tema kendi vurgu rengini ve kendi sahne rengini taşır (adımlar bandı, alt bilgi); gündüz ve gece değerleri ayrıdır.
   Yazı/zemin çiftleri WCAG AA (≥ 4.5:1) ölçülerek seçildi. */

/* Zümrüt: zümrüt yeşili, taze yeşil */
:root[data-palette="zumrut"] {
  --page: #ffffff; --band: #f1f6f3; --band-2: #e5eee9; --line: #e0e8e3; --line-strong: #c8d4cd;
  --text: #0c1c15; --text-2: #3f5048; --muted: #5d6d65;
  --accent: #0a8754; --accent-hover: #08744a; --accent-soft: #e3f4eb; --accent-text: #07683f; --accent-ink: #ffffff; --accent-rgb: 10, 135, 84;
  --stage: #0b4733; --stage-2: #11573f; --stage-text: #ecf8f1; --stage-muted: #a6cbb9; --stage-line: rgba(236, 248, 241, .16);
  --signal: #b5ef9e; --signal-ink: #10300a;
}
:root[data-palette="zumrut"][data-theme="dark"] {
  --page: #08110d; --band: #0f1a15; --band-2: #15241d; --line: #1c2b24; --line-strong: #283a31;
  --text: #e3eee8; --text-2: #b0c2b8; --muted: #869a8f;
  --accent: #5fd29a; --accent-hover: #79dcab; --accent-soft: #0f3324; --accent-text: #84e0b2; --accent-ink: #04170d; --accent-rgb: 95, 210, 154;
  --stage: #0a3d2c; --stage-2: #104b37; --stage-text: #e6f5ec; --stage-muted: #9fc2b1; --stage-line: rgba(230, 245, 236, .14);
  --signal: #b5ef9e; --signal-ink: #10300a;
}

/* Turuncu: canlı turuncu, yanık turuncu sahne */
:root[data-palette="turuncu"] {
  --page: #ffffff; --band: #f8f4f1; --band-2: #f0e9e3; --line: #ebe4de; --line-strong: #d8cdc4;
  --text: #1f130b; --text-2: #52443a; --muted: #6b5e54;
  --accent: #f26a1b; --accent-hover: #e05a0c; --accent-soft: #fdece0; --accent-text: #a83c05; --accent-ink: #1a0a02; --accent-rgb: 242, 106, 27;
  --stage: #8a3204; --stage-2: #9c3d0b; --stage-text: #fff4ec; --stage-muted: #f0c7aa; --stage-line: rgba(255, 244, 236, .2);
  --signal: #ffd3a8; --signal-ink: #1a0a02;
}
:root[data-palette="turuncu"][data-theme="dark"] {
  --page: #120c08; --band: #1a130e; --band-2: #241a13; --line: #2c221a; --line-strong: #3d3026;
  --text: #f1e8e1; --text-2: #cbbcb0; --muted: #a08f82;
  --accent: #ff8a45; --accent-hover: #ff9d63; --accent-soft: #3d1f0c; --accent-text: #ffab78; --accent-ink: #1a0a02; --accent-rgb: 255, 138, 69;
  --stage: #6e2803; --stage-2: #7f320a; --stage-text: #fff1e6; --stage-muted: #e6bc9f; --stage-line: rgba(255, 241, 230, .16);
  --signal: #ffd3a8; --signal-ink: #1a0a02;
}

/* Bordo: şarap kırmızısı, şampanya */
:root[data-palette="bordo"] {
  --page: #ffffff; --band: #f8f3f5; --band-2: #f0e7ea; --line: #ece3e6; --line-strong: #d8cbd0;
  --text: #1f0d14; --text-2: #533f47; --muted: #6c5961;
  --accent: #9e1f42; --accent-hover: #861737; --accent-soft: #fbe8ee; --accent-text: #8a1a3a; --accent-ink: #ffffff; --accent-rgb: 158, 31, 66;
  --stage: #4d0f25; --stage-2: #5e1730; --stage-text: #fdf0f4; --stage-muted: #dcb3c0; --stage-line: rgba(253, 240, 244, .16);
  --signal: #f2d4a7; --signal-ink: #2a1a05;
}
:root[data-palette="bordo"][data-theme="dark"] {
  --page: #120a0d; --band: #1b1115; --band-2: #25181e; --line: #2d1f25; --line-strong: #3e2c33;
  --text: #f3e6eb; --text-2: #cdb8c0; --muted: #a48d96;
  --accent: #f07d9c; --accent-hover: #f597b0; --accent-soft: #3f1322; --accent-text: #f6a3b9; --accent-ink: #26040f; --accent-rgb: 240, 125, 156;
  --stage: #3f0c1e; --stage-2: #4f1329; --stage-text: #fbeef2; --stage-muted: #d3aab8; --stage-line: rgba(251, 238, 242, .14);
  --signal: #f2d4a7; --signal-ink: #2a1a05;
}

/* Grafit: kömür grisi, gök mavisi */
:root[data-palette="grafit"] {
  --page: #ffffff; --band: #f4f5f7; --band-2: #e9ebef; --line: #e4e6ea; --line-strong: #cdd1d7;
  --text: #111318; --text-2: #464b55; --muted: #646a75;
  --accent: #15181e; --accent-hover: #2b3039; --accent-soft: #eceef1; --accent-text: #15181e; --accent-ink: #ffffff; --accent-rgb: 21, 24, 30;
  --stage: #1a1d23; --stage-2: #252931; --stage-text: #eef1f6; --stage-muted: #a9b0bd; --stage-line: rgba(238, 241, 246, .14);
  --signal: #7cc7f5; --signal-ink: #04253a;
}
:root[data-palette="grafit"][data-theme="dark"] {
  --page: #0c0d10; --band: #141519; --band-2: #1b1d22; --line: #23262c; --line-strong: #33373f;
  --text: #e8eaee; --text-2: #b8bdc6; --muted: #8e94a0;
  --accent: #e8eaee; --accent-hover: #ffffff; --accent-soft: #23262c; --accent-text: #e8eaee; --accent-ink: #111318; --accent-rgb: 232, 234, 238;
  --stage: #1b1e25; --stage-2: #252932; --stage-text: #eef1f6; --stage-muted: #a3abb8; --stage-line: rgba(238, 241, 246, .12);
  --signal: #7cc7f5; --signal-ink: #04253a;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
}
