/* Header Styles */
.header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
	top: 0;
  background: rgba(10, 10, 26, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Running Line */
.running-line {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.running-content {
  display: inline-block;
  animation: scroll 30s linear infinite;
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  height: 2rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(139,92,246,0.15));
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-purple);
  background: rgba(139, 92, 246, 0.1);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-register {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-nav-menu {
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-nav-menu li {
  margin-bottom: 1rem;
}

.mobile-nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-purple);
  padding-left: 1rem;
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu,
  .nav-buttons {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .running-content {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.5rem 0;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .running-line {
    padding: 5px 0;
  }
}