/**
 * Header Component Styles
 * Implements Design System sticky header with smooth transitions
 * Height: 100px → 72px (sticky)
 */

/* ============================================================================
   HEADER STRUCTURE
   ========================================================================== */

body {
  /* Add padding for fixed header */
  padding-top: var(--header-height-default);
  transition: padding-top 0.3s ease;
}

/* Outer container (maintains space in document flow) */
.header-container {
  height: var(--header-height-default);
  transition: height 0.3s ease;
}

/* Inner fixed header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--header-z-index);
  height: var(--header-height-default);
  display: flex;
  align-items: center;
  background-color: var(--base);
  box-shadow: none;
  transition: all 0.3s ease-in-out;
  border-bottom: 1px solid transparent;
}

/* Sticky state (when scrolled down) */
.sticky-header.is-sticky {
  height: var(--header-height-sticky);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--shadow-dark);
}

/* Logo scaling in sticky mode */
.sticky-header .logo-full {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

.sticky-header.is-sticky .logo-full {
  height: 32px;
}

/* Search input container responsive sizing */
.search-input-container {
  width: 100%;
  max-width: 600px;
  transition: max-width 0.3s ease;
}

.sticky-header.is-sticky .search-input-container {
  max-width: 400px;
}

/* Search dropdown styling */
.search-dropdown {
  min-width: 120px;
  box-shadow: var(--shadow-neumorphic);
  background: var(--base);
  border-radius: var(--radius-md);
}

/* ============================================================================
   RESPONSIVE BEHAVIOR
   ========================================================================== */

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-sticky);
  }

  .header-container,
  .sticky-header {
    height: var(--header-height-sticky);
  }

  .search-input-container {
    max-width: 100%;
  }
}

/* ============================================================================
   THEME VARIANTS
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  .sticky-header.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-bottom-color: var(--shadow-light);
  }
}

.theme-neon .sticky-header {
  background-color: var(--base);
  border-bottom: 1px solid var(--neon-pink);
}

.theme-neon .sticky-header.is-sticky {
  box-shadow: 0 0 20px var(--accent), 0 4px 12px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--accent);
}

/* ============================================================================
   MOBILE MENU / BURGER
   ========================================================================== */

/* Mobile menu drawer (hidden by default) */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: calc(var(--header-z-index) + 10);
  background: var(--base);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Filter drawer (mobile filters) */
.filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  transition: transform 0.3s ease-out;
  transform: translateX(100%);
  background: var(--base);
}

.filter-drawer.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .filter-drawer {
    display: none;
  }
}

.filter-drawer-content {
  height: 100%;
  overflow-y: auto;
  background: var(--base);
  padding: 1.5rem;
}
