/* Header styles */
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #560fdd 0%, #4815b6 100%);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.l-header.scrolled {
  background: rgba(86, 15, 221, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation container */
.nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  z-index: 9999;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .nav {
    height: var(--header-height);
    padding: 0 2rem;
  }
}

@media screen and (max-width: 767px) {
  .nav {
    height: var(--header-height);
    padding: 0 1rem;
  }
}

/* Logo styles */
.nav-logo {
  color: var(--white-color);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, var(--white-color) 0%, var(--white-color) 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo:hover {
  background: linear-gradient(90deg, var(--white-color) 0%, var(--primary-color) 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  height: 100%;
}

.nav-item {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Navigation links - Simplified hover with underline */
.nav-link {
  position: relative;
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  height: 100%;
  padding: 0 0.5rem;
}

.nav-link:hover {
  color: var(--white-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  color: #fff;
}

.nav-link.active .nav-icon {
  color: #fff;
}

.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Header WhatsApp icon - Different from footer-social to prevent golden color */
.header-whatsapp-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.header-whatsapp-icon:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 1);
}

.header-whatsapp-icon svg {
  width: 24px;
  height: 24px;
}

/* Unified circular container styles for all header elements */
.nav-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Icon sizes */
.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

/* Right side container */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* Social links container */
.social-links-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  height: 100%;
}

/* Navigation toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-icon {
  color: var(--white-color);
  transition: all 0.3s ease;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
    width: 100%;
    height: auto;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background: rgba(86, 15, 221, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1rem;
    overflow-y: auto;
  }

  .nav-menu.show {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }

  .nav-item {
    width: 100%;
    height: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
  }

  .nav-link .nav-icon {
    width: 28px;
    height: 28px;
    background: rgba(86, 15, 221, 0.2);
    padding: 6px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-link:hover .nav-icon {
    background: rgba(86, 15, 221, 0.3);
    color: white;
  }

  .nav-link.active {
    background: rgba(86, 15, 221, 0.15);
    border: 1px solid rgba(86, 15, 221, 0.3);
    box-shadow: 0 4px 15px rgba(86, 15, 221, 0.1);
    text-decoration: none;
  }

  .nav-link.active .nav-icon {
    background: rgba(86, 15, 221, 0.3);
    color: white;
  }

  .nav-link.active span {
    color: white;
    font-weight: 600;
  }

  /* Menu overlay */
  .menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Mobile navigation toggle */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle-icon {
    width: 24px;
    height: 24px;
  }

  .language-switcher {
    min-width: auto;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
  }

  .language-button {
    width: auto;
    height: auto;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    font-weight: normal !important;
    font-size: inherit !important;
    text-align: left !important;
  }

  .language-flag {
    font-size: 20px;
    margin: 0;
  }

  .language-abbr {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 6px;
  }

  .language-dropdown {
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
  }

  .language-option {
    padding: 12px 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Remove different sizing for very small screens to maintain 48px minimum */
  .nav-right {
    gap: 12px;
  }

  .social-links-container {
    gap: 12px;
  }
}

/* Base styles for social links */
.l-header .whatsapp-link,
.l-header .telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

.l-header .whatsapp-link i,
.l-header .telegram-link i {
  font-size: 24px;
}

.l-header .whatsapp-link:hover,
.l-header .telegram-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.l-header .whatsapp-link:active,
.l-header .telegram-link:active {
  transform: translateY(0);
}

.l-header .whatsapp-link {
  color: #25D366;
}

.l-header .telegram-link {
  color: #0088cc;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.language-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.language-flag {
  font-size: 20px;
  line-height: 1;
}

.language-abbr {
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(86, 15, 221, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-width: 200px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background: rgba(86, 15, 221, 0.2);
  color: white;
  font-weight: 500;
}

.language-option.active::before {
  display: none;
}

.language-name {
  font-size: 14px;
  font-weight: 500;
}

/* Mobile adjustments - maintaining minimum 48px touch target */
@media screen and (max-width: 380px) {
  .language-abbr {
    font-size: 13px;
  }

  .language-dropdown {
    min-width: 160px;
    right: -8px;
  }

  .language-option {
    padding: 14px;
  }

  .language-name {
    font-size: 13px;
  }
}

/* Very small devices adjustments */
@media screen and (max-width: 320px) {
  .language-abbr {
    font-size: 12px;
  }
}

/* Navigation dropdown styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(86, 15, 221, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile dropdown adjustments */
@media screen and (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0 0 0;
    border-radius: 4px;
  }
  
  .nav-dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Show/hide navigation items based on screen size */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
} 