/* ApexGlobal — arayüz stilleri (dış bağımlılık yok) */
:root {
  --navy-900: #0b1b33;
  --navy-800: #13294b;
  --navy-700: #1d3a63;
  --accent-600: #ea580c;
  --accent-500: #f97316;
  --accent-50: #fff7ed;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Başlık */
.site-header { background: #fff; border-bottom: 1px solid var(--slate-200); position: sticky; top: 0; z-index: 30; }
.site-header .inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--navy-900); font-size: 18px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); color: #fff; font-size: 15px;
}
.logo .accent { color: var(--accent-600); }
.site-nav { display: flex; gap: 20px; margin-left: 10px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.site-nav a:hover { color: var(--navy-900); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--slate-200); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: #fff; padding: 5px 11px; font-size: 12px; font-weight: 700;
  color: var(--slate-500); cursor: pointer;
}
.lang button.on { background: var(--navy-900); color: #fff; }

/* Düğmeler */
.btn, .btn-primary, .btn-dark, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; font-size: 14px; padding: 10px 18px;
  cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-500); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost { background: #fff; color: var(--slate-700); border-color: var(--slate-200); }
.btn-ghost:hover { background: var(--slate-50); }
.btn-danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* Kart ve form */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-p { padding: 22px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-600); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--slate-300); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: var(--navy-900); background: #fff;
}
.input:focus { outline: 2px solid var(--accent-500); outline-offset: -1px; border-color: var(--accent-500); }
/* Takip numarası alanı: yazılan metin büyük harf, ipucu metni normal kalsın */
.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: none; font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: normal; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--slate-500); font-size: 13px; }
.h1 { font-size: 30px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin: 0; }
.h2 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin: 0 0 16px; }
.section { padding: 56px 0; }

/* Uyarı kutuları */
.alert { border-radius: 12px; padding: 13px 16px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Ana sayfa kahraman bölümü */
.hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 64px 0 96px; }
.eyebrow {
  display: inline-block; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12.5px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; margin: 0 0 16px; letter-spacing: -.025em; max-width: 660px; }
.hero p { color: rgba(255, 255, 255, .78); max-width: 620px; margin: 0; font-size: 16px; }
.track-card { margin-top: -56px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; text-align: center; }
.quick a { display: block; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--slate-200); font-size: 13px; font-weight: 600; color: var(--slate-600); }
.quick a:hover { border-color: var(--accent-500); color: var(--navy-900); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy-900); }
.stat .l { font-size: 13px; color: var(--slate-500); }

/* Takip */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge-created { background: var(--slate-100); color: var(--slate-600); }
.badge-transit { background: #eff6ff; color: #1d4ed8; }
.badge-delivered { background: #ecfdf5; color: #047857; }
.badge-problem { background: #fef2f2; color: #b91c1c; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 18px 0 4px; }
.step .bar { height: 6px; border-radius: 999px; background: var(--slate-200); }
.step.done .bar { background: var(--accent-500); }
.step.bad .bar { background: #fecaca; }
.step .t { font-size: 11px; color: var(--slate-500); text-align: center; margin-top: 7px; line-height: 1.3; }
.step.now .t { color: var(--navy-900); font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--slate-300); margin-top: 5px; flex: none; }
.timeline li.latest .dot { background: var(--accent-500); box-shadow: 0 0 0 4px var(--accent-50); }
.timeline li.bad .dot { background: #ef4444; box-shadow: 0 0 0 4px #fef2f2; }
.timeline li:not(:last-child)::before {
  content: ''; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 1px; background: var(--slate-200);
}
.timeline .body { flex: 1; min-width: 0; }
.timeline .s { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.timeline li.latest .s { color: var(--navy-900); font-weight: 700; }
.timeline .loc { font-size: 13.5px; color: var(--slate-500); }
.timeline .note { font-size: 13.5px; color: var(--slate-600); margin-top: 2px; }
.timeline .raw { font-size: 11.5px; color: var(--slate-400); margin-top: 3px; }
.timeline time { font-size: 12px; color: var(--slate-500); white-space: nowrap; text-align: right; }
.ev-actions { display: flex; gap: 2px; justify-content: flex-end; margin-top: 4px; }
.ev-actions button {
  background: none; border: 0; cursor: pointer; color: var(--slate-400);
  padding: 3px 5px; border-radius: 6px; font-size: 13px; line-height: 1;
}
.ev-actions button:hover { background: var(--slate-100); color: var(--navy-900); }
.ev-actions button.del:hover { background: #fef2f2; color: #dc2626; }

/* Tablo */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--slate-500); padding: 11px 16px; border-bottom: 1px solid var(--slate-200); font-weight: 700;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--slate-50); }
.table-wrap { overflow-x: auto; }

/* Panel düzeni */
.app { display: flex; min-height: 100vh; }
.side { width: 220px; background: var(--navy-900); color: #fff; flex: none; padding: 20px 0; }
.side .brand { padding: 0 20px 20px; font-weight: 800; font-size: 17px; }
.side nav a {
  display: flex; align-items: center; gap: 9px; padding: 10px 20px; font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav a.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.side .foot { margin-top: 24px; padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.side .foot a { color: rgba(255,255,255,.7); display: block; padding: 5px 0; }
.main { flex: 1; padding: 28px; min-width: 0; }

/* Altbilgi */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); margin-top: 60px; padding: 44px 0 26px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.site-footer a { display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; }

/* Erişilebilirlik: klavyeyle içeriğe atla */
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Sayfa yolu (breadcrumb) */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; font-size: 13px; color: var(--slate-500); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--slate-300); }
.crumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy-900); font-weight: 600; }
.page { padding: 24px 20px 48px; }

/* Kahraman bölümü düğmeleri */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero-actions a { padding: 12px 22px; font-size: 15px; }

/* SSS */
.faq details { border-bottom: 1px solid var(--slate-200); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 30px 14px 0; font-weight: 600; color: var(--navy-900);
  position: relative; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; font-size: 20px; color: var(--accent-600); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; color: var(--slate-600); font-size: 14.5px; }
.link { color: var(--accent-600); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Yorumlar */
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.stars .off { color: var(--slate-300); }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 28px; color: var(--slate-300); cursor: pointer; line-height: 1; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f59e0b; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent-500); border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Harita */
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); display: block; background: var(--slate-100); }

/* Söz rozeti */
.promise { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-50); border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 16px; }
.promise strong { color: var(--navy-900); display: block; }

/* Mobilde sabit eylem çubuğu */
.mobile-cta { display: none; }
.site-nav { gap: 18px; }

@media (max-width: 860px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--slate-200); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
  }
  .mobile-cta a { padding: 12px 10px; font-size: 15px; }
  body.site { padding-bottom: 76px; }
  .hide-sm { display: none; }
  .map { height: 260px; }
}

@media (max-width: 860px) {
  .grid2, .grid3, .grid4, .stats, .footer-grid, .quick { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .hero h1 { font-size: 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .app { flex-direction: column; }
  .side { width: 100%; }
  .site-nav { display: none; }
  .main { padding: 18px; }
}
