/*
 * Shopy 101 web platformu — "Renkli Bento" (2026-11-30).
 *
 * Uygulamayla AYNI dil (app/src/main/res/values/colors_bento.xml):
 *   - açık gri zemin, kenarsız beyaz kutucuklar (24px), paneller (32px)
 *   - her kategori/bölüm kendi pastel renginde; metin o rengin mürekkebinde
 *   - kalın sans başlıklar (Figtree), hap düğmeler, yüzen beyaz menü
 * Önceki "Masa" sürümü (serif, editoryal) uygulamada "yine aynı" diye
 * reddedildi; web de aynı yöne taşındı.
 *
 * Kimlik rengi MOR (#6D28D9 web / gece #A78BFA) — kullanıcının kararı.
 * Turuncu (signal) yalnızca para için; bu platformda ücretli içerik yok.
 * Hareket: tek eğri (--ease), kontroller 200ms altında, `transition: all` YOK.
 */
:root {
  --bg: #F1F2F6;
  --surface: #FFFFFF;
  --sunken: #E8E9F1;
  --ink: #131B2E;
  --muted: #4A4455;
  --line: #E3E4EC;
  --line-strong: #7C8798;
  /* Web'de mor bir basamak derin: #6D28D9 beyazda 7,10:1 (#7C3AED 5,70:1);
     tools/web/dogrula.js ve site.css bu ölçülmüş kararla aynı. Uygulama #7C3AED. */
  --accent: #6D28D9;
  --accent-deep: #5300B7;
  --accent-soft: #EDE5FF;
  --on-accent: #FFFFFF;
  --ok: #12883E;
  --warn: #B45309;
  --danger: #C3221F;

  /* Bento kutucuk çiftleri: zemin + mürekkep (her çift ≥ 4,5:1). */
  --t-lilac: #EDE5FF;  --t-lilac-ink: #5B21B6;
  --t-mint: #D9F4E7;   --t-mint-ink: #0F6B48;
  --t-peach: #FFE6D5;  --t-peach-ink: #A3400F;
  --t-sky: #DCEAFF;    --t-sky-ink: #1D4ED8;
  --t-lemon: #FFF3C4;  --t-lemon-ink: #8A5A00;
  --t-rose: #FFE1EB;   --t-rose-ink: #B4235A;
  --circle: rgb(255 255 255 / 0.72);

  --radius: 24px;
  --radius-lg: 32px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgb(19 27 46 / 0.04), 0 10px 30px -14px rgb(19 27 46 / 0.18);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B12;
    --surface: #181822;
    --sunken: #20202C;
    --ink: #EEF0F8;
    --muted: #A3A3B8;
    --line: #2A2A3A;
    --line-strong: #6E7A94;
    --accent: #A78BFA;
    --accent-deep: #C4B5FD;
    --accent-soft: #2B2250;
    --on-accent: #1A0B36;
    --ok: #5FD08A;
    --warn: #FBBF74;
    --danger: #F5867F;
    --t-lilac: #2B2250;  --t-lilac-ink: #D4C6FF;
    --t-mint: #133A2C;   --t-mint-ink: #9BE7C4;
    --t-peach: #3D2416;  --t-peach-ink: #FFC2A0;
    --t-sky: #16294A;    --t-sky-ink: #A9C8FF;
    --t-lemon: #3A3115;  --t-lemon-ink: #F7DA83;
    --t-rose: #3E1A29;   --t-rose-ink: #FFB3CB;
    --circle: rgb(255 255 255 / 0.10);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -14px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kutucuk renkleri — metin ve ikon o rengin mürekkebinde. */
.t-lilac { background: var(--t-lilac); color: var(--t-lilac-ink); }
.t-mint  { background: var(--t-mint);  color: var(--t-mint-ink); }
.t-peach { background: var(--t-peach); color: var(--t-peach-ink); }
.t-sky   { background: var(--t-sky);   color: var(--t-sky-ink); }
.t-lemon { background: var(--t-lemon); color: var(--t-lemon-ink); }
.t-rose  { background: var(--t-rose);  color: var(--t-rose-ink); }

/* ─── Üst menü: yüzen beyaz hap ──────────────────────────────────── */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 20px; }
.top-row {
  display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 10px 0 18px;
  width: min(100%, var(--wrap)); margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 1.12rem; }
.brand b { color: var(--accent); font-weight: 800; margin-left: 1px; }
.mark { width: 32px; height: 32px; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a, .mnav a {
  text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current="page"] { color: var(--t-lilac-ink); background: var(--t-lilac); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.saved-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--muted); text-decoration: none; background: var(--sunken); }
.saved-link:hover, .saved-link[aria-current="page"] { color: var(--t-lilac-ink); background: var(--t-lilac); }
.saved-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.lang { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.lang:hover { color: var(--ink); background: var(--sunken); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: var(--sunken); border-radius: 999px; place-items: center; cursor: pointer; }
.mnav { display: grid; gap: 2px; padding: 10px; margin: 8px auto 0; width: min(100%, var(--wrap)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 14px; font-size: 1rem; }
@media (max-width: 1060px) { .nav { display: none; } .menu-btn { display: grid; } .top-row { justify-content: space-between; } }
@media (max-width: 560px) { .app-btn span, .lang { display: none; } .top { padding: 0 12px; } }

/* ─── Düğmeler: hap ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-small { height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .btn-accent:hover { background: var(--accent-deep); color: var(--on-accent); } }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--t-lilac); color: var(--t-lilac-ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--t-lilac) 80%, var(--accent)); }
.btn-light { background: #fff; color: #2E1065; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ─── Kahraman ───────────────────────────────────────────────────── */
.kicker { font-size: .9rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; letter-spacing: 0; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 64px) 0 24px; align-items: start; }
.display { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.hero .actions { margin: 26px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.stats div { border-radius: 20px; padding: 14px 16px; }
.stats div:nth-child(1) { background: var(--t-lilac); color: var(--t-lilac-ink); }
.stats div:nth-child(2) { background: var(--t-mint); color: var(--t-mint-ink); }
.stats div:nth-child(3) { background: var(--t-peach); color: var(--t-peach-ink); }
.stats div:nth-child(4) { background: var(--t-sky); color: var(--t-sky-ink); }
.stats dt { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stats dd { margin: 4px 0 0; font-size: .82rem; font-weight: 600; }
.desk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.desk-head h2 { font-size: 1.35rem; }
.desk-head time { font-size: .85rem; font-weight: 600; color: var(--muted); }
.desk { display: grid; gap: 12px; margin: 6px 0 12px; grid-template-columns: 1.15fr .85fr 1fr; grid-template-rows: 150px 120px 150px;
  grid-template-areas: "visual book palette" "visual book pattern" "prompt prompt gradient"; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--surface); isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tile-visual { grid-area: visual; }
.tile-book { grid-area: book; background: var(--sunken); }
.tile-palette { grid-area: palette; display: flex; flex-direction: column; }
.tile-palette .strip { flex: 1; }
.tile-pattern { grid-area: pattern; background-repeat: repeat; }
.tile-prompt { grid-area: prompt; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: var(--t-lilac); color: var(--t-lilac-ink); }
.tile-prompt .tile-k { color: var(--t-lilac-ink); opacity: .75; }
.tile-title { font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.tile-text { font-size: .92rem; opacity: .85; }
.tile-gradient { grid-area: gradient; }
.tile-fallback { background: var(--t-lilac); }
.tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 1px; padding: 8px 12px; border-radius: 16px; font-size: .84rem; font-weight: 700; line-height: 1.25;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; white-space: nowrap; }
.tile-cap > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tile-palette .tile-cap { position: static; margin: 10px; }
.tile-k { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .desk { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 130px 120px auto 110px;
    grid-template-areas: "visual book" "palette book" "pattern gradient" "prompt prompt" "prompt prompt"; }
}

/* ─── Bento kategori ızgarası ────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 118px; grid-auto-flow: dense; gap: 12px; }
.bt { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius);
  text-decoration: none; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bt:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bt-icon { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: var(--circle); }
.bt-icon .i { width: 22px; height: 22px; stroke-width: 2.2; }
.bt-label { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.bt-count { font-size: .82rem; font-weight: 600; opacity: .8; }
.bt.big { grid-column: span 2; grid-row: span 2; }
.bt.big .bt-label { font-size: 1.7rem; }
.bt.wide { grid-column: span 2; }
.bt { grid-column: span 1; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 104px; } .bt.big { grid-column: span 2; grid-row: span 2; } .bt.wide { grid-column: span 2; } }

/* ─── Bantlar: pastel paneller ───────────────────────────────────── */
.band { padding: 28px 0 4px; }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.band-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 4px; }
.band-head p { margin: 0; }
.panel-band { border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel-band .band-head h2, .panel-band .band-head p { color: inherit; }
.panel-band .band-head p { opacity: .85; }
.panel-band .more { color: inherit; }
.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--accent); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--circle); }
.more .i { transition: transform .18s var(--ease); }
.more:hover .i { transform: translateX(3px); }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid-tight { margin-top: 14px; }
.grid-covers { grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); align-items: start; }
.grid-mixed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
.grid-saved { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 172px); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf > * { scroll-snap-align: start; }

/* ─── Kartlar: kenarsız beyaz kutucuk ────────────────────────────── */
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.card-title { font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 32px; }
.card-meta { font-size: .86rem; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.panel-band .card-meta { color: color-mix(in srgb, currentColor 75%, transparent); }
.clip { white-space: nowrap; text-overflow: ellipsis; display: block; }
.card-item { background: transparent; }
.card-item:hover { box-shadow: none; transform: none; }
.card-item .card-body { padding: 10px 2px 4px; }
.card-item .card-title { font-size: .95rem; }
.card-item:hover .cover img { transform: scale(1.04); }
.cover { position: relative; overflow: hidden; border-radius: 18px; background: var(--sunken); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.cover-tall { aspect-ratio: 2 / 3; }
.cover-square { aspect-ratio: 1; }
.cover-wide { aspect-ratio: 16 / 10; }
.cover-type { display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: var(--t-lilac); color: var(--t-lilac-ink); }
.cover-type.c1 { background: var(--t-mint); color: var(--t-mint-ink); }
.cover-type.c2 { background: var(--t-peach); color: var(--t-peach-ink); }
.cover-type.c3 { background: var(--t-sky); color: var(--t-sky-ink); }
.cover-type.c4 { background: var(--t-lemon); color: var(--t-lemon-ink); }
.cover-type.c5 { background: var(--t-rose); color: var(--t-rose-ink); }
.cover-cat { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.cover-word { font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.strip { display: flex; height: 120px; }
.strip > span { flex: 1; transition: flex-grow .25s var(--ease); }
.card-palette:hover .strip > span:hover { flex-grow: 1.8; }
.swatch-big { display: block; height: 140px; background-repeat: repeat; }
.card-gradient .swatch-big { height: 120px; }
.card-gradient .card-body { gap: 8px; }
.card-gradient .btn { align-self: flex-start; }
.pill { align-self: flex-start; display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--t-lilac); color: var(--t-lilac-ink); text-decoration: none; margin-bottom: 4px; }
.prompt-peek { margin-top: 8px; padding: 0 12px; border-block: 10px solid var(--sunken); border-radius: 14px; background: var(--sunken); color: var(--muted); font-size: .8rem; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--mono); }
.check-meter { display: block; height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; margin: 10px 0 2px; }
.check-meter > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
.check-meter.big { height: 10px; width: min(280px, 50vw); margin: 0; }

.save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 0; cursor: pointer; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px);
  transition: color .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease); }
.save .i { width: 16px; height: 16px; }
.save:hover { color: var(--accent); }
.save:active { transform: scale(.9); }
.save[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.save[aria-pressed="true"] .i { fill: currentColor; }
.save-inline { position: static; width: 50px; height: 50px; flex: none; background: var(--t-lilac); color: var(--t-lilac-ink); }

/* ─── Neden / Pro ────────────────────────────────────────────────── */
.why h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.why-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; counter-reset: why; }
.why-list li { padding: 22px; border-radius: var(--radius); counter-increment: why; }
.why-list li:nth-child(1) { background: var(--t-mint); color: var(--t-mint-ink); }
.why-list li:nth-child(2) { background: var(--t-sky); color: var(--t-sky-ink); }
.why-list li:nth-child(3) { background: var(--t-peach); color: var(--t-peach-ink); }
.why-list li .muted { color: inherit; opacity: .85; }
.why-list li::before { content: "0" counter(why); font-weight: 800; font-size: .9rem; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--circle); margin-bottom: 12px; }
.pro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); color: #F5F1FF;
  background: radial-gradient(120% 140% at 100% 0%, #A78BFA 0%, transparent 55%), linear-gradient(135deg, #2E1065, #5B21B6 60%, #7C3AED); }
.pro h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.pro p { max-width: 62ch; margin: 0; color: #E4DAFE; }
.pro .kicker { color: #DDD0FF; }

/* ─── Sayfa başı, kırıntı ────────────────────────────────────────── */
.page-head { padding: clamp(28px, 5vw, 52px) 0 12px; }
.page-head .lede { margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 0; margin: 0; font-size: .86rem; font-weight: 600; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ─── Araç çubuğu, arama, çipler ─────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 4px 0 20px; }
.toolbar [data-count] { margin: 0 0 0 auto; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 480px; height: 52px; padding: 0 18px; background: var(--surface); border-radius: 999px; color: var(--muted); box-shadow: var(--shadow);
  transition: box-shadow .15s var(--ease); }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.search input { flex: 1; border: 0; background: transparent; outline: none; color: var(--ink); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); font-size: .9rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { background: var(--t-lilac); color: var(--t-lilac-ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chips-links { margin-top: 12px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
[data-hide] { display: none !important; }

/* ─── Eser sayfası ───────────────────────────────────────────────── */
.item { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(20px, 3vw, 40px); padding: 24px 0 20px; align-items: start; }
.item-media { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius-lg); background: var(--t-lilac); }
.item-media .cover { border-radius: 18px; box-shadow: var(--shadow); }
.item-info { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.item h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.item .lede { font-size: 1.02rem; }
.item .actions { margin: 22px 0 26px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 18px; }
.facts div { padding: 12px 14px; border-radius: 16px; background: var(--sunken); }
.facts dt { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.facts a { color: var(--accent); }
.note { max-width: 62ch; }
@media (max-width: 760px) { .item { grid-template-columns: 1fr; } .item-media { position: static; max-width: 420px; } }

/* ─── Palet ──────────────────────────────────────────────────────── */
.palette-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 0 22px; }
.palette-head h1 { margin-bottom: 8px; }
.palette-head .lede { margin: 0; }
.tags { display: flex; gap: 6px; margin: 0; }
.swatches { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.swatch-color { width: 100%; height: clamp(150px, 22vw, 260px); border: 0; background: var(--c); color: var(--on); cursor: pointer; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; text-align: left; }
.swatch-color .mono { font-size: 1rem; font-weight: 600; }
.swatch-color .i { opacity: 0; transition: opacity .15s var(--ease); }
.swatch-color:hover .i, .swatch-color:focus-visible .i { opacity: 1; }
.swatch dl { margin: 0; padding: 12px 16px 16px; display: grid; gap: 3px; }
.swatch dl div { display: flex; justify-content: space-between; gap: 8px; }
.swatch dt { color: var(--muted); }
.swatch dd { margin: 0; }
@media (max-width: 760px) { .swatches { grid-template-columns: 1fr; } .swatch { display: grid; grid-template-columns: 120px 1fr; } .swatch-color { height: 100%; min-height: 96px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; align-items: start; }
.two-col > div { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; }
.two-col > .panel { padding: 22px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.ui-preview { background: var(--pb); color: var(--pi); border-radius: var(--radius); padding: 26px; }
.ui-preview h3 { font-size: 1.6rem; font-weight: 800; }
.ui-k { font-size: .8rem; font-weight: 700; color: var(--pa); margin-bottom: 10px; }
.ui-btn { display: inline-block; background: var(--pa); color: var(--pon); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.ui-link { color: var(--pa); text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; }
.pairs { width: 100%; border-collapse: collapse; }
.pairs td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.pair { display: inline-grid; place-items: center; width: 44px; height: 32px; border-radius: 10px; font-weight: 800; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.mid { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.no { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tabs { margin-bottom: 28px; }
.tab-list { display: flex; gap: 6px; margin-bottom: 10px; }
.tab-list button { border: 0; background: var(--surface); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.tab-list button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.code { position: relative; background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .82rem; line-height: 1.6; max-height: 320px; }
.code .btn { position: absolute; top: 10px; right: 10px; }
.code code { white-space: pre; }
.code [data-out="svg"] { white-space: pre-wrap; word-break: break-all; }

/* ─── Düzenleyici, paneller, alanlar ─────────────────────────────── */
.editor { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-bottom: 28px; }
.editor-stage { min-height: 420px; border-radius: var(--radius-lg); background-repeat: repeat; background-color: var(--surface); }
.editor-panel, .panel { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 16px; align-content: start; }
.panel h2 { font-size: 1.1rem; margin: 0; }
.field { display: grid; gap: 6px; font-size: .92rem; font-weight: 700; }
.field output { color: var(--accent); }
.field.check { display: flex; align-items: center; gap: 8px; }
.field input[type="text"], .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); font-weight: 400;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="color"] { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 3px; background: var(--bg); cursor: pointer; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } .editor-stage { min-height: 260px; } }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-out { position: sticky; top: 96px; }
.prompt-out { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: .86rem; line-height: 1.7; background: var(--sunken); border-radius: 18px; padding: 16px; max-height: 60vh; overflow: auto; }
.prompt-out mark { background: var(--t-lilac); color: var(--t-lilac-ink); border-radius: 6px; padding: 0 4px; }
.prompt-out mark.filled { background: transparent; color: var(--ink); font-weight: 700; }

/* ─── Kontrol listesi ────────────────────────────────────────────── */
.checklist { max-width: 820px; margin-bottom: 24px; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.check-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: sticky; top: 88px; background: var(--surface); z-index: 3; }
.check-progress { display: flex; align-items: center; gap: 14px; }
.check-sec { border: 0; padding: 0; margin: 22px 0 6px; }
.check-sec legend { font-size: 1.25rem; font-weight: 800; padding: 0; margin-bottom: 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; cursor: pointer; transition: background-color .15s var(--ease); }
.check-item:hover { background: var(--sunken); }
.check-item input { margin-top: 3px; flex: none; }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ─── Kontrast aracı ─────────────────────────────────────────────── */
.color-pair { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.contrast-sample { border-radius: var(--radius); padding: 26px; }
.big-sample { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.ratio { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.ratio b { font-size: 2.2rem; font-weight: 800; }

/* ─── Bildirim ───────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 0); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: .92rem; font-weight: 700;
  box-shadow: var(--shadow); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.toast[hidden] { display: block; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

/* ─── Alt bilgi: beyaz panel ─────────────────────────────────────── */
.foot { margin: 64px auto 24px; width: min(100% - 40px, var(--wrap)); background: var(--surface); border-radius: var(--radius-lg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 36px clamp(22px, 3vw, 40px) 18px; width: auto; }
.foot-grid > div { max-width: 46ch; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot nav a { text-decoration: none; font-size: .94rem; font-weight: 500; }
.foot nav a:hover { color: var(--accent); }
.foot-brand { margin-bottom: 10px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px clamp(22px, 3vw, 40px) 24px; border-top: 1px solid var(--line); width: auto; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

@media print {
  .top, .foot, .crumbs, .save, .actions, .band, .toast, .check-bar .actions { display: none !important; }
  body { background: #fff; color: #000; }
  .check-bar { position: static; }
  .check-item { padding: 6px 0; }
}
