/* Örnek demoların ortak stili */
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url("/fonts/jakarta-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF; }
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url("/fonts/jakarta-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BA; }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url("/fonts/jakarta-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF; }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url("/fonts/jakarta-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BA; }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("/fonts/jakarta-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02AF; }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("/fonts/jakarta-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BA; }

:root {
  --ink: #0d1b38; --muted: #56627a; --line: #e2e7ef; --bg: #f6f8fb; --surface: #fff;
  --brand: #047857; --brand-hover: #065f46; --brand-soft: #e7f6ef; --danger: #b42318; --warning-soft: #fdf3e2;
  --focus: 0 0 0 3px #fff, 0 0 0 5px #0d1b38;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Jakarta", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }
a { color: var(--brand); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.demo-bar { background: var(--ink); color: #fff; font-size: .88rem; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.demo-bar strong { background: #fff; color: var(--ink); padding: 2px 10px; border-radius: 999px; font-size: .78rem; margin-right: 8px; }
.demo-bar a { color: #a7f3d0; font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1.3fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.btn { font: inherit; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #cdd5e1; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select { font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cdd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
.field { margin-bottom: 14px; }
.error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; min-height: 1.2em; }
.ok { background: var(--brand-soft); color: #035c43; border-radius: 10px; padding: 10px 14px; font-weight: 600; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.empty { color: var(--muted); text-align: center; padding: 24px 10px; border: 1px dashed #cdd5e1; border-radius: 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--brand-soft); color: #035c43; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
