/* Hayal Panel: temel tokenlar, yazi tipleri, iskelet yerlesim */
@font-face { font-family: 'Onest'; src: url('../fonts/onest-latin.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+2000-206F, U+20AC, 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.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Young Serif'; src: url('../fonts/youngserif-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; src: url('../fonts/youngserif-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #FBFAF7;
  --surface: #EEF0EA;
  --surface-2: #F5F6F1;
  --card: #FFFFFF;
  --line: #E2E5DC;
  --line-strong: #CCD1C5;
  --ink: #14211E;
  --ink-2: #3D4A46;
  --muted: #6B7672;
  --brand: #1F5E55;
  --brand-dark: #164840;
  --brand-soft: #E3EDE9;
  --tag: #E9B949;
  --tag-soft: #FBF1D6;
  --copper: #B5653A;
  --copper-soft: #F6E8DF;
  --ok: #2F7A55;
  --ok-soft: #E2F0E7;
  --warn: #A86A0B;
  --warn-soft: #FBEFD5;
  --bad: #B23B2E;
  --bad-soft: #F8E3E0;
  --info: #3E6C8E;
  --info-soft: #E3ECF3;
  --c-site: #1F5E55;
  --c-trendyol: #B5653A;
  --c-hepsiburada: #E0A92E;
  --c-getir: #7E9C93;
  --c-whatsapp: #4C7A9E;
  --c-dukkan: #8A6F55;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(20, 33, 30, .05), 0 1px 1px rgba(20, 33, 30, .03);
  --shadow-lg: 0 18px 50px -12px rgba(20, 33, 30, .28), 0 2px 6px rgba(20, 33, 30, .08);
  --side-w: 236px;
  --top-h: 60px;
  --display: 'Young Serif', Georgia, serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--ui); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Yerlesim */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--ink) var(--side-w), var(--bg) var(--side-w)); }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #DDE3DF;
  display: flex; flex-direction: column; padding: 18px 12px 14px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; color: #F4EFD9; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand__name { font-family: var(--display); font-size: 17px; line-height: 1.1; letter-spacing: .1px; }
.brand__sub { font-size: 11px; color: #9DAAA5; letter-spacing: .3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__group { font-size: 10.5px; letter-spacing: .9px; text-transform: uppercase; color: #7E8C87; padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: #D3DAD6;
  font-weight: 500; font-size: 13.5px; position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.nav a[aria-current='page'] { background: rgba(255, 255, 255, .09); color: #fff; }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tag); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav__count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--tag); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.side__foot { margin-top: auto; padding: 14px 10px 2px; font-size: 11.5px; color: #8A9792; border-top: 1px solid rgba(255, 255, 255, .07); }
.side__foot strong { color: #C9D2CE; font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.top__menu { display: none; }
.search { position: relative; flex: 1; max-width: 420px; }
.search input {
  width: 100%; height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 0 12px 0 34px; font-size: 13.5px;
}
.search svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.search kbd { position: absolute; right: 8px; top: 8px; font: 600 10.5px var(--ui); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; background: var(--surface-2); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill-demo { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border: 1px solid #F0DDB0; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; border: 1px solid #CFE0D9; }
.content { padding: 26px 28px 60px; max-width: 1480px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.2px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }

@media (max-width: 1280px) {
  .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .g-2-1, .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --side-w: 76px; }
  .brand__text, .nav__group, .nav a span, .side__foot, .nav__count { display: none; }
  .nav a { justify-content: center; padding: 10px; }
  .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .content { padding: 20px 18px 50px; }
  .top { padding: 0 18px; }
  .g-1-1 { grid-template-columns: minmax(0, 1fr); }
  .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 248px; transform: translateX(-100%); transition: transform .2s ease; }
  .side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .side .brand__text, .side .nav__group, .side .nav a span, .side .side__foot, .side .nav__count { display: initial; }
  .side .nav a { justify-content: flex-start; }
  .top__menu { display: inline-grid; }
  .search kbd, .top .range { display: none; }
  .content { padding: 16px 16px 50px; }
  .page-head h1 { font-size: 24px; }
}
