/* ==========================================================================
   Header Component Styles (header.css) - Exact Desktop & Isolated Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESKTOP STYLES (DEFAULT) - EXACT UNTOUCHED ORIGINAL DESIGN
   -------------------------------------------------------------------------- */
.header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  border-bottom: none;
}

/* Absolute Logo Box */
.logo-box {
  position: absolute;
  top: 0;
  left: 60px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  z-index: 101;
  display: inline-block;
}

.logo-box img {
  width: 75px;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 105;
}

/* Header Navigation Links (Light Frosted Glassmorphic Design) */
.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 246, 255, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(6, 25, 62, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 246, 255, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(6, 25, 62, 0.12), inset 0 1px 1px rgba(255, 255, 255, 1);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #06193e;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: #1b63fb;
  background: rgba(27, 99, 251, 0.06);
}

.nav-icon {
  font-size: 16px;
  color: #06193e;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.18);
  color: #1b63fb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  background: #1b63fb;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(27, 99, 251, 0.4);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: #1b63fb;
}

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

.nav-divider {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
}

/* Support Action Button (Desktop Original) */
.support-btn {
  position: absolute !important;
  top: -22px !important;
  right: 20px !important;
  background-color: #2abf62 !important;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(42, 191, 98, 0.2);
  z-index: 99999 !important;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.support-btn:hover {
  background-color: #23a955 !important;
  transform: translateY(-1px);
}

.support-icon {
  font-size: 24px;
  color: #ffffff;
}

.support-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.support-label {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.1;
}

.support-phone {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   ISOLATED MOBILE RESPONSIVE STYLES ONLY (MAX-WIDTH: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 75px !important;
    background: transparent !important;
    z-index: 100 !important;
  }

  .header-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hamburger Menu Toggle on Far Left Corner */
  .mobile-menu-toggle {
    display: flex !important;
    position: absolute !important;
    left: 10px !important;
    top: 10px !important;
    width: 34px !important;
    height: 34px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    font-size: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 105 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Compact Proportional Logo Box - Desktop Style Hanging Badge */
  .logo-box {
    position: absolute !important;
    top: 0 !important;
    left: 50px !important;
    background: #ffffff !important;
    padding: 5px 8px !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    z-index: 104 !important;
    display: inline-block !important;
  }

  .logo-box img {
    width: 40px !important;
    height: auto !important;
    display: block !important;
  }

  /* Support Button - Exact Desktop Design on Mobile Right Side */
  .support-btn {
    position: absolute !important;
    top: -1px !important;
    right: 10px !important;
    left: auto !important;
    background-color: #2abf62 !important;
    color: #ffffff !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 105 !important;
    box-shadow: 0 4px 12px rgba(42, 191, 98, 0.25) !important;
    text-decoration: none !important;
  }

  .support-icon {
    font-size: 20px !important;
    color: #ffffff !important;
  }

  .support-info {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
  }

  .support-label {
    display: block !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
  }

  .support-phone {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
  }

  /* Mobile Dropdown Menu Panel */
  .header-nav {
    position: absolute !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    transform: translateY(-10px) !important;
    opacity: 0;
    visibility: hidden;
    flex-direction: column !important;
    width: calc(100% - 20px) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px !important;
    gap: 8px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .header-nav.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .nav-link {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #eff6ff !important;
    color: #2563eb !important;
  }

  .nav-link::after {
    display: none !important;
  }

  .nav-divider {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .support-label {
    display: block !important;
  }
}