/* ============================================
   PREMIUM UPGRADES — L2 WarNeT
   Appended to style.css
   ============================================ */

/* --- Google Fonts integration --- */
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

h1, h2, h3, .logo span, .footer-logo,
.eyebrow, .subtitle, .rates th,
.section-title, .v2-chronicle {
  font-family: 'Montserrat', Georgia, serif;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020713; }
::-webkit-scrollbar-thumb { background: #1a3566; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a5090; }
* { scrollbar-width: thin; scrollbar-color: #1a3566 #020713; }

/* --- Page Fade-In --- */
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}
body { animation: fadeInPage 0.5s ease-out; }

/* --- Button Shine Sweep --- */
.v2-btn, .v2-small-btn, .site-header .btn,
.big-btn, .btn-gold, .btn-dark {
  position: relative;
  overflow: hidden;
}
.v2-btn::after, .v2-small-btn::after, .site-header .btn::after,
.big-btn::after, .btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.v2-btn:hover::after, .v2-small-btn:hover::after,
.site-header .btn:hover::after, .big-btn:hover::after,
.btn-gold:hover::after {
  left: 120%;
}

/* --- Pulse Glow on Primary CTA --- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(33, 105, 255, 0.3); }
  50% { box-shadow: 0 0 35px rgba(33, 105, 255, 0.55), 0 0 60px rgba(33, 105, 255, 0.2); }
}
.v2-btn-primary, .site-header .btn-gold {
  animation: pulseGlow 3s ease-in-out infinite;
}
.v2-btn-primary:hover, .site-header .btn-gold:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(39, 116, 255, 0.5), 0 0 60px rgba(39, 116, 255, 0.25);
}

/* --- Ripple Effect --- */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Cookie Banner Glass --- */
#cookie-banner {
  background: rgba(5, 15, 40, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(74, 123, 196, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* --- Vote Banners Uniform --- */
.footer-vote-banners .vote-banners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.footer-vote-banners .vote-banners-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  filter: grayscale(0.3);
}
.footer-vote-banners .vote-banners-grid a:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0);
}
.footer-vote-banners .vote-banners-grid img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Counter Number Animation --- */
.counter-animate {
  display: inline-block;
  transition: transform 0.3s ease;
}
.counter-animate.counting {
  transform: scale(1.1);
}

/* --- Focus States for Accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Scroll to Top Button --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #145ee8, #0a43b6);
  color: #fff;
  font-size: 20px;
  border: 1px solid rgba(74, 123, 196, 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(20, 94, 232, 0.3);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  box-shadow: 0 6px 25px rgba(20, 94, 232, 0.5);
  transform: translateY(-3px);
}

/* === PREMIUM NAV: Underline Glow === */
.main-nav {
  gap: 6px !important;
}

.main-nav a {
  position: relative;
  padding: 8px 16px;
  color: #a0adc4 !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s !important;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a7bc4, #7ba9e8, #4a7bc4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
  box-shadow: 0 0 8px rgba(74, 123, 196, 0.6);
  border-radius: 2px;
}

.main-nav a:hover {
  color: #e0e8ff !important;
  background: rgba(74, 123, 196, 0.08);
}

.main-nav a:hover::after {
  width: 70%;
  left: 15%;
}

.main-nav a.active,
.main-nav a[style*="7ba9e8"] {
  color: #7ba9e8 !important;
}

.main-nav a.active::after,
.main-nav a[style*="7ba9e8"]::after {
  width: 70%;
  left: 15%;
  opacity: 1;
}

/* Header Actions Buttons */
.header-actions .btn {
  border-radius: 8px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.25s ease !important;
}

.header-actions .btn-dark {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(74, 123, 196, 0.3) !important;
  color: #b0bce0 !important;
}

.header-actions .btn-dark:hover {
  background: rgba(74, 123, 196, 0.12) !important;
  border-color: rgba(74, 123, 196, 0.5) !important;
  color: #e0e8ff !important;
  box-shadow: 0 0 15px rgba(74, 123, 196, 0.15);
}

.header-actions .btn-gold {
  border-radius: 8px !important;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(20, 94, 232, 0.25) !important;
}

.header-actions .btn-gold:hover {
  box-shadow: 0 4px 20px rgba(20, 94, 232, 0.4) !important;
  transform: translateY(-1px);
}

/* Logo hover */
.logo {
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.02);
}

/* Mobile nav */
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column;
    gap: 0 !important;
  }
  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(74, 123, 196, 0.1);
    border-radius: 0 !important;
  }
  .main-nav a::after {
    display: none;
  }
  .main-nav a:hover {
    background: rgba(74, 123, 196, 0.1);
  }
}

/* === NEWS SKELETON LOADING === */
.news-skeleton {
  border: 1px solid rgba(74, 123, 196, 0.15);
  background: rgba(5, 13, 32, 0.6);
  overflow: hidden;
}
.skeleton-img {
  width: 100%;
  height: 100px;
  background: linear-gradient(90deg, rgba(74, 123, 196, 0.05) 25%, rgba(74, 123, 196, 0.12) 50%, rgba(74, 123, 196, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}
.skeleton-text {
  height: 12px;
  margin: 10px 12px 0;
  background: rgba(74, 123, 196, 0.08);
  border-radius: 4px;
  animation: skeletonShimmer 1.5s infinite;
}
.skeleton-text.short { width: 60%; height: 10px; margin-bottom: 12px; }
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === PREMIUM NEWS CARDS === */
.v2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.v2-news-grid a {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(74, 123, 196, 0.18);
  color: #dce6ff;
  text-decoration: none;
  background: rgba(3, 10, 24, 0.8);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.v2-news-grid a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(74, 123, 196, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.v2-news-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 123, 196, 0.1);
  border-color: rgba(74, 123, 196, 0.4);
}
.v2-news-grid a:hover::before { opacity: 1; }
.v2-news-grid a:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1.05);
}
.v2-news-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.v2-news-grid small, .v2-news-grid h3, .v2-news-grid time {
  display: block;
  margin: 8px 12px 0;
  position: relative;
  z-index: 2;
}
.v2-news-grid small {
  font: 600 9px/1 'Inter', Arial;
  color: #5a8ad4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.v2-news-grid h3 {
  font: 600 13px/1.35 'Inter', Arial;
  color: #e4ebff;
  margin-top: 6px;
}
.v2-news-grid time {
  font: 400 10px/1 'Inter', Arial;
  color: #4a5a7a;
  margin-top: auto;
  padding-bottom: 10px;
}
