/* ========= HEADER STYLES ========= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: 
    url("data:image/svg+xml,%3Csvg width='100' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white'%3E%3Ccircle cx='5' cy='10' r='1' opacity='0.8'/%3E%3Ccircle cx='20' cy='30' r='0.5' opacity='0.6'/%3E%3Ccircle cx='35' cy='15' r='1' opacity='0.7'/%3E%3Ccircle cx='50' cy='45' r='0.5' opacity='0.8'/%3E%3Ccircle cx='65' cy='25' r='1' opacity='0.6'/%3E%3Ccircle cx='80' cy='50' r='0.5' opacity='0.7'/%3E%3Ccircle cx='90' cy='8' r='1' opacity='0.8'/%3E%3Ccircle cx='15' cy='55' r='0.5' opacity='0.6'/%3E%3Ccircle cx='40' cy='35' r='1' opacity='0.7'/%3E%3Ccircle cx='70' cy='40' r='0.5' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to bottom, #444746 0%, #191e21 100%);
  background-repeat: repeat-x, no-repeat;
  background-size: 100px 60px, 100% 100%;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 220px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Menu Toggle Button */
.menu-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 2px solid rgba(212,165,116,.25);
  border-radius: var(--radius);
  transition: all .15s ease;
  gap: 3px;
  padding: 8px;
}

.menu-toggle:hover {
  background: rgba(212,165,116,.08);
  border-color: rgba(212,165,116,.35);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--gold-dark);
  transition: all .2s ease;
  border-radius: 1px;
}

.menu-toggle span:before,
.menu-toggle span:after {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--gold-dark);
  transition: all .2s ease;
  border-radius: 1px;
}

.menu-toggle span:before {
  margin-bottom: 3px;
}

.menu-toggle span:after {
  margin-top: 3px;
}

.menu-toggle.active {
  background: rgba(212,165,116,.12);
  border-color: var(--gold-dark);
}

.menu-toggle.active span {
  background: var(--gold);
}

.menu-toggle.active span:before,
.menu-toggle.active span:after {
  background: var(--gold);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--txt);
  text-transform: uppercase;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Search Bar */
.header-func__search-container {
  flex: 1;
  max-width: 450px;
  background: linear-gradient(180deg, #D4A574 0%, #8B6239 100%);
  padding: 3px;
  border-radius: 35px;
}

.header-func__search-wrapper {
  position: relative;
  background: linear-gradient(to bottom, #191e21 0%, #444746 100%);
  border-radius: 32px;
  overflow: hidden;
}

.header-func__search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.header-func__search-input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0 24px 0 55px;
  font-size: 15px;
  color: #FFF;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Cinzel", serif;
}

.header-func__search-input::placeholder {
  color: #AAB6C6;
  font-size: 14px;
  opacity: 0.95;
}

/* Header Buttons */
.header-func__buttons-container {
  display: flex;
  gap: 10px;
}

.header-func__btn-wrapper {
  position: relative;
  background: linear-gradient(180deg, #D4A574 0%, #8B6239 100%);
  padding: 5px;
  border-radius: 35px;
  transition: all 0.3s ease;
}

.header-func__btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 3px solid transparent;
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #244a69 0%, #19364f 100%) padding-box,
    linear-gradient(180deg, #f6d49d 0%, #8c6b3f 45%, #caa76c 60%, #f8e6b8 100%) border-box;
  box-shadow: 
    0 10px 24px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.12) inset,
    0 -1px 0 rgba(0,0,0,.45) inset;
}

.header-func__btn-inner span {
  color: #F3F6FB;
  font: 700 15px/1 "Cinzel", serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-shadow: 
    0 1px 0 rgba(0,0,0,.55),
    0 0 18px rgba(255,240,198,.12);
}

.header-func__btn-inner::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 22px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 10px 18px rgba(255,255,255,.10),
    inset 0 -10px 18px rgba(0,0,0,.32);
}

.header-func__btn-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,.4);
}

/* Mobile Header Fixes */
@media (max-width: 768px) {
  .header {
    padding: 0 15px;
  }
  
  .header-left {
    width: auto;
    flex: 1;
  }
  
  .header-right {
    gap: 10px;
  }
  
  /* Hide search on mobile */
  .header-func__search-container {
    display: none !important;
  }
  
  /* Hide login button on mobile, keep register */
  .header-func__btn-wrapper:first-child {
    display: none !important;
  }
  
  /* Make register button smaller on mobile */
  .header-func__btn-inner {
    padding: 10px 20px;
  }
  
  .header-func__btn-inner span {
    font-size: 12px;
  }
  
  .logo img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 10px;
  }
  
  .header-func__btn-inner {
    padding: 8px 16px;
  }
  
  .header-func__btn-inner span {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
}

.language-switcher .lang-dropdown{
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.language-switcher .lang-option{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; text-decoration:none;
}
