/* ============================================
   MODERN HEADER WITH GLASSMORPHISM
   ============================================ */

/* Logo size variables */
:root {
  --brand-logo-size: clamp(90px, 12vw, 140px);
  --nav-logo-size: clamp(80px, 11vw, 120px);
  --footer-logo-size: clamp(90px, 12vw, 140px);
  --token-logo-size: clamp(56px, 8vw, 88px);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
  /* Fallback solid gradient background - Darker Blue */
  background: linear-gradient(135deg, #1e40af 0%, #0369a1 100%);
  /* Modern glassmorphism effect with fallback */
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(3, 105, 161, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 18px 22px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.brand-icon {
  height: var(--brand-logo-size);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

.brand-icon:hover {
  transform: scale(1.1);
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-icon {
  height: var(--nav-logo-size);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

.nav-icon:hover {
  transform: scale(1.1);
}

.nav-links li {
  margin-left: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 12px;
  transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  /* Completely transparent - no background at all */
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.nav-links li a::before {
  display: none !important;
}

.nav-links li a:hover {
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.nav-links li a.active {
  color: #fff;
  font-weight: 700;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* ============================================
   HEADER MIDDLE
   ============================================ */
.header-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   TOKEN CENTER (Dashboard)
   ============================================ */
.token-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  gap: 14px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.token-logo {
  height: var(--token-logo-size);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

/* Platform Name Styling */
.platform-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 300ms ease;
  flex: 1;
  text-align: center;
}

.platform-name:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Token logos positioning */
.token-logo-left {
  order: -1;
}

.token-logo-right {
  order: 1;
}

/* ============================================
   HEADER LEFT - Token Display
   ============================================ */
.header-left {
  display: flex;
  align-items: center;
}

.token-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 300ms ease;
}

.token-display:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.token-display i {
  font-size: 1.2rem;
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.token-logo:hover {
  transform: scale(1.15);
}

/* ============================================
   FOOTER
   ============================================ */
footer,
.site-footer {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  margin-top: var(--spacing-2xl);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.footer-inner {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px !important;
  position: relative;
  z-index: 1;
}

.footer-inner p {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-icon {
  height: var(--footer-logo-size) !important;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-base);
}

.footer-icon:hover {
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .main-header {
    padding: 14px 16px;
  }
  
  nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 1.8rem;
    gap: 12px;
  }
  
  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .nav-links li a {
    padding: 8px 16px;
    font-size: 1rem;
  }
  
  .token-center {
    font-size: 1rem;
    padding: 8px 16px;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  :root {
    --brand-logo-size: clamp(72px, 16vw, 120px);
    --nav-logo-size: clamp(64px, 15vw, 110px);
    --footer-logo-size: clamp(72px, 16vw, 120px);
  }
  
  .nav-links {
    gap: 18px;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  .nav-links li a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  :root {
    --token-logo-size: clamp(44px, 12vw, 72px);
  }
  
  .token-center {
    gap: 10px;
    font-size: 0.9rem;
  }
}

/* ============================================
   UNIFY LOGO SIZES
   ============================================ */
.brand-icon,
.nav-icon,
.token-logo {
  height: var(--token-logo-size) !important;
  width: auto;
  display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.main-header {
  animation: headerSlideDown 0.5s ease-out;
}
