/* /tema/assets/css/header.css (clean + admin renkleri) */

:root{
  --ra-text:#0f172a;
  --ra-muted:#64748b;
  --ra-border:#e2e8f0;
  --ra-bg:#ffffff;

  /* admin renkleri */
  --ra-primary: var(--renk-1, #2563eb);
  --ra-primary-2: var(--renk-2, #0ea5e9);

  --ra-radius: 14px;
  --ra-shadow: 0 10px 30px rgba(15,23,42,.08);
}

/* genel */
.site-header{ position: relative; z-index: 999; }
.site-header a{ text-decoration:none; }
.site-header i{ line-height:1; }

/* TOPBAR */
.site-header .ra-topbar{
  background:#f8fafc;
  border-bottom:1px solid var(--ra-border);
  font-size:14px;
}
.site-header .ra-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:38px;
}
.site-header .ra-topbar-left,
.site-header .ra-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.site-header .ra-toplink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--ra-muted);
  padding:6px 0;
}
.site-header .ra-toplink:hover{ color:var(--ra-text); }

.site-header .ra-sep{
  width:1px; height:16px;
  background:var(--ra-border);
  display:inline-block;
  margin:0 2px;
}

.site-header .ra-ico-link{
  width:30px; height:30px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--ra-muted);
  border:1px solid transparent;
}
.site-header .ra-ico-link:hover{
  color:var(--ra-text);
  border-color:var(--ra-border);
  background:#fff;
}

.site-header .ra-topmenu{ display:inline-flex; align-items:center; gap:10px; }
.site-header .ra-topmenu .ra-toplink{ padding:6px 0; }

/* MAIN NAV */
.site-header .header-main{
  background:var(--ra-bg);
  border-bottom:1px solid var(--ra-border);
  position:sticky;
  top:0;
  z-index:9999;
}
.site-header .header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:74px;
}

.site-header .brand{ display:inline-flex; align-items:center; }
.site-header .brand img{
  height:80px;
  width:auto;
  display:block;
}

/* DESKTOP MENU */
.site-header .desktop-menu{
  flex:1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
}
.site-header .ra-nav{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin:0;
  padding:0;
}
.site-header .ra-nav-item{ position:relative; }

.site-header .ra-nav-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 5px;
  border-radius:12px;
  color:var(--ra-text);
  font-weight:600;
  transition:background .15s ease, color .15s ease;
}
/* HEADER SABİT (SCROLL'DA KALSIN) */
.site-header{
  position: sticky;      /* istersen fixed yaparız */
  top: 0;
  z-index: 9999;
  background: #fff;      /* transparan olmasın */
}

/* sabit header içerik üstüne binmesin (yükseklik neyse onu yaz) */
body{ padding-top: 86px; }  /* header yüksekliğine göre 76/80/90 ayarla */

.site-header .ra-nav-link.is-active{
  background: color-mix(in srgb, var(--ra-primary) 12%, #ffffff);
  color:var(--ra-primary);
}

.site-header .ra-caret{ font-size:12px; opacity:.75; }

/* =========================
   DROPDOWN (sadece header içinde)
========================= */

/* hover köprüsü */
.site-header .ra-nav-item.has-drop::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;
}

/* dropdown kutusu */
.site-header .ra-drop{
  list-style:none;
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  min-width:320px;
  margin:0;
  padding:18px;
  border:1px solid rgba(15,23,42,.10);
  background:#f8fafc;
  border-radius:20px;
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  display:none;
  z-index:10000;
}

.site-header .ra-nav-item.has-drop:hover > .ra-drop,
.site-header .ra-nav-item.has-drop:focus-within > .ra-drop{
  display:block;
}

.site-header .ra-drop li{ list-style:none; margin:0; padding:0; }
.site-header .ra-drop li + li{ margin-top:10px; }

.site-header .ra-drop-link{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  min-height:46px;
  padding:12px 16px 12px 44px;
  border-radius:12px;
  color:var(--ra-text);
  font-weight:600;
  font-size:14px;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.site-header .ra-drop-link::before{
  content:"";
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  width:8px;height:8px;
  border-radius:999px;
  background: color-mix(in srgb, var(--ra-primary) 25%, transparent);
}
.site-header .ra-drop-link:hover{
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--ra-primary) 10%, #ffffff),
    color-mix(in srgb, var(--ra-primary-2) 10%, #ffffff)
  );
  border-color: color-mix(in srgb, var(--ra-primary) 22%, rgba(15,23,42,.06));
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  transform:translateX(4px);
}
.site-header .ra-drop-link:hover::before{ background:var(--ra-primary); }

.site-header .ra-drop-link.is-active{
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--ra-primary) 16%, #ffffff),
    color-mix(in srgb, var(--ra-primary-2) 16%, #ffffff)
  );
  border-color: color-mix(in srgb, var(--ra-primary) 28%, rgba(15,23,42,.06));
  color:var(--ra-primary);
}
.site-header .ra-drop-link.is-active::before{ background:var(--ra-primary); }

/* CTA */
.site-header .header-actions{ display:flex; align-items:center; gap:10px; }
.site-header .ra-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--ra-primary), var(--ra-primary-2));
  color:#fff;
  font-weight:700;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 8px 24px rgba(37,99,235,.18);
}
.site-header .ra-cta:hover{ filter:brightness(.98); color:#fff; }

/* MOBILE TOGGLE */
.site-header .mobile-toggle{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--ra-border);
  background:#fff;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.site-header .mobile-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--ra-text);
  border-radius:2px;
}

/* MOBILE DRAWER */
#mobileMenu{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(86vw, 360px);
  background:#fff;
  z-index:100000;
  box-shadow:-12px 0 40px rgba(0,0,0,.15);

  transform:translateX(100%);
  transition:transform .25s ease;

  display:block !important;
}
#mobileMenu.is-open{ transform:translateX(0); }

#mobileBackdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:99999;
}

#mobileMenu .mobile-inner{
  height:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:16px;
}
#mobileMenu .mobile-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:12px;
  border-bottom:1px solid #eee;
  margin-bottom:12px;
}
#mobileMenu .mobile-title{ font-weight:800; color:var(--ra-text); }
#mobileMenu .mobile-close{
  width:40px;
  height:40px;
  border:1px solid rgba(0,0,0,.08);
  background:#f4f4f4;
  border-radius:12px;
  font-size:22px;
  line-height:1;
}

.site-header .ra-m-link,
.site-header .ra-m-parent{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--ra-border);
  background:#fff;
  color:var(--ra-text);
  font-weight:700;
}
.site-header .ra-m-link:hover,
.site-header .ra-m-parent:hover{ background:#f8fafc; }

.site-header .ra-m-link.is-active,
.site-header .ra-m-parent.is-active{
  border-color: color-mix(in srgb, var(--ra-primary) 28%, var(--ra-border));
  background: color-mix(in srgb, var(--ra-primary) 10%, #ffffff);
  color:var(--ra-primary);
}

.site-header .ra-m-sub{
  padding-left:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#mobileMenu .ra-m-sub[hidden]{ display:none !important; }

.site-header .ra-m-link.sub{
  font-weight:700;
  border-style:dashed;
}

.site-header .ra-cta-mobile{ margin-top:8px; width:100%; }

.site-header .ra-m-meta{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--ra-border);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--ra-muted);
  font-weight:700;
}
.site-header .ra-m-meta a{ color:var(--ra-muted); }
.site-header .ra-m-meta a:hover{ color:var(--ra-text); }
.site-header .ra-dot{
  width:6px; height:6px;
  border-radius:50%;
  background:var(--ra-border);
  display:inline-block;
  margin-top:8px;
}

/* Menü açıkken scroll kilidi */
body.ra-lock{
  overflow:hidden;
  height:100%;
  touch-action:none;
}

/* small */
@media (max-width:575.98px){
  .site-header .ra-topbar-inner{ gap:10px; }
  .site-header .ra-topbar-left span,
  .site-header .ra-topbar-right span{
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .site-header .brand img{ height:80px; }
}

/* mobile clean */
@media (max-width:991px){
  .site-header .ra-topbar{ display:none !important; }
  .site-header .header-flex{ min-height:64px; gap:10px; }
  .site-header .desktop-menu{ display:none !important; }
  .site-header .header-actions{ display:none !important; }
  .site-header .brand img{ height:82px; }
  .site-header .mobile-toggle{
    border-radius:12px;
    border:1px solid rgba(0,0,0,.08);
    background:#f4f4f4;
  }
}