/* ============================================
   DİSKALKULİ APP SHELL — unified header
   Matches main diskalkuli.com branding
   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-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 a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--dk-brand-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.dk-shell-nav a:hover,
.dk-shell-nav a.active {
  color: var(--dk-brand-blue);
  background: rgba(0, 113, 220, 0.08);
}
.dk-shell-nav a.dk-shell-cta {
  background: var(--dk-brand-blue);
  color: #ffffff;
  padding: 9px 18px;
  font-weight: 700;
}
.dk-shell-nav a.dk-shell-cta:hover {
  background: var(--dk-brand-blue-d);
}

/* 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;
}

/* ========== 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; }
}
