/**
 * Luxora Site-Wide Styles
 * Tokens and global header/footer/body overrides for the light theme.
 * Homepage-specific pseudo-elements and animations remain under .luxora-homepage.
 *
 * @package Nera_Competitions
 */

/* Colour tokens — global */
:root {
  --forest: #3d4a3a;
  --sage: #6b8c6b;
  --mint: #c8e6c0;
  --mint-soft: #dff0d8;
  --mint-wash: #f0f8ec;
  --ink: #1e2a1e;
  --ink-mid: #4a5a48;
  --ink-soft: #7a8f78;
  --white: #ffffff;
  --off-white: #f8fbf6;
  --border: rgba(61, 74, 58, 0.14);
}

/* ── Global page overrides ── */

body {
  background: #f8fbf6;
  color: #1e2a1e;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

#primary,
.site-main {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Off-white shell — not on My Account (forest handled in theme + overrides) */
body:not(.woocommerce-account) #primary,
body:not(.woocommerce-account) .site-main {
  background: #f8fbf6;
}

body:not(.woocommerce-account) #content,
body:not(.woocommerce-account) .site-content {
  background: #f8fbf6;
}

body:not(.woocommerce-account) #page {
  background: #f8fbf6;
}

/* Homepage-only: suppress old global marquee (Luxora has its own inside <main>) */
.marquee-banner {
  display: none;
}

/* Luxora homepage scope — base + link reset */
.luxora-homepage {
  background: var(--off-white);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.luxora-homepage a:not([class*="text-"]) {
  /* color: inherit; */
}

/* 5. Heading typography reset — defeats Astra's bold defaults */
.luxora-homepage h1,
.luxora-homepage h2,
.luxora-homepage h3,
.luxora-homepage h4,
.luxora-homepage h5,
.luxora-homepage h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* 6. em elements inside section/component titles */
.luxora-homepage .sec-title em   { font-style: italic; color: var(--sage); }
.luxora-homepage .why-title em   { font-style: italic; color: var(--mint); }

/* 7. strong within prize/ticket contexts — CSS safety net for dynamic PHP echo markup */
.luxora-homepage .prize-val-row strong { color: var(--forest); font-weight: 500; }
.luxora-homepage .ticket-lbl strong   { color: var(--forest); font-weight: 500; }
.luxora-homepage .cc-worth strong     { color: var(--ink-mid); font-weight: 500; }

/* Homepage-only: suppress old global marquee (Luxora has its own inside <main>) */
body.page-template-luxora-homepage-template .marquee-banner {
  display: none;
}

/* ── Header: light Luxora nav ── */
#site-header {
  background: rgba(248, 251, 246, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61, 74, 58, 0.14);
}
#site-header nav > a {
  color: #3d4a3a !important;
}
#site-header .menu-item a,
#site-header nav a:not(.nera-header-enter-btn) {
  color: #7a8f78 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  transition: color 0.25s;
}
#site-header .menu-item a:hover,
#site-header nav a:not(.nera-header-enter-btn):hover {
  color: #3d4a3a !important;
}
#site-header .current-menu-item a {
  color: #3d4a3a !important;
}
/* Desktop two-level dropdown */
#site-header .menu-item-has-children {
  position: relative;
}
#site-header .luxora-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(248, 251, 246, 0.98);
  border: 1px solid rgba(61, 74, 58, 0.14);
  border-radius: 0;
  min-width: 180px;
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
#site-header .menu-item-has-children:hover .luxora-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#site-header .luxora-submenu .menu-item a {
  display: block;
  padding: 9px 20px;
  white-space: nowrap;
}
#site-header .luxora-nav-chevron {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
  vertical-align: middle;
}
#site-header .menu-item-has-children:hover .luxora-nav-chevron {
  transform: rotate(180deg);
}
#site-header a[aria-label="View Cart"],
#site-header a[aria-label="Log In"],
#site-header a[aria-label="Sign In"],
#site-header a[aria-label*="Account"] {
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
/* Enter button — Luxora styling */
.nera-header-enter-btn,
.nera-header-enter-btn[style] {
  background: #3d4a3a;
  color: #c8e6c0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 28px;
  transition: background 0.3s;
}
.nera-header-enter-btn:hover {
  background: #1e2a1e;
  color: #ffffff;
}
/* Mobile menu */
#mobile-menu {
  background: rgba(248, 251, 246, 0.98);
  border-top-color: rgba(61, 74, 58, 0.14);
}
#mobile-menu a {
  color: #7a8f78 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}
#mobile-menu a:hover,
#mobile-menu .current-menu-item a {
  color: #3d4a3a !important;
}
#mobile-menu a.block.w-full {
  background: #3d4a3a !important;
  color: #c8e6c0 !important;
  border-radius: 0 !important;
}
/* Mobile two-level accordion */
#mobile-menu .luxora-mobile-submenu {
  padding-left: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
}
#mobile-menu .luxora-accordion-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #7a8f78;
  transition: transform 0.2s;
}
#mobile-menu .luxora-accordion-toggle.is-open {
  transform: rotate(180deg);
}
#mobile-menu .luxora-mobile-submenu .menu-item a {
  font-size: 0.65rem !important;
  padding: 6px 0;
}

/* ── Footer: Luxora --ink bg ── */
#site-footer {
  background: #1e2a1e;
  border-top-color: rgba(200, 230, 192, 0.08);
}
#site-footer {
  color: rgba(200, 230, 192, 0.45);
}
#site-footer p {
  color: rgba(200, 230, 192, 0.35);
}
#site-footer .footer-legal,
#site-footer small {
  color: rgba(200, 230, 192, 0.2);
}
#site-footer a {
  color: rgba(200, 230, 192, 0.35);
}
#site-footer a:hover {
  color: #c8e6c0;
}
#site-footer h3,
#site-footer h4 {
  color: #6b8c6b;
}
.footer-vlb-badge {
  background: rgba(200, 230, 192, 0.05) !important;
  border-color: rgba(200, 230, 192, 0.12) !important;
  color: rgba(200, 230, 192, 0.5) !important;
}
#nera-scroll-top {
  background: #3d4a3a !important;
  color: #c8e6c0 !important;
  border-color: rgba(200, 230, 192, 0.2) !important;
}
#site-footer .wp-block-social-links a,
#site-footer .wp-block-social-links a svg {
  color: rgba(200, 230, 192, 0.35) !important;
  border-color: rgba(200, 230, 192, 0.12) !important;
}
#site-footer .wp-block-social-links a:hover,
#site-footer .wp-block-social-links a:hover svg {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* ── Pseudo-elements (rules that still need plain CSS) ── */

.luxora-homepage .hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 110% 10%, rgba(200, 230, 192, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 90%, rgba(107, 140, 107, 0.12) 0%, transparent 50%);
}

.luxora-homepage .prize-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.3));
}

.luxora-homepage .sec-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--sage);
}

.luxora-homepage .marquee-item::after {
  content: '·';
  font-style: normal;
  color: rgba(200, 230, 192, 0.2);
  font-size: 1rem;
}

.luxora-homepage .why-content-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--mint);
  opacity: 0.5;
}

.luxora-homepage .how-step::before {
  content: attr(data-n);
  position: absolute;
  top: -8px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(61, 74, 58, 0.04);
  line-height: 1;
  pointer-events: none;
}

/* ── Live dot blink animation ── */
.luxora-homepage .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  animation: luxora-blink 1.6s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes luxora-scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes luxora-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes luxora-fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero entrance animations ── */
.luxora-homepage .hero-left > * {
  opacity: 0;
  animation: luxora-fadeUp 0.75s ease forwards;
}

.luxora-homepage .hero-logo-display {
  animation-delay: 0.2s;
}

.luxora-homepage .hero-tagline {
  animation-delay: 0.32s;
}

.luxora-homepage .hero-body {
  animation-delay: 0.42s;
}

.luxora-homepage .hero-actions {
  animation-delay: 0.52s;
}

.luxora-homepage .hero-trust {
  animation-delay: 0.62s;
}
