/* Giydirio Partner Portal — statik mock (tasarım: "Giydirio partner tasarım çalışması" Set 1).
   Tasarım dili: Newsreader (serif) + Work Sans (sans) + IBM Plex Mono (mono). Salt frontend. */

:root {
  --bg: #E8E2D6;
  --paper: #FFFDF8;
  --panel: #F5F1E8;
  --ink: #2A2622;
  --ink-2: #3D3833;
  --muted: #5C554D;
  --muted-2: #8A8178;
  --muted-3: #A29889;
  --faint: #C3BBAC;
  --accent: #C15F3C;
  --accent-hover: #9E4728;
  --accent-soft: #E0A88C;
  --green: #2F5D4A;
  --warm: #F0EADC;
  --line: rgba(42, 38, 34, 0.08);
  --line-2: rgba(42, 38, 34, 0.12);
  --line-3: rgba(42, 38, 34, 0.16);
  --shadow: 0 2px 10px rgba(42, 38, 34, 0.05);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Work Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: var(--sans); cursor: pointer; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

/* ---- Login ---- */
.login { min-height: 100vh; display: flex; background: var(--paper); }
.login-aside {
  width: 46%; max-width: 640px; background: var(--panel); padding: 64px 72px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid rgba(42, 38, 34, 0.07);
}
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.hero-h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1.14; letter-spacing: -0.02em; margin: 0; }
.hero-p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 420px; }
.bullets { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.bullet { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); flex: none; }

.wordmark { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.wordmark b { color: var(--accent); font-weight: inherit; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.field input {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 14px 18px; border: 1px solid var(--line-3); border-radius: 14px; background: var(--paper); outline: none;
}
.field input:focus { border-color: var(--accent); }

.btn { font-weight: 500; font-size: 16px; color: var(--paper); background: var(--accent); border: none; padding: 17px; border-radius: 999px; letter-spacing: 0.01em; }
.btn:hover { background: var(--accent-hover); }
.btn-sm { font-size: 13px; padding: 10px 18px; border-radius: 999px; }
.btn-dark { background: var(--ink); color: var(--paper); border: none; }
.btn-ghost { background: var(--paper); color: var(--muted); border: 1px solid var(--line-2); }

/* ---- App shell (topbar + views) ---- */
.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--panel); }
.topbar {
  height: 72px; background: var(--paper); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px; flex: none;
}
.topbar-left { display: flex; align-items: center; gap: 30px; }
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2);
  border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 999px;
}
.nav { display: flex; gap: 6px; }
.nav a { font-size: 14px; color: var(--muted); padding: 8px 16px; border-radius: 999px; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--paper); background: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: #E4DCCB; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; color: var(--muted); }

.view { flex: 1; padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); margin: 0; }
.page-sub { font-size: 14px; color: var(--muted-2); margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* chips / pills */
.chip { font-size: 13px; color: var(--muted); background: var(--paper); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 999px; }
.chip.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.chip.accent { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.status { font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.status.green { color: var(--green); background: rgba(47, 93, 74, 0.09); }
.status.accent { color: var(--accent); background: rgba(193, 95, 60, 0.10); }
.status.mute { color: var(--muted-2); background: var(--warm); }

/* cards */
.card { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
.card.pad { padding: 22px 24px; }
.card-dark { background: var(--ink); border-radius: 16px; padding: 22px 24px; color: var(--paper); }
.card-warm { background: var(--warm); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }

.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } }

.kpi { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.kpi-label { font-size: 13px; color: var(--muted-2); }
.kpi-value { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.kpi-value.faint { color: var(--faint); }
.kpi-sub { font-size: 12px; color: var(--muted-2); }
.kpi-sub.green { color: var(--green); }
.card-dark .kpi-label { color: rgba(245, 241, 232, 0.62); }
.card-dark .kpi-value { color: var(--panel); }
.card-dark .kpi-sub { color: rgba(245, 241, 232, 0.55); }

/* tables */
.tbl { display: flex; flex-direction: column; overflow: hidden; }
.tbl-head, .tbl-row { display: grid; gap: 12px; align-items: center; }
.tbl-head { padding: 12px 24px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-3); border-bottom: 1px solid var(--line); }
.tbl-row { padding: 15px 24px; border-bottom: 1px solid rgba(42, 38, 34, 0.05); font-size: 14px; color: var(--ink); }
.sec-title { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.card-h { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }

/* thumbs */
.thumb { border-radius: 6px; background: repeating-linear-gradient(135deg, #EDE6D8 0 5px, #E3DACA 5px 10px); flex: none; }
.thumb-lg { height: 214px; border-radius: 0; background: repeating-linear-gradient(135deg, #EDE6D8 0 6px, #E3DACA 6px 12px); position: relative; display: flex; align-items: flex-end; padding: 12px; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1200px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
.prod-card { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.prod-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 9px; }

/* bars (top items) */
.bar-track { height: 5px; border-radius: 999px; background: #EDE6D8; overflow: hidden; }
.bar-fill { height: 5px; border-radius: 999px; background: var(--accent); }

/* toggles */
.toggle { width: 44px; height: 24px; border-radius: 999px; display: flex; align-items: center; padding: 3px; flex: none; }
.toggle.on { background: var(--green); justify-content: flex-end; }
.toggle.off { background: #E4DCCB; }
.toggle span { width: 18px; height: 18px; border-radius: 999px; background: var(--paper); display: block; }

/* onboarding steps (empty state) */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; flex: none; }
.step-n.done { background: var(--green); color: var(--paper); }
.step-n.active { background: var(--accent); color: var(--paper); }
.step-n.todo { border: 1px solid var(--line-3); color: var(--muted-2); }

.empty-panel { flex: 1; border: 1px dashed var(--line-3); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 120px; padding: 24px; text-align: center; }
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 18px; }
.search-ico { width: 13px; height: 13px; border: 1.5px solid var(--muted-3); border-radius: 999px; flex: none; }
.divider { width: 1px; height: 24px; background: var(--line-2); }
.hint { font-size: 11px; color: var(--muted-2); background: rgba(255,253,248,0.85); padding: 3px 7px; border-radius: 5px; }
.form-error { font-size: 13px; color: var(--accent); background: rgba(193, 95, 60, 0.08); padding: 10px 14px; border-radius: 12px; line-height: 1.5; }
.searchbox input::placeholder { color: var(--muted-3); }
.filter-chip { cursor: pointer; }
#logoutBtn { cursor: pointer; }
