/*
 * Module      : Header (styles)
 * Description : Styles for the main interface and floating header: layout
 *               zones, logo and navigation, the mode toggle, the compact
 *               filter, language, and currency controls, and the mode dock.
 */

.main-interface { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 5; background: radial-gradient(ellipse at 30% 20%, #4a1424 0%, #2a0a14 35%, #140509 70%, #050203 100%); }

.header.header--floating {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: auto;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px;
  gap: 18px;
  z-index: 100;
  pointer-events: none;
}
.header--floating > .header-left,
.header--floating > .header-right {
  display: flex; align-items: center; gap: 14px;
  flex: 1;
  pointer-events: auto;
}
.header--floating > .header-left  { justify-content: flex-start; }
.header--floating > .header-right { justify-content: flex-end; align-self: flex-start; margin-top: 9px; position: relative; }
.header--floating > .header-center {
  flex: 0 0 auto;
  display: flex; align-items: center;
  pointer-events: auto;
}

.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-text {
  font-family: 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  color: var(--text-bright);
  letter-spacing: 0.01em;
  text-transform: lowercase !important;
}
.logo-img {
  height: 75px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.logo-img:hover { animation: logo-hue 1s linear infinite; }
@keyframes logo-hue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

.nav { display: flex; gap: 2px; margin-left: 16px; }
.nav-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s;
}
.nav-btn:hover { background: rgba(230, 181, 168,0.08); color: var(--text-bright); }
.nav-btn.active { background: rgba(230, 181, 168,0.15); border-color: var(--panel-border); color: var(--text-bright); }

.main-content { flex: 1; display: flex; position: relative; overflow: hidden; padding-top: 92px; }

/* Shop page only: the grid scrolls to the very top of the screen instead of
   clipping at a hard line; a top vignette (height/alpha are the two knobs)
   fades items out under the floating logo. Initial rest position is kept
   identical by the compensating padding on .shop-col (shop.css). */
.main-interface[data-page="shop"] .main-content { padding-top: 0; }
.main-interface[data-page="shop"] .main-content::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12%;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hdr-ctrl {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 6px;
  background: transparent; border: none;
  color: #fff;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer; position: relative;
  opacity: 0.82; transition: opacity 0.15s, color 0.15s;
}
.hdr-ctrl:hover { opacity: 1; }
.hdr-ctrl.active { color: var(--accent-pink); opacity: 1; }
.hdr-icon { padding: 0 7px; gap: 4px; }
.hdr-icon svg { display: block; }
.hdr-select { padding: 0; }
.hdr-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: none; outline: none;
  color: #fff; font: inherit; letter-spacing: inherit; font-weight: 600;
  cursor: pointer; padding: 0 22px 0 6px;
}
.hdr-select select option { background: #1a0a10; color: #fff; }
.hdr-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.hdr-chevron svg { display: block; width: 100%; height: 100%; }
.hdr-select .hdr-chevron { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

.hdr-controls { display: flex; align-items: center; gap: 14px; }
.hdr-burger { display: none; }

.hdr-ctrl.has-filters {
  color: var(--accent-pink);
  opacity: 1;
  border-radius: var(--radius);
  box-shadow: 0 0 8px var(--accent-glow), inset 0 0 0 1px var(--accent-soft);
}
.hdr-ctrl.has-filters svg { filter: drop-shadow(0 0 3px var(--accent-glow)); }

.main-interface[data-mode="small"] .hdr-burger { display: inline-flex; }
.main-interface[data-mode="small"] .hdr-controls {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 172px;
  padding: 8px;
  background: var(--chrome-panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}
.main-interface[data-mode="small"] .header-right[data-burger="open"] .hdr-controls {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.main-interface[data-mode="small"] .hdr-controls .hdr-ctrl {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: var(--radius);
  opacity: 1;
}
.main-interface[data-mode="small"] .hdr-controls .hdr-ctrl:hover { background: rgba(230, 181, 168, 0.10); }
.main-interface[data-mode="small"] .hdr-controls .hdr-select { width: 100%; }
.main-interface[data-mode="small"] .hdr-controls .hdr-select select { width: 100%; padding-left: 10px; }
.main-interface[data-mode="small"] .hdr-controls .hdr-select .hdr-chevron { right: 8px; }
