:root {
  --lacivert: #0b2a4a;
  --lacivert-2: #163d66;
  --altin: #b8860b;
  --altin-acik: #e2ae16;
  --krem: #f7f3ea;
  --kagit: #fffdf8;
  --cizgi: #e3dccb;
  --yazi: #1d2733;
  --soluk: #5d6773;
  --wa: #128c4a;
  --wa-koyu: #0d6e3a;
  --kirmizi: #b42318;
  --golge: 0 1px 2px rgb(11 42 74 / .06), 0 8px 24px rgb(11 42 74 / .08);
  --r: 14px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--sans);
  color: var(--yazi);
  background: var(--krem);
  min-height: 100dvh;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--lacivert); line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--altin-acik); outline-offset: 2px; border-radius: 6px; }

.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lacivert); color: #fff; padding: 10px 14px; border-radius: 8px; }
.atla:focus { top: 12px; }
.soluk { color: var(--soluk); font-weight: 400; }
.kucuk-yazi { font-size: .875rem; }
.ortala { text-align: center; }

/* ---------- Üst bar ---------- */
.ust { background: var(--lacivert); color: #fff; position: sticky; top: 0; z-index: 20; }
.ust-ic { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marka { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.marka strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.marka small { display: block; font-size: .75rem; color: #c8d3e0; letter-spacing: .02em; }
.marka-isaret { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--altin-acik); flex: none; display: grid; place-items: center; }
.marka-isaret::after { content: "K"; color: var(--altin-acik); font-weight: 800; font-size: 1.05rem; line-height: 1; }
.sekmeler { display: flex; gap: 4px; }
.sekme { color: #dce4ee; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.sekme:hover { background: rgb(255 255 255 / .08); color: #fff; }
.sekme[aria-current="page"] { background: rgb(255 255 255 / .14); color: #fff; }
.rozet { background: var(--altin-acik); color: var(--lacivert); font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; }

main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 64px; }

/* ---------- Oluştur ---------- */
.atolye { display: grid; gap: 24px; }
@media (min-width: 980px) {
  .atolye { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 32px; }
  .onizleme { position: sticky; top: 84px; }
}

.form { display: grid; gap: 14px; }
.duzenleme { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff6dc; border: 1px solid #ecd48a; color: #5e4708; border-radius: var(--r); padding: 8px 8px 8px 14px; font-size: .92rem; font-weight: 500; }

.adim { background: var(--kagit); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 16px 16px 18px; margin: 0; min-width: 0; box-shadow: 0 1px 0 rgb(11 42 74 / .03); }
.adim legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--lacivert); display: flex; align-items: center; gap: 10px; }
.adim legend + * { clear: both; }
.no { width: 26px; height: 26px; border-radius: 50%; background: var(--lacivert); color: var(--altin-acik); font: 700 .85rem/26px var(--sans); text-align: center; flex: none; }
.adim legend .soluk { font-family: var(--sans); font-size: .85rem; }

.etiket { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--yazi); }
.girdi { width: 100%; font: inherit; color: var(--yazi); background: #fff; border: 1.5px solid #d6cfbf; border-radius: 10px; padding: 11px 12px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.girdi::placeholder { color: #8a929c; }
.girdi:hover { border-color: #bfb59f; }
.girdi:focus { outline: none; border-color: var(--lacivert-2); box-shadow: 0 0 0 3px rgb(22 61 102 / .15); }
textarea.girdi { resize: vertical; line-height: 1.5; }
.girdi.isim { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--lacivert); resize: none; overflow: hidden; }
input.girdi + datalist + * , .ikili + .etiket { margin-top: 12px; }
.ikili { display: grid; gap: 12px; }
@media (min-width: 560px) { .ikili { grid-template-columns: 1fr 1fr; } }
select.girdi.secim { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230b2a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; text-overflow: ellipsis; }
select.girdi.secim:disabled { background-color: #f3eee2; color: var(--soluk); cursor: not-allowed; }
.vesile-bilgi { margin: 10px 0 0; padding: 10px 12px; background: #f3eee2; border-radius: 10px; font-size: .88rem; color: var(--lacivert); line-height: 1.45; }
.vesile-bilgi strong { font-weight: 700; }

.cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.cipler.alt { margin-top: 10px; padding: 10px; background: #f3eee2; border-radius: 12px; }
.cip { font: 600 .92rem var(--sans); color: var(--lacivert); background: #fff; border: 1.5px solid #d6cfbf; border-radius: 999px; padding: 9px 16px; min-height: 44px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cip:hover { border-color: var(--lacivert-2); }
.cip[aria-checked="true"] { background: var(--lacivert); border-color: var(--lacivert); color: #fff; }
.cipler.alt .cip { font-size: .85rem; padding: 7px 13px; }

.satir-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.baglanti { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 600 .85rem var(--sans); color: var(--lacivert-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.baglanti:hover { color: var(--altin); }
.metin-kutu { position: relative; }
.metin-kutu .girdi { padding-bottom: 30px; }
.sayac { position: absolute; right: 12px; bottom: 9px; font-size: .78rem; color: var(--soluk); background: rgb(255 255 255 / .9); padding: 0 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.sayac.asildi { color: var(--kirmizi); font-weight: 700; }
.ipucu { margin: 8px 0 0; font-size: .84rem; color: var(--soluk); }

.ek { padding: 0; }
.ek summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-weight: 600; color: var(--lacivert); list-style: none; display: flex; align-items: center; gap: 8px; }
.ek summary::-webkit-details-marker { display: none; }
.ek summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.ek[open] summary::before { transform: rotate(45deg); }
.ek > :not(summary) { margin-left: 16px; margin-right: 16px; }
.ek > :last-child { margin-bottom: 16px; }

/* ---------- Önizleme ---------- */
.onizleme { background: var(--lacivert); color: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--golge); }
.onizleme-bas { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.onizleme-bas h2 { color: #fff; font-size: 1.25rem; }
.onizleme-bas .soluk { color: #b9c6d6; }
.masa { display: grid; gap: 14px; }
.masa figure { margin: 0; }
.masa figcaption { font-size: .78rem; color: #b9c6d6; margin-top: 6px; letter-spacing: .02em; }
.sayfa { display: block; width: 100%; height: auto; aspect-ratio: 841.89 / 595.28; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
@media (min-width: 980px) {
  .masa { grid-template-columns: 1fr 1fr; }
  .masa figure:first-child { grid-column: 1 / -1; }
  .masa:has(#sayfa3Kutu[hidden]) { grid-template-columns: 1fr; }
}
.onizleme .ipucu { color: #b9c6d6; margin-top: 12px; }

.eylemler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.eylemler .whatsapp { grid-column: 1 / -1; }

.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--sans); border-radius: 12px; padding: 12px 18px; min-height: 48px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, border-color .15s; }
.dugme:active { transform: translateY(1px); }
.dugme svg { width: 20px; height: 20px; flex: none; }
.dugme.ana { background: var(--altin-acik); color: var(--lacivert); }
.dugme.ana:hover { background: #f0bd2a; }
.dugme.whatsapp { background: var(--wa); color: #fff; }
.dugme.whatsapp:hover { background: var(--wa-koyu); }
.dugme.hayalet { background: transparent; color: var(--lacivert); border-color: #cfc6b2; }
.dugme.hayalet:hover { background: rgb(11 42 74 / .05); border-color: var(--lacivert-2); }
.onizleme .dugme.hayalet { color: #fff; border-color: rgb(255 255 255 / .35); }
.onizleme .dugme.hayalet:hover { background: rgb(255 255 255 / .08); border-color: #fff; }
.dugme.tehlike { background: transparent; color: var(--kirmizi); border-color: #ecc5c1; }
.dugme.tehlike:hover { background: #fdf0ef; }
.dugme.kucuk { font-size: .88rem; padding: 8px 12px; min-height: 44px; border-radius: 10px; }

/* ---------- Kayıtlarım ---------- */
.liste-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.liste-bas h1 { font-size: 1.9rem; }
.ara { position: relative; flex: 1 1 260px; max-width: 420px; }
.ara svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--soluk); }
.ara input { width: 100%; font: inherit; min-height: 46px; padding: 10px 12px 10px 40px; border: 1.5px solid #d6cfbf; border-radius: 12px; background: #fff; }
.ara input:focus { outline: none; border-color: var(--lacivert-2); box-shadow: 0 0 0 3px rgb(22 61 102 / .15); }

.kayitlar { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.kayit { background: var(--kagit); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.kayit-bilgi { min-width: 0; flex: 1 1 260px; }
.kayit-bilgi h3 { font-size: 1.2rem; overflow-wrap: anywhere; }
.kayit-bilgi p { margin: 2px 0 0; }
.kayit-eylem { display: flex; flex-wrap: wrap; gap: 6px; }

.bos { text-align: center; padding: 56px 16px; background: var(--kagit); border: 1px dashed #cfc6b2; border-radius: var(--r); margin-top: 16px; }
.bos h2 { font-size: 1.4rem; }
.bos p { margin: 6px 0 18px; }

/* ---------- Bildirim ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 16px; opacity: 0; pointer-events: none; background: #13263b; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; box-shadow: var(--golge); max-width: calc(100vw - 32px); z-index: 60; transition: opacity .2s, translate .2s; }
.toast.goster { opacity: 1; translate: -50% 0; }

@media (max-width: 420px) {
  .marka { gap: 8px; }
  .marka strong { font-size: 1.05rem; white-space: nowrap; }
  .marka small { font-size: .68rem; white-space: nowrap; }
  .sekme { padding: 10px 8px; }
}
@media (max-width: 360px) {
  .marka-isaret { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
