/* G-FLIXS — header & navigation only */
.site-header {
  color: var(--header-text);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--header-bg); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; gap: 28px; }
.header-logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 8px; font: 700 13.5px var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--header-text); transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--header-text); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.caret { font-size: 10px; opacity: .7; }
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: 0; width: 420px; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel a { padding: 7px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text); }
.dropdown-panel a:hover { background: var(--surface-2); color: var(--text); }
.header-search { margin-left: auto; display: flex; align-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px 4px 2px 16px; width: 280px; transition: border-color .2s, width .3s; }
.header-search:focus-within { border-color: var(--accent); width: 320px; }
.header-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 8px 0; font-size: 14px; }
.header-search button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; cursor: pointer; color: var(--header-text); }
.header-actions { display: none; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }

@media (max-width: 1080px) {
  .header-inner { height: 62px; gap: 12px; }
  .header-logo img { height: 34px; }
  .header-actions { display: flex; }
  .main-nav {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); border-bottom: 1px solid var(--line); padding: 8px 14px 16px;
    max-height: calc(100vh - 62px); overflow-y: auto; display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-link.is-active { box-shadow: none; color: var(--accent-2); }
  .dropdown-panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: repeat(2, 1fr); box-shadow: none; margin: 6px 0; }
  .nav-dropdown.is-open .dropdown-panel { display: grid; }
  .header-search { position: absolute; top: 62px; left: 0; right: 0; width: auto !important; margin: 0; border-radius: 0; border-width: 0 0 1px; background: var(--surface); padding: 10px 14px; display: none; }
  .header-search.is-open { display: flex; }
}
