/* ============================================================
   PREMIUM.CSS – Enhanced Navbar & Footer for AI Future Trendz
   ============================================================ */

/* ── CSS Variables (shared baseline) ───────────────────────── */
:root {
  --premium-primary:  #2563eb;
  --premium-accent:   #9333ea;
  --premium-gradient: linear-gradient(90deg, #2563eb, #9333ea);
}

/* ── Enhanced Header / Navbar ──────────────────────────────── */
header {
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  transition: box-shadow 0.3s ease, background-color 0.3s ease,
              border-color 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

body.dark header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Nav links – gradient underline animation */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--premium-gradient);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

/* Theme-toggle pill refinement */
.theme-toggle {
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease,
              border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

/* ── Premium Footer ─────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg-section, #fafafa);
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 64px 0 0;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  /* reset any inline center-alignment */
  text-align: left;
}

body.dark footer.site-footer {
  background: var(--bg-section, #1e293b);
}

/* Four-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* ── Brand column ── */
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted, #64748b);
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-light, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}

.footer-social .social-icon:hover {
  background: var(--premium-primary);
  border-color: var(--premium-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Link columns ── */
.footer-links-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main, #0f172a);
  margin-bottom: 16px;
}

body.dark .footer-links-col h4 {
  color: var(--text-main, #f1f5f9);
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin-bottom: 10px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--premium-primary);
}

/* ── Bottom bar ── */
.footer-bottom {
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted, #64748b);
}

.footer-bottom a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--premium-primary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  footer.site-footer {
    padding-top: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
