/* ============================================================
   shell.css — Muhasebeizleme ORTAK header + footer GÖRÜNÜMÜ (TEK KAYNAK)
   index.html + /cozumler/* AYNI dosyadan beslenir → menü/footer/logo tek yerden yönetilir.
   Yalnız .topbar / .mobile-nav / .footer-banner / .whatsapp-float ve header dropdown'ını
   hedefler; sayfa gövdesine (body / :root token / içerik .btn) KARIŞMAZ → index.html bozulmaz.
   Dropdown saf CSS :hover ile açılır (JS yok) — index.html'deki eski fixed+click yerine geçer.
   Renk tokenları (--accent, --line, --panel2 ...) sayfanın kendisinden gelir (ikisi de tanımlar).
   ============================================================ */

/* ---- Topbar ---- */
.topbar{ position:sticky; top:0; z-index:100; display:flex; align-items:center; gap:18px;
  padding:14px 24px; background:rgba(7,13,26,.72); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.topbar .brand{ display:flex; align-items:center; gap:10px; font-weight:800; flex:0 0 auto; white-space:nowrap; color:var(--text); text-decoration:none; }
.topbar .brand-mi{ width:48px; height:48px; object-fit:contain; flex:0 0 auto; }   /* logo TEK KAYNAK burada — iki satırlık marka yazısıyla dengeli */
.topbar .brand-text{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
/* Marka yazısı boyutları AÇIKÇA sabit → sayfanın body font-size'ından (index=14px / landing=16px) etkilenmesin */
.topbar .brand-name{ font-size:14px; font-weight:800; line-height:1.2; }
.topbar .brand small{ font-size:11.5px; font-weight:600; color:var(--muted); line-height:1.2; }
/* overflow:visible ZORUNLU → index.html'in inline .nav-center{overflow-x:auto} kuralını EZER; yoksa
   aşağı açılan dropdown menüsü kutu içinde kırpılır ve scroll çıkar. Sığmazsa alt satıra sarar. */
.topbar .nav-center{ flex:1; display:flex; align-items:center; justify-content:center; gap:4px 2px; min-width:0; flex-wrap:wrap; overflow:visible; }
.topbar .nav-center a, .topbar .nav-center button, .topbar .nav-center .ddbtn{
  color:var(--text); text-decoration:none; background:none; border:none; font:inherit; cursor:pointer;
  padding:8px 12px; border-radius:10px; white-space:nowrap; opacity:.92; font-weight:600; font-size:14px; }
.topbar .nav-center a:hover, .topbar .nav-center button:hover, .topbar .nav-center .ddbtn:hover{ background:rgba(148,163,184,.10); opacity:1; }
.topbar .auth{ display:flex; align-items:center; gap:10px; flex:0 0 auto; white-space:nowrap; }

/* ---- Dropdown: saf CSS hover (JS yok). index.html'in fixed+.show kuralını ezer. ---- */
.topbar .dropdown{ position:relative; display:inline-flex; align-items:center; }
.topbar .dropdown-menu{ position:absolute; top:100%; left:0; min-width:240px; max-width:min(340px,92vw);
  background:var(--panel2); border:1px solid var(--line2); border-radius:14px; box-shadow:var(--shadow);
  padding:8px; display:none; z-index:160; max-height:min(72vh,560px); overflow-y:auto; }
.topbar .dropdown:hover > .dropdown-menu, .topbar .dropdown:focus-within > .dropdown-menu{ display:block; }
.topbar .dropdown-item{ width:100%; text-align:left; background:transparent; border:0; color:var(--text); text-decoration:none;
  padding:10px; border-radius:10px; cursor:pointer; font:inherit; font-size:14px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.topbar .dropdown-item:hover{ background:rgba(148,163,184,.10); }
.topbar .dropdown-item .sub{ color:var(--muted); font-size:12px; margin-left:auto; }

/* ---- Hamburger + mobil menü ---- */
.hamburger{ display:none; background:none; border:1px solid var(--line2); color:var(--text); width:42px; height:42px;
  border-radius:12px; cursor:pointer; font-size:18px; align-items:center; justify-content:center; flex:0 0 auto; }
.mobile-nav{ display:none; position:fixed; top:64px; left:0; right:0; z-index:120; flex-direction:column; gap:2px; padding:12px;
  background:var(--panel2); border-bottom:1px solid var(--line2); box-shadow:0 20px 40px rgba(0,0,0,.4); max-height:calc(100vh - 76px); overflow-y:auto; }
.mobile-nav.open{ display:flex; }
.mobile-nav-item{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:12px; background:none; border:none;
  color:var(--text); font:inherit; font-size:15px; text-align:left; text-decoration:none; cursor:pointer; }
.mobile-nav-item:hover{ background:rgba(148,163,184,.10); }
.mobile-nav-item.accent{ background:var(--accent); color:#04140a; font-weight:900; margin-top:6px; }
.mnav-group{ display:flex; flex-direction:column; }
.mnav-toggle{ width:100%; }
.mnav-caret{ margin-left:auto; font-size:12px; opacity:.6; transition:transform .2s; }
.mnav-toggle[aria-expanded="true"] .mnav-caret{ transform:rotate(180deg); }
.mnav-sub{ display:none; flex-direction:column; gap:2px; margin:2px 0 4px 10px; padding-left:10px; border-left:2px solid var(--line2); }
.mnav-sub.open{ display:flex; }
.mnav-child{ font-size:14px; padding:11px 14px; opacity:.92; }

@media(max-width:860px){
  .topbar .brand small{ display:none; }
  .topbar .nav-center{ display:none; }
  .topbar .auth .btn.reg{ display:none; }
  .topbar .hamburger{ display:inline-flex; order:1; }
  .topbar .auth{ margin-left:auto; }
  .topbar .auth .btn.acc{ order:2; padding:10px 13px; background:transparent; border:1px solid var(--line2); color:var(--text); }
  .topbar .auth .btn.acc .btn-label{ display:none; }
}
@media(max-width:560px){ .topbar .brand-text{ display:none; } }

/* ---- Footer banner ---- */
.footer-banner{ max-width:var(--maxw,1120px); margin:30px auto 0; padding:16px 24px 40px; }
.footer-banner .fb-inner{ border:1px solid var(--line); background:var(--panel); border-radius:18px; padding:26px; box-shadow:var(--shadow);
  display:grid; grid-template-columns:1.3fr 1fr 1fr 1.3fr 1fr; gap:20px; }
@media(max-width:1000px){ .footer-banner .fb-inner{ grid-template-columns:1fr 1fr; } }
@media(max-width:560px){ .footer-banner .fb-inner{ grid-template-columns:1fr; } }
.footer-banner .fb-title{ font-weight:900; margin-bottom:10px; font-size:15px; }
.footer-banner .fb-text{ color:var(--muted); font-size:13px; line-height:1.5; margin-bottom:4px; }
.footer-banner .fb-link{ display:block; color:var(--text); text-decoration:none; padding:6px 0; opacity:.95; font-size:14px; }
.footer-banner .fb-link:hover{ color:var(--accent-2); text-decoration:underline; }
.footer-banner .fb-copy{ max-width:var(--maxw,1120px); margin:0 auto; padding:14px 0 0; color:var(--muted); font-size:12px; }
.footer-banner .social{ display:flex; flex-wrap:wrap; gap:8px; }
.footer-banner .soc{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:12px; border:1px solid var(--line2);
  background:rgba(148,163,184,.04); color:var(--text); text-decoration:none; font-size:13px; }
.footer-banner .soc:hover{ border-color:rgba(148,163,184,.4); }
.footer-banner .soc svg{ width:14px; height:14px; fill:currentColor; opacity:.9; }

/* ---- WhatsApp float ---- */
.whatsapp-float{ position:fixed; bottom:24px; left:24px; z-index:90; }
.whatsapp-float a{ display:flex; align-items:center; justify-content:center; width:58px; height:58px; background:#25D366; border-radius:50%;
  box-shadow:0 6px 20px rgba(0,0,0,.35); text-decoration:none; transition:transform .2s ease; }
.whatsapp-float a:hover{ transform:scale(1.08); }
.whatsapp-float svg{ width:30px; height:30px; fill:#fff; }
@media(max-width:860px){ .whatsapp-float{ bottom:16px; left:16px; } .whatsapp-float a{ width:44px; height:44px; } .whatsapp-float svg{ width:22px; height:22px; } }
