/* =========================================
   AURORA V1 — Clean Luxury Editorial UI
   Goal: 100% new look, same HTML structure
   ========================================= */

:root {
  /* Core palette */
  --ui-bg: #0b1020;
  --ui-bg-soft: #0f1730;
  --ui-surface: rgba(255, 255, 255, 0.06);
  --ui-surface-2: rgba(255, 255, 255, 0.09);
  --ui-border: rgba(255, 255, 255, 0.14);
  --ui-border-soft: rgba(255, 255, 255, 0.09);

  --ui-text: rgba(255, 255, 255, 0.92);
  --ui-muted: rgba(255, 255, 255, 0.64);
  --ui-faint: rgba(255, 255, 255, 0.48);

  /* Accent system */
  --ui-accent: #ffcc66;    /* warm gold */
  --ui-accent-2: #7cf3ff;  /* cool cyan */
  --ui-accent-3: #b48cff;  /* soft violet */
  --ui-accent-ink: #0b1020;

  --ui-glow-accent: 0 18px 60px rgba(255, 204, 102, 0.25);
  --ui-glow-cyan: 0 18px 60px rgba(124, 243, 255, 0.18);
  --ui-glow-violet: 0 18px 60px rgba(180, 140, 255, 0.18);

  /* Typography */
  --font-sans: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Outfit", ui-serif, Georgia, "Times New Roman", serif;

  /* Radii + motion */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --transition: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --header-h: 78px;

  /* Layout */
  --container-max: 1180px;
  --shadow-1: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* ── Legacy aliases (keeps existing CSS/inline styles working) ── */
  --bg-dark: var(--ui-bg);
  --bg-pane: var(--ui-surface);
  --bg-pane-hover: var(--ui-surface-2);

  --clr-primary: var(--ui-accent);
  --clr-primary-glow: rgba(255, 204, 102, 0.28);

  --clr-secondary: var(--ui-accent-3);
  --clr-secondary-glow: rgba(180, 140, 255, 0.24);

  --text-main: var(--ui-text);
  --text-muted: var(--ui-muted);

  --border-light: var(--ui-border-soft);
  --border-hover: var(--ui-border);

  --primary-color: var(--ui-accent);
  --border-color: var(--ui-border-soft);
  --header-bg: rgba(11, 16, 32, 0.72);
  --clr-bg: var(--ui-bg);
  --clr-muted: var(--ui-muted);
  --clr-border: var(--ui-border-soft);
  --glow-primary: var(--ui-glow-accent);
  --bg-card: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 243, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(180, 140, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 60% 120%, rgba(255, 204, 102, 0.16), transparent 55%),
    linear-gradient(180deg, #090d1a 0%, #0b1020 40%, #070a13 100%);
  color: var(--ui-text);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glows (shared) */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
}

body::before {
  top: -140px;
  right: -160px;
  background: var(--ui-accent-3);
}

body::after {
  bottom: -160px;
  left: -180px;
  background: var(--ui-accent-2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), transform var(--transition), background-color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}

/* Ambient background helper used by list/show/news pages */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-background .orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  transform: translate3d(0, 0, 0);
}

.ambient-background .orb-1 {
  top: -160px;
  left: -160px;
  background: rgba(124, 243, 255, 0.35);
}

.ambient-background .orb-2 {
  top: -140px;
  right: -220px;
  background: rgba(180, 140, 255, 0.35);
}

.ambient-background .orb-3 {
  bottom: -220px;
  left: 45%;
  transform: translateX(-50%);
  background: rgba(255, 204, 102, 0.28);
}

/* ─── Header ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
  background: rgba(11, 16, 32, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.logo img {
  height: 38px;
}

.nav-list ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ui-muted);
  letter-spacing: 0.02em;
}

.nav-list a:hover,
.nav-list li.active a {
  color: var(--ui-text);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ui-text);
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ui-accent) 0%, rgba(255, 204, 102, 0.85) 60%, rgba(124, 243, 255, 0.55) 140%);
  color: var(--ui-accent-ink);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--ui-glow-accent);
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(255, 204, 102, 0.28);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ui-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ─── Shared utilities ─── */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(90deg, var(--ui-accent) 0%, var(--ui-accent-2) 55%, var(--ui-accent-3) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(90deg, var(--ui-accent-3), rgba(255, 204, 102, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Footer ─── */
footer,
#main-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.25rem;
  margin-bottom: 3.25rem;
}

.footer-brand p,
.footer-desc {
  color: var(--ui-muted);
  font-size: 0.92rem;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  color: var(--ui-text);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  color: var(--ui-muted);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--ui-accent-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ui-muted);
  font-size: 0.85rem;
  gap: 1rem;
}

/* ─── Small utility classes used in templates ─── */
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.gap-3 { gap: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.border-top-dark { border-top: 1px solid rgba(255, 255, 255, 0.08) !important; }
.text-muted-light { color: var(--ui-muted) !important; }

/* Header container helper referenced by pages */
.glass-nav {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 50px rgba(0,0,0,0.25);
}

/* Mobile bottom bar hidden by default */
.mobile-bottom-bar { display: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav-list {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 320px;
    height: calc(100vh - var(--header-h));
    background: rgba(11, 16, 32, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: right 260ms ease;
    z-index: 999;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list ul {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .header-auth .btn-signup {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    padding: 10px;
    gap: 10px;
    z-index: 1000;
  }

  .mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 0.92rem;
  }

  .mobile-bottom-bar .btn-login {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--ui-accent) 0%, rgba(124, 243, 255, 0.75) 120%);
    color: var(--ui-accent-ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  body {
    padding-bottom: 70px;
  }
}

