/* SEZGİNSOFT Satış Platformu — tek stil dosyası (vitrin + admin + bayi + giriş). Ciddi, açık tema. */
:root {
  --lacivert: #1b4f9c;
  --lacivert-koyu: #143b75;
  --sari: #f2b200;
  --zemin: #f3f5f8;
  --kart: #ffffff;
  --cizgi: #dde3ea;
  --metin: #1c2430;
  --metin-2: #5b6675;
  --yesil: #1e8e3e;
  --kirmizi: #c62828;
  --turuncu: #d97706;
  --mavi-acik: #e8f0fb;
  --golge: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--font); color: var(--metin); background: var(--zemin); line-height: 1.5; }
a { color: var(--lacivert); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: #eef1f5; padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--metin-2); }
.kucuk { font-size: .85rem; }
.sag { text-align: right; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
img { max-width: 100%; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6rem 1.1rem; border: 1px solid var(--cizgi); border-radius: var(--radius); background: #fff; color: var(--metin); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: #f7f9fc; text-decoration: none; }
.btn-primary { background: var(--lacivert); border-color: var(--lacivert); color: #fff; }
.btn-primary:hover { background: var(--lacivert-koyu); }
.btn-tehlike { background: #fff; border-color: var(--kirmizi); color: var(--kirmizi); }
.btn-tehlike:hover { background: #fff3f3; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Formlar */
.form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .6rem .75rem; border: 1px solid var(--cizgi); border-radius: 6px; font: inherit; font-weight: 400; background: #fff; color: var(--metin); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lacivert); outline-offset: 1px; border-color: var(--lacivert); }
.form .err { display: block; color: var(--kirmizi); font-weight: 400; margin-top: .25rem; }
.form .yardim { display: block; color: var(--metin-2); font-weight: 400; margin-top: .25rem; font-size: .85rem; }
.form .form-links { margin-top: 1rem; text-align: center; font-size: .95rem; }
.form-alt { margin-top: 1rem; }
.form.satir { display: flex; gap: .5rem; align-items: center; }
.form.satir input { margin: 0; }
.satir-toggle { display: flex !important; gap: .6rem; align-items: flex-start; }
.satir-toggle input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
input.kod { font-size: 1.5rem; letter-spacing: .3em; text-align: center; }
.secret { font-size: 1rem; letter-spacing: .05em; }

/* Kart, tablo, etiket, flash */
.card { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--golge); margin-bottom: 1.25rem; }
.card.dar { max-width: 640px; }
.tablo { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tablo th, .tablo td { padding: .55rem .6rem; border-bottom: 1px solid var(--cizgi); text-align: left; vertical-align: top; }
.tablo thead th { color: var(--metin-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.tablo.kv th { width: 40%; color: var(--metin-2); font-weight: 500; }
.tablo .kisalt { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etiket { display: inline-block; padding: .15em .6em; border-radius: 999px; background: #eef1f5; font-size: .82rem; font-weight: 600; }
.etiket-yesil { background: #e3f3e8; color: var(--yesil); }
.etiket-kirmizi { background: #fde8e8; color: var(--kirmizi); }
.etiket-sari { background: #fff4d6; color: #8a6400; }
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-weight: 500; }
.flash-basari { background: #e8f5ec; border-color: #bfe3c9; color: #155c2b; }
.flash-hata { background: #fdecec; border-color: #f5c2c2; color: #8f1d1d; }
.flash-uyari { background: #fff6e0; border-color: #f5dd9a; color: #7a5300; }
.flash-bilgi { background: var(--mavi-acik); border-color: #c5d7f2; color: var(--lacivert-koyu); }
.note { background: var(--mavi-acik); border-left: 4px solid var(--lacivert); padding: .8rem 1rem; border-radius: 4px; }
pre.gunluk { background: #1c2430; color: #d8dee9; padding: 1rem; border-radius: 6px; font-size: .8rem; overflow: auto; max-height: 360px; margin: 0; }
.qr { width: 180px; height: 180px; margin: .5rem 0 1rem; }

/* Izgara */
.grid { display: grid; gap: 1rem; }
.grid.iki { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.kartlar { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.stat { margin: 0; padding: 1rem 1.2rem; }
.stat .stat-l { display: block; color: var(--metin-2); font-size: .85rem; font-weight: 600; }
.stat strong { display: block; font-size: 1.5rem; margin-top: .2rem; }
.stat-dikkat { border-left: 4px solid var(--sari); }

/* Sekmeler */
.sekmeler { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--cizgi); }
.sekmeler a { padding: .6rem .9rem; border-bottom: 2px solid transparent; color: var(--metin-2); font-weight: 600; }
.sekmeler a.aktif { color: var(--lacivert); border-bottom-color: var(--lacivert); }
.sekmeler a:hover { text-decoration: none; color: var(--metin); }

/* ===== Giriş düzeni ===== */
body.auth { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: block; text-align: center; margin-bottom: 1.25rem; }
.auth-logo img { height: 56px; }
.auth-card h1 { text-align: center; font-size: 1.35rem; }
.auth-foot { text-align: center; color: var(--metin-2); font-size: .85rem; margin-top: 1rem; }

/* ===== Yönetim düzeni ===== */
body.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #15213a; color: #c9d3e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand img { height: 30px; background: #fff; border-radius: 4px; padding: 2px 6px; }
.sidebar .brand span { font-weight: 600; color: #fff; font-size: .95rem; }
.sidebar nav { padding: .6rem; flex: 1; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 6px; color: #c9d3e6; font-weight: 500; }
.sidebar nav a svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.sidebar nav a.aktif { background: var(--lacivert); color: #fff; }
.sidebar nav a.yakinda { opacity: .45; cursor: default; }
.sidebar nav a small { margin-left: auto; font-size: .7rem; background: rgba(255,255,255,.12); padding: .1em .5em; border-radius: 999px; }
.sidebar-alt { padding: .9rem 1.1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.sidebar-alt a { color: #c9d3e6; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.5rem; background: #fff; border-bottom: 1px solid var(--cizgi); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 1.2rem; margin: 0; flex: 1; }
.topbar .user { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.menu-btn { display: none; font-size: 1.3rem; background: none; border: 0; cursor: pointer; }
.content { padding: 1.5rem; flex: 1; }
.foot { padding: .75rem 1.5rem; color: var(--metin-2); font-size: .85rem; border-top: 1px solid var(--cizgi); }
@media (max-width: 900px) {
  body.admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 240px; z-index: 20; transition: left .2s; }
  .sidebar.acik { left: 0; }
  .menu-btn { display: inline-block; }
  .content { padding: 1rem; }
}

/* ===== Yönetim ek bileşenleri ===== */
.arac-cubugu { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.islemler { white-space: nowrap; }
.islemler form { display: inline-block; margin-left: .3rem; }
.tablo img.mini { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.card.dar-genis { max-width: 860px; }
.onizleme { margin: .4rem 0; }
.onizleme img { max-height: 140px; border-radius: 8px; border: 1px solid var(--cizgi); display: block; margin-bottom: .3rem; }
.plan-tablo input[type=text], .plan-tablo input[type=number] { width: 100%; min-width: 60px; padding: .4rem .5rem; margin: 0; }
.plan-tablo td { padding: .35rem .3rem; }
.plan-tablo .orta { text-align: center; }
.galeri-yonetim { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.galeri-og { width: 150px; }
.galeri-og img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--cizgi); display: block; margin-bottom: .3rem; }
.menu-grup { color: #7f8fab; font-size: .7rem; letter-spacing: .12em; padding: .9rem .8rem .3rem; }
.html-editor { font-family: Consolas, monospace; font-size: .9rem; }
.sayfalama { display: flex; gap: .3rem; justify-content: center; margin: 1.2rem 0 .3rem; }
.sayfalama a, .sayfalama span { padding: .35rem .7rem; border: 1px solid var(--cizgi); border-radius: 6px; background: #fff; }
.sayfalama .aktif { background: var(--lacivert); color: #fff; border-color: var(--lacivert); }
.etiket-sari { background: #fff4d6; color: #8a6400; }
.gizli { position: absolute; left: -9999px; }
.arti { color: var(--yesil); } .eksi { color: var(--kirmizi); }
.bakiye-kutu { margin-bottom: .6rem; }
.bakiye-kutu small { display: block; color: #7f8fab; font-size: .75rem; }
.bakiye-kutu strong { color: #fff; font-size: 1.1rem; }
.cubuk-grafik { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.cubuk { flex: 1; background: var(--lacivert); height: var(--h, 0%); min-height: 2px; border-radius: 3px 3px 0 0; position: relative; }
.cubuk span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: .65rem; color: var(--metin-2); }
.cubuk:hover { background: var(--sari); }
.kupon-form { max-width: 480px; margin-top: 1rem; }
.durum-fulfilled, .durum-paid { background: #e3f3e8; color: #1e8e3e; }
.durum-awaiting_transfer { background: #fff4d6; color: #8a6400; }
.durum-cancelled, .durum-failed { background: #fde8e8; color: #c62828; }

/* ===== Vitrin düzeni ===== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--cizgi); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo img { height: 40px; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; font-weight: 600; }
.site-main { min-height: 60vh; }
.hero { background: linear-gradient(180deg, #fff 0%, var(--mavi-acik) 100%); padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.hero p { font-size: 1.15rem; color: var(--metin-2); max-width: 600px; margin: 0 auto 1.5rem; }
.hero-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.site-main > .wrap { padding-top: 2rem; padding-bottom: 2rem; }
.site-footer { background: #fff; border-top: 1px solid var(--cizgi); padding: 1.25rem 0; color: var(--metin-2); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 640px) {
  .site-nav { gap: .7rem; font-size: .9rem; }
  .hero h1 { font-size: 1.6rem; }
}
