/* 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);
}

/* MOBILE-FIRST NAVIGATION CONTAINER */
.nav {
  /* Mobile-first: compact navigation */
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 9999;
  width: 100%;
}

/* Desktop enhancement: more spacious */
@media screen and (min-width: 48rem) {
  .nav {
    padding: 0 var(--space-xl);
  }
}

/* Logo styles */
.nav-logo {
  color: var(--white-color);
  font-weight: 700;
  font-size: var(--text-xl);
  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: var(--space-lg);
  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.4rem;
  transition: all 0.3s ease;
  height: 100%;
  padding: 0 0.4rem;
  font-size: 0.95rem;
}

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

.nav-icon {
  width: 20px;
  height: 20px;
  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-FIRST DISPLAY UTILITIES */
.desktop-only {
  display: none; /* Hidden by default on mobile */
}

.mobile-only {
  display: flex; /* Visible by default on mobile */
  width: 100%;
  height: auto;
}

/* Desktop enhancement */
@media screen and (min-width: 48rem) {
  .desktop-only {
    display: flex; /* Show on desktop */
  }
  
  .mobile-only {
    display: none; /* Hide on desktop */
  }
}

  .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;
  }

  /* Desktop menu width adjustment */
  @media screen and (min-width: 48rem) {
    .nav-menu {
      width: 400px;
      max-width: 90vw;
    }
  }

  @media screen and (min-width: 64rem) {
    .nav-menu {
      width: 350px;
      max-width: 90vw;
    }
  }

  .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: var(--radius-md);
    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: var(--radius-md);
    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;
  }

  /* Navigation footer */
  .nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-footer-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav-footer-brand {
    color: #fa8072;
    font-weight: 500;
  }

  .nav-footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
  }

  .nav-footer-link:hover .nav-footer-brand {
    color: #fa8072;
    text-shadow: 0 0 8px rgba(250, 128, 114, 0.3);
  }

  .nav-footer-link:active {
    transform: translateY(0);
  }

/* MOBILE-FIRST NAVIGATION STYLES */
.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: 28px;
    margin: 0;
  }

  /* language-abbr styles moved to mobile-first section below */

  .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: var(--radius-md);
  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: 28px;
  line-height: 1;
}

/* language-abbr styles consolidated in mobile-first section below */

.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: var(--radius-xl);
  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-FIRST LANGUAGE ADJUSTMENTS - Optimized touch targets */
/* Base mobile styles (smallest screens first) */
.language-abbr {
  font-size: 12px; /* Mobile-first: smallest readable */
  font-weight: 600;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.9);
}

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

.language-option {
  padding: 14px; /* Mobile-first: generous touch target */
}

.language-name {
  font-size: 12px; /* Mobile-first: compact */
}

/* Enhanced for larger mobile screens */
@media screen and (min-width: 20rem) {
  .language-abbr {
    font-size: 13px; /* Enhanced readability */
  }
  
  .language-name {
    font-size: 13px; /* Enhanced readability */
  }
}

/* Enhanced for tablet/desktop */
@media screen and (min-width: 24rem) {
  .language-abbr {
    font-size: 14px; /* Desktop readability */
  }
  
  .language-name {
    font-size: 14px; /* Desktop readability */
  }
}
