/* Modern Fashion Brand Header Styles */
:root {
  --header-accent: #d4af37; /* Gold accent color */
  --header-hover: #9c7c38; /* Darker gold for hover states */
  --header-text: var(--text-color, #1a1a1a);
  --header-divider: rgba(212, 175, 55, 0.3);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --header-bg-transparent: rgba(255, 255, 255, 0.15); /* Very transparent for hero area */
  --header-bg-translucent: rgba(255, 255, 255, 0.85); /* Semi-transparent for scrolling */
  --header-bg-solid: rgba(255, 255, 255, 0.98); /* Almost solid for deep scrolling */
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --animation-timing: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Dark mode header variables */
@media (prefers-color-scheme: dark) {
  :root {
    --header-bg-transparent: rgba(18, 18, 18, 0.15); /* Very transparent for dark mode */
    --header-bg-translucent: rgba(18, 18, 18, 0.75); /* Semi-transparent for dark mode scrolling */
    --header-bg-solid: rgba(18, 18, 18, 0.98); /* Almost solid for dark mode deep scrolling */
    --mobile-menu-bg: rgba(18, 18, 18, 0.98); /* Dark mobile menu */
    --header-divider: rgba(212, 175, 55, 0.2); /* Subtle dividers in dark mode */
  }
}

.fashion-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--animation-timing);
  background-color: var(--header-bg-transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fashion-header.scrolled-light {
  background-color: var(--header-bg-translucent);
  box-shadow: var(--header-shadow);
}

.fashion-header.scrolled-deep {
  background-color: var(--header-bg-solid);
  box-shadow: var(--header-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  transition: padding 0.3s ease;
}

.fashion-header.scrolled-light .header-container,
.fashion-header.scrolled-deep .header-container {
  padding: 0.7rem 5%;
}

/* Branding Section */
.header-brand {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease, height 0.3s ease;
}

.fashion-header.scrolled-deep .logo-image {
  height: 40px;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Brand Tagline with better visibility */
.brand-tagline {
  font-family: 'Playfair Display', serif;
  margin-left: 1.5rem;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--header-text);
  border-left: 1px solid var(--header-divider);
  padding-left: 1.5rem;
  display: block;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Menu Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: var(--header-text);
  padding: 0.8rem 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.5rem;
  left: 1rem;
  background-color: var(--header-accent);
  transition: width 0.3s var(--animation-timing);
}

.nav-link:hover:before, 
.nav-link.active:before {
  width: calc(100% - 2rem);
}

.nav-link:hover, 
.nav-link.active {
  color: var(--header-accent);
}

/* Header Action Buttons with improved visibility */
.header-actions {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.action-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1.2rem;
  padding: 0.5rem;
  color: var(--header-text);
  transition: color 0.3s ease, transform 0.2s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
  color: var(--header-accent);
  transform: translateY(-2px);
}

.action-button.featured-button {
  background-color: var(--header-accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-left: 1.5rem;
  text-shadow: none;
}

.action-button.featured-button:hover {
  background-color: var(--header-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--header-text);
  transition: background-color 0.3s var(--animation-timing);
}

.menu-icon:before, 
.menu-icon:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--header-text);
  transition: transform 0.3s var(--animation-timing);
}

.menu-icon:before {
  top: -8px;
}

.menu-icon:after {
  top: 8px;
}

/* Mobile Menu Open State */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon:before {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon:after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scrolled Header State */
.fashion-header.scrolled {
  background-color: var(--header-bg, rgba(255, 255, 255, 0.98));
  box-shadow: var(--header-shadow);
  padding: 0.5rem 0;
}

.fashion-header.scrolled .logo-image {
  height: 40px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .brand-tagline {
    display: none;
  }
  
  .header-container {
    padding: 0.8rem 3%;
  }
}

@media (max-width: 992px) {
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--mobile-menu-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    transition: right 0.4s var(--animation-timing);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 99;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .header-nav.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--header-divider);
    font-size: 1rem;
    text-shadow: none;
  }
  
  .nav-link:before {
    bottom: 1rem;
  }
  
  .header-actions {
    margin-top: 2rem;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-left: 0;
  }
  
  .action-button {
    margin: 0.8rem 0;
    text-shadow: none;
  }
  
  .action-button.featured-button {
    margin-left: 0;
    width: 80%;
    justify-content: center;
  }
  
  .menu-toggle {
    display: block;
    z-index: 100;
  }
  
  /* Body Scrolling Prevention */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Dark overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  
  .menu-overlay.active {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0.8rem 1rem;
  }
  
  .logo-image {
    height: 40px;
  }
  
  .header-nav {
    width: 100%;
    max-width: 100%;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .menu-icon,
  .menu-icon:before,
  .menu-icon:after {
    background-color: var(--header-text);
  }
  
  .fashion-header {
    --header-divider: rgba(212, 175, 55, 0.2);
  }
  
  .fashion-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}