/* ============================================
   HER ÇOCUK MATEMATİK ÖĞRENEBİLİR APP SHELL — unified header
   Üst-marka: Her Çocuk Matematik Öğrenebilir / HÇMÖ (Üçlü Kod işareti)
   Applied to /platform/* and (via MU plugin) /araclar/*
   ============================================ */

:root {
  --dk-brand-blue:   #0071dc;
  --dk-brand-blue-d: #005bb3;
  --dk-brand-yellow: #ffc221;
  --dk-brand-navy:   #031f42;
  --dk-brand-navy-l: #1a3a60;
  --dk-shell-fg:     #ffffff;
  --dk-shell-muted:  rgba(255, 255, 255, 0.75);
}

/* Force app shell to appear above platform's own dark theme nav */
body.dk-has-shell {
  padding-top: 104px !important;
}

/* ========== TOP BAR (dark navy strip) ========== */
.dk-shell-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--dk-brand-navy);
  color: var(--dk-shell-fg);
  z-index: 9998;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 40px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.dk-shell-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}
.dk-shell-topbar a {
  color: var(--dk-shell-fg);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.dk-shell-topbar a:hover {
  color: var(--dk-brand-yellow);
  opacity: 1;
}
.dk-shell-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dk-shell-topbar-left .dk-sep {
  opacity: 0.3;
}
.dk-shell-topbar-phone::before {
  content: '📞 ';
  opacity: 0.7;
  margin-right: 4px;
}
.dk-shell-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dk-shell-social {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.2s;
}
.dk-shell-social:hover {
  background: var(--dk-brand-yellow);
  color: var(--dk-brand-navy) !important;
}

/* ========== MAIN HEADER (white + logo + menu) ========== */
.dk-shell-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 9997;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}
.dk-shell-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dk-shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.dk-shell-brand img {
  height: 44px;
  width: auto;
  display: block;
}
.dk-shell-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--dk-navy, #031f42);
}
.dk-shell-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dk-shell-nav li { margin: 0; padding: 0; }
.dk-shell-nav {
  gap: 2px;
  flex-wrap: nowrap;
  overflow: visible;
}
.dk-shell-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  color: var(--dk-brand-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all .22s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
  letter-spacing: -.005em;
  line-height: 1.2;
}
@media(max-width: 1400px) {
  .dk-shell-nav a { padding: 5px 10px; font-size: 12px; }
}
.dk-shell-nav a:hover,
.dk-shell-nav a.active {
  color: var(--dk-brand-blue);
  background: rgba(0, 113, 220, 0.08);
}

/* === Renklendirilmiş pill menü === */
.dk-shell-nav a.dk-nav-nedir      { color:#7c3aed; background:rgba(139,92,246,.10); border-color:rgba(139,92,246,.22); }
.dk-shell-nav a.dk-nav-nedir:hover,
.dk-shell-nav a.dk-nav-nedir.active { color:#fff; background:#8b5cf6; border-color:#8b5cf6; box-shadow:0 6px 16px rgba(139,92,246,.32); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-ebeveyn    { color:#db2777; background:rgba(236,72,153,.10); border-color:rgba(236,72,153,.22); }
.dk-shell-nav a.dk-nav-ebeveyn:hover,
.dk-shell-nav a.dk-nav-ebeveyn.active { color:#fff; background:#ec4899; border-color:#ec4899; box-shadow:0 6px 16px rgba(236,72,153,.32); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-ogretmen   { color:#059669; background:rgba(16,185,129,.10); border-color:rgba(16,185,129,.22); }
.dk-shell-nav a.dk-nav-ogretmen:hover,
.dk-shell-nav a.dk-nav-ogretmen.active { color:#fff; background:#10b981; border-color:#10b981; box-shadow:0 6px 16px rgba(16,185,129,.32); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-araclar    { color:#b45309; background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.25); }
.dk-shell-nav a.dk-nav-araclar:hover,
.dk-shell-nav a.dk-nav-araclar.active { color:#fff; background:#f59e0b; border-color:#f59e0b; box-shadow:0 6px 16px rgba(245,158,11,.32); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-magaza     { color:#0891b2; background:rgba(6,182,212,.10); border-color:rgba(6,182,212,.22); }
.dk-shell-nav a.dk-nav-magaza:hover,
.dk-shell-nav a.dk-nav-magaza.active { color:#fff; background:#06b6d4; border-color:#06b6d4; box-shadow:0 6px 16px rgba(6,182,212,.32); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-platform   { color:#fff; background:#0071dc; border-color:#0071dc; box-shadow:0 6px 16px rgba(0,113,220,.28); }
.dk-shell-nav a.dk-nav-platform:hover,
.dk-shell-nav a.dk-nav-platform.active { background:#005bb3; border-color:#005bb3; box-shadow:0 10px 24px rgba(0,113,220,.38); transform:translateY(-1px); }

.dk-shell-nav a.dk-nav-home       { color:#475569; background:rgba(100,116,139,.08); border-color:rgba(100,116,139,.18); }
.dk-shell-nav a.dk-nav-home:hover,
.dk-shell-nav a.dk-nav-home.active { color:#fff; background:#334155; border-color:#334155; transform:translateY(-1px); }

/* Legacy CTA kept for backward compat (overridden by .dk-nav-platform above) */
.dk-shell-nav a.dk-shell-cta { font-weight: 700; }

/* Mobile toggler */
.dk-shell-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--dk-brand-navy);
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ========== SUB-NAV (optional, for platform-specific pages) ========== */
.dk-shell-subnav {
  position: fixed;
  top: 104px;
  left: 0;
  right: 0;
  height: 44px;
  background: #f8f9fc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 9996;
  display: flex;
  align-items: center;
  overflow-x: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.dk-shell-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  font-size: 13px;
}
.dk-shell-subnav a {
  padding: 8px 14px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s;
}
.dk-shell-subnav a:hover {
  background: rgba(0, 113, 220, 0.1);
  color: var(--dk-brand-blue);
}
.dk-shell-subnav a.active {
  background: var(--dk-brand-blue);
  color: #fff;
}
.dk-shell-subnav-crumb {
  color: #9ca3af;
  font-size: 12px;
  margin-right: 8px;
  white-space: nowrap;
}

body.dk-has-subnav {
  padding-top: 148px !important;
}

/* ========== FULL-APP PAGES (numap.html / galaksay.html) ==========
   Slim shell: keep both bars (dark navy topbar + white brand header) but
   compact the brand header so the embedded app's own header has more room.
   Fake browser chrome (inline-embed-toolbar) is removed in markup.
   Marketing sections below are hidden — only the iframe is shown. */

/* Slim navy topbar: keep visible (phone + contact + social) but a touch thinner */
body.dk-full-app .dk-shell-topbar {
  height: 32px;
  line-height: 32px;
  font-size: 11.5px;
}

/* Slim brand header: anchor right under the slimmed topbar, compact height */
body.dk-full-app .dk-shell-header {
  top: 32px;
  height: 52px;
  box-shadow: 0 2px 12px rgba(3, 31, 66, 0.08);
}
body.dk-full-app .dk-shell-header-inner {
  padding: 0 16px;
  gap: 14px;
}
body.dk-full-app .dk-shell-brand img { height: 32px; }
body.dk-full-app .dk-shell-nav { gap: 1px; }
body.dk-full-app .dk-shell-nav a {
  padding: 4px 10px;
  font-size: 11.5px;
  border-width: 1px;
}
@media (min-width: 1100px) {
  body.dk-full-app .dk-shell-nav a { padding: 5px 11px; font-size: 12px; }
}
/* Mobile dropdown anchor — header sits at 52px tall, opens just below it */
@media (max-width: 900px) {
  body.dk-full-app .dk-shell-nav.open { top: 52px; }
}

/* Outer chrome on full-app pages: 32 (topbar) + 52 (header) = 84px */
body.dk-full-app.dk-has-shell { padding-top: 84px !important; }

/* Hide marketing sections — only the iframe should show */
body.dk-full-app #features,
body.dk-full-app #tests,
body.dk-full-app .reveal.compact,
body.dk-full-app .footer,
body.dk-full-app section.reveal:not(#launch) {
  display: none !important;
}
body.dk-full-app #launch {
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}
body.dk-full-app #launch > .container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.dk-full-app #launch .section-header,
body.dk-full-app #launch > .container > p.text-center {
  display: none !important;
}

/* Hide the fake-browser-chrome toolbar — pure decoration that duplicates the
   real address bar and steals 44px of vertical space. The expand-to-modal
   action is redundant on full-app pages because the iframe already fills the
   viewport. */
body.dk-full-app .inline-embed-toolbar { display: none !important; }

/* Iframe fills the rest of the viewport below the slim 52px brand strip */
body.dk-full-app .inline-embed {
  margin: 0 !important;
  border: 0 !important;
  border-top: 3px solid var(--dk-brand-yellow, #ffc221) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  background: #0b1324;
}
body.dk-full-app .inline-embed iframe {
  flex: 1 1 auto;
  height: auto !important;
  width: 100%;
  min-height: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .dk-shell-topbar-left .dk-sep,
  .dk-shell-topbar-left .dk-desktop-only { display: none; }
  .dk-shell-nav { display: none; }
  .dk-shell-toggle { display: inline-flex; }
  .dk-shell-nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .dk-shell-nav.open a {
    width: 100%;
    padding: 12px 14px;
  }
  .dk-shell-brand img { height: 38px; }
}
@media (max-width: 560px) {
  .dk-shell-topbar { font-size: 11px; }
  .dk-shell-topbar-inner { padding: 0 12px; gap: 10px; }
  .dk-shell-header-inner { padding: 0 12px; }
  .dk-shell-subnav-inner { padding: 0 12px; }
}
