/* Navigation */
nav {
  background: white !important;
  backdrop-filter: blur(10px);
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
  display: block !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary, #0047AB) 0%, var(--secondary, #007AFF) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--primary, #0047AB);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-light, #007AFF);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light, #007AFF);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* Admin Link */
.nav-links .admin-nav-link {
  color: #ef4444 !important;
  font-weight: 600;
  position: relative;
}

.nav-links .admin-nav-link:hover {
  color: #dc2626 !important;
}

/* Removed lock icon from admin link */

/* Sign In Button */
.nav-links .sign-in-link {
  background: var(--primary, #0047AB);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
  margin-left: 1rem;
}

.nav-links .sign-in-link:hover {
  background: var(--primary-light, #007AFF);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-links .sign-in-link::after {
  display: none;
}

/* Locale Switchers */
.locale-switchers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 1rem;
}

.language-switcher,
.currency-switcher {
  position: relative;
}

.locale-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--gray-lighter);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  color: var(--primary, #0047AB);
}

.locale-btn:hover {
  border-color: var(--primary, #0047AB);
  background: var(--gray-lighter);
}

.locale-flag {
  font-size: 1.2rem;
}

.locale-code,
.currency-symbol {
  font-weight: 600;
}

.dropdown-arrow {
  transition: transform 0.3s;
}

.locale-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.locale-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--gray-lighter);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1001;
  min-width: 150px;
}

.locale-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.locale-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  color: var(--dark);
}

.locale-option:hover {
  background: var(--gray-lighter);
}

.locale-option:first-child {
  border-radius: 10px 10px 0 0;
}

.locale-option:last-child {
  border-radius: 0 0 10px 10px;
}

.locale-option .currency-symbol {
  font-weight: 600;
  min-width: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary, #0047AB);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    gap: 1.5rem;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .locale-switchers {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .locale-btn {
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .sign-in-link {
    margin: 1rem 0 0 0 !important;
    padding: 1rem 2rem !important;
    text-align: center !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.75rem;
  }
  
  .logo img {
    height: 32px !important;
  }
  
  .nav-links {
    top: 70px;
    padding: 1.5rem 1rem;
  }
  
  .contest-hero {
    padding: 40px 20px !important;
  }
  
  .contest-title {
    font-size: 2rem !important;
  }
  
  .countdown-timer {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 15px 20px;
  }
  
  .countdown-item {
    min-width: 50px;
  }
  
  .countdown-value {
    font-size: 2rem !important;
  }
  
  .countdown-separator {
    display: none;
  }
}
