/* Base theme for the events hub and newer event pages. */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #8a6a1e;
  --bg-deep: #050710;
  --bg-mid: #0a0e1f;
  --bg-card: #0d1228;
  --text: #dce3f5;
  --text-muted: #8899bb;
  --accent-blue: #1e90ff;
  --accent-teal: #00d4aa;
  --accent-violet: #7a5cff;
  --violet-light: #b9a8ff;
  --border: rgba(201, 168, 76, 0.25);
  --border-bright: rgba(201, 168, 76, 0.6);
  --red: #e84545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--gold); }

/* STARFIELD */
#starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star {
  position: absolute; width: 2px; height: 2px; background: white; border-radius: 50%;
  animation: twinkle var(--d) ease-in-out infinite alternate; opacity: var(--o);
}
@keyframes twinkle {
  from { opacity: var(--o); transform: scale(1); }
  to { opacity: calc(var(--o) * 0.2); transform: scale(0.5); }
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5, 7, 16, 0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem;
  color: var(--gold); letter-spacing: 0.1em; text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--text-muted); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* TYPE */
.eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.35em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 24px;
}
.section-label {
  font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 40px; line-height: 1.15;
}
.lead { font-size: 1.1rem; font-weight: 300; color: var(--text); max-width: 680px; }
.muted { color: var(--text-muted); }

/* LAYOUT */
section { position: relative; z-index: 1; padding: 100px 40px; max-width: 1200px; margin: 0 auto; scroll-margin-top: 40px; }
.gold-divider {
  width: 100%; height: 1px; opacity: 0.4;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-bg-wrapper {
  position: relative; background: var(--bg-mid);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 14px 36px; font-family: 'Cinzel', serif; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: filter 0.2s, transform 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep); font-weight: 700; border: none;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-primary:disabled { filter: grayscale(0.6) brightness(0.7); cursor: wait; transform: none; }
.btn-secondary { background: transparent; color: var(--gold); font-weight: 600; border: 1px solid var(--border-bright); }
.btn-secondary:hover { background: rgba(201, 168, 76, 0.08); transform: translateY(-2px); }
.btn-space { background: linear-gradient(135deg, #3d2a9e, var(--accent-violet)); color: #fff; }
.btn-space-outline { color: var(--violet-light); border-color: rgba(122, 92, 255, 0.6); }
.btn-space-outline:hover { background: rgba(122, 92, 255, 0.1); }

/* FOOTER */
footer {
  position: relative; z-index: 1; background: var(--bg-mid); border-top: 1px solid var(--border);
  padding: 60px 40px 40px; text-align: center;
}
.footer-logo {
  font-family: 'Cinzel Decorative', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-text { color: var(--text-muted); font-size: 0.8rem; line-height: 1.8; }
.footer-divider { width: 60px; height: 1px; background: var(--gold); opacity: 0.3; margin: 24px auto; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .star { animation: none; }
}

@media (max-width: 700px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  section { padding: 70px 16px; }
  footer { padding: 48px 16px 32px; }
}
