/* /assets/css/header.css */
/* Doberman Deals header: FIXED pinned header + mobile overlay panel with working Close */

:root{
  --dd-black:#000000;
  --dd-red:#E63946;
  --dd-gray:#6C757D;
  --dd-white:#FFFFFF;
  --dd-gold:#FFC107;
  --dd-blue:#1D3557;

  --dd-ink: rgba(255,255,255,0.92);
  --dd-muted: rgba(255,255,255,0.72);
  --dd-line: rgba(255,255,255,0.14);
  --dd-card2: rgba(15,15,16,0.92);

  --dd-shadow: 0 18px 60px rgba(0,0,0,0.55);
  --dd-shadow2: 0 12px 30px rgba(0,0,0,0.45);
  --dd-r: 20px;

  /* JS sets this to header height */
  --dd-header-h: 0px;
}

.ddHeaderSpacer{
  height: var(--dd-header-h);
}

/* Fixed header (MUST be clickable) */
header.ddHeader[data-dd-header]{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6000;

  padding: 12px 14px 0;
  pointer-events: auto;
}

.ddHeaderInner{
  max-width: 1180px;
  margin: 0 auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  border: 1px solid var(--dd-line);
  border-radius: calc(var(--dd-r) + 8px);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--dd-shadow2);

  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ddBrand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--dd-ink);
  min-width: 0;
}

.ddBrandLogo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display:block;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  padding: 6px;
  box-sizing: border-box;
}

.ddBrandText{
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.ddNav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ddNavLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration:none;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ddNavLink:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.ddNavLinkStrong{
  border-color: rgba(255,193,7,0.30);
  background: rgba(255,193,7,0.10);
}

.ddNavLinkGhost{
  background: rgba(0,0,0,0.20);
}

/* Hamburger */
.ddBurger{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--dd-shadow2);

  display:none;
  align-items:center;
  justify-content:center;
  gap: 6px;
  flex-direction: column;
}

.ddBurgerBar{
  display:block;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  opacity: 0.95;
}

/* Mobile overlay */
header.ddHeader[data-dd-header] .ddMobile{
  position: fixed;
  inset: 0;
  z-index: 6500;

  pointer-events: auto;

  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* room under fixed header */
  padding: calc(var(--dd-header-h) + 14px) 14px 14px;
}

header.ddHeader[data-dd-header] .ddMobile[hidden]{
  display:none !important;
}

/* Mobile panel */
header.ddHeader[data-dd-header] .ddMobileLinks{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--dd-card2);
  box-shadow: var(--dd-shadow);

  padding: 12px;
  display:grid;
  gap: 10px;

  /* Force content-sized panel (prevents full height stretch) */
  height: auto !important;
  align-self: start !important;

  max-height: calc(100vh - var(--dd-header-h) - 28px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Top row inside panel */
.ddMobileTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 8px 6px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 6px;
}

.ddMobileTitle{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.90);
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.ddMobileTitle img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  padding: 5px;
  box-sizing: border-box;
}

.ddMobileClose{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  font-size: 18px;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  pointer-events: auto;
}

.ddMobileLink{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.90);
  text-decoration:none;
  font-weight: 900;
  font-size: 18px;
}

.ddMobileLink:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}

body.ddMenuOpen{ overflow: hidden; }

@media (max-width: 980px){
  .ddNav{ display:none; }
  .ddBurger{ display:flex; }
}

@media (max-width: 420px){
  .ddBrandText{ max-width: 150px; }
}
