/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
  position: relative;
  background: linear-gradient(135deg, #0A0A1A 0%, #1A1040 50%, #0A0A1A 100%);
  border-bottom: 1px solid rgba(124, 92, 252, 0.2);
  overflow: hidden;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-bar.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(124, 92, 252, 0.1),
      transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.announcement-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Announcement Track */
.announcement-track {
  display: flex;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right,
      transparent,
      black 5%,
      black 95%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 5%,
      black 95%,
      transparent);
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: slideAnnouncement 20s linear infinite;
  flex-shrink: 0;
}

.announcement-icon {
  width: 32px;
  height: 32px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.announcement-icon i {
  color: var(--secondary);
  animation: iconPulse 2s ease-in-out infinite;
}

.announcement-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.announcement-text .highlight {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.05);
}

.announcement-link:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.announcement-link i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.announcement-link:hover i {
  transform: translateX(3px);
}

/* Close Button */
.announcement-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.announcement-close:hover {
  background: rgba(255, 61, 113, 0.15);
  border-color: rgba(255, 61, 113, 0.3);
  color: var(--danger);
  transform: rotate(90deg);
}

/* Progress Bar */
.announcement-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(124, 92, 252, 0.1);
}

.announcement-progress .progress-bar {
  height: 100%;
  background: var(--gradient-1);
  width: 100%;
  animation: shrinkProgress 20s linear infinite;
}

/* ============ NAVIGATION BAR ============ */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 60px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--dark-card);
}

.navbar.sticky {
  position: fixed;
  top: 0;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 15px 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
}

/* Add body padding when navbar is sticky to prevent content jump */
body.navbar-sticky {
  padding-top: 85px;
  /* Adjust based on your navbar height */
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  position: relative;
  width: 45px;
  height: 45px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
  position: relative;
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 12px;
  animation: logoPulse 2s ease-in-out infinite;
}

.brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-name span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.3);
  color: var(--text-primary);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-login:hover {
  border-color: var(--primary);
  background: rgba(124, 92, 252, 0.1);
  transform: translateY(-2px);
}

.btn-register {
  background: var(--gradient-1);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-register:hover::before {
  width: 300px;
  height: 300px;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ============ ANIMATIONS ============ */
@keyframes slideAnnouncement {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes shrinkProgress {
  0% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .announcement-container {
    padding: 10px 30px;
  }

  .announcement-track {
    gap: 40px;
  }

  .navbar {
    padding: 15px 30px;
  }

  .navbar.sticky {
    padding: 15px 30px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .announcement-container {
    padding: 8px 20px;
  }

  .announcement-item {
    gap: 8px;
  }

  .announcement-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .announcement-text {
    font-size: 12px;
  }

  .announcement-link {
    padding: 3px 10px;
    font-size: 11px;
  }

  .announcement-close {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-left: 10px;
  }

  .nav-actions {
    display: none;
  }

  .navbar {
    padding: 12px 20px;
  }

  .navbar.sticky {
    padding: 10px 20px;
  }

  body.navbar-sticky {
    padding-top: 65px;
  }
}

@media (max-width: 480px) {
  .announcement-item {
    font-size: 11px;
  }

  .announcement-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .announcement-text {
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .announcement-link {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 20px;
  }
}