/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.header-logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.reviewer-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Allow underline hover effect like other nav items */
/* removed display:none to inherit .nav-link::after behavior */

.reviewer-cta::before {
  content: '🔮';
  font-size: 18px;
}

.reviewer-cta:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.45);
}

.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  width: 100%;
}

.download-link {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.header-mobile-menu {
  display: none;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 201;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-nav.mobile-active {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px var(--pad);
    animation: slideDown 0.3s ease;
  }

  .header-nav.mobile-active .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
  }

  .header-nav.mobile-active .nav-link:last-child {
    border-bottom: none;
  }

  .header-nav.mobile-active .download-link {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .header-nav.mobile-active .reviewer-cta {
    margin-top: 12px;
    width: 100%;
    border-radius: 18px;
    justify-content: center;
    text-align: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 75px);
  right: max(var(--pad), env(safe-area-inset-right));
  left: auto;
  display: flex; gap: 8px; z-index: 250;
  background: rgba(255,255,255,.06);
  padding: 6px; border-radius: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  direction: ltr;
}

.lang-switcher button {
  border: 0; padding: 6px 10px; border-radius: 10px;
  cursor: pointer; color: #fff; background: transparent; font-weight: 600;
}

.lang-switcher button.active { 
  background: rgba(255,255,255,.16); 
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header Mobile Styles */
  .header-nav {
    display: none;
  }
  
  .header-mobile-menu {
    display: block;
  }
  
  .header-container {
    height: 60px;
  }
  
  .header-logo {
    gap: 8px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .logo-image {
    width: 32px;
    height: 32px;
  }
  
  /* Language switcher mobile adjustments */
  .lang-switcher {
    top: calc(env(safe-area-inset-top) + 70px);
    right: max(12px, env(safe-area-inset-right));
    padding: 4px;
    gap: 4px;
  }
  
  .lang-switcher button {
    padding: 4px 8px;
    font-size: 14px;
  }
}
