/* === VARIABLES === */
:root {
  --gold: #e8b84b;
  --gold-light: #f5d078;
  --gold-dark: #a87d1d;
  --crimson: #8b1a1a;
  --crimson-dark: #5a0e0e;
  --dark: #0d0a07;
  --dark-mid: #1a1410;
  --dark-card: #1e1813;
  --dark-card2: #251e16;
  --text: #e0cfa8;
  --text-dim: #9a8a68;
  --text-muted: #5a4f3a;
  --white: #fff8ec;
  --active-green: #4caf50;
  --elim-red: #c0392b;
  --fav-gold: #e8b84b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139,26,26,0.4) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(232,184,75,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139,26,26,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0d0a07 0%, #1a0d0a 50%, #0d0a07 100%);
  z-index: 0;
}

.flames {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.flame {
  position: absolute;
  bottom: 0;
  width: 3px;
  border-radius: 50% 50% 0 0;
  animation: flicker var(--dur, 2s) ease-in-out infinite;
  opacity: 0.7;
  transform-origin: bottom center;
}

@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); opacity: 0.7; }
  25% { transform: scaleY(1.15) scaleX(0.9) translateY(-5px); opacity: 0.9; }
  50% { transform: scaleY(0.9) scaleX(1.1) translateY(2px); opacity: 0.6; }
  75% { transform: scaleY(1.2) scaleX(0.85) translateY(-8px); opacity: 0.85; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.pre-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 60px rgba(232,184,75,0.3), 0 4px 20px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.title .gold {
  color: var(--gold);
  text-shadow: 0 0 80px rgba(232,184,75,0.6), 0 0 160px rgba(232,184,75,0.2);
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 1.5rem auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
}

.subtitle em { color: var(--gold-light); font-style: italic; }
.subtitle strong { color: var(--white); font-weight: 700; }

.venue-badge {
  display: inline-block;
  background: rgba(232,184,75,0.1);
  border: 1px solid rgba(232,184,75,0.3);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  margin: 1rem 0 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.1s;
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(232,184,75,0.3);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.3s;
}
.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(232,184,75,0.5);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite 2s;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* === SECTIONS === */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

section h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(232,184,75,0.2);
}

.section-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* === GREG SECTION === */
.greg-section {
  background: linear-gradient(135deg, var(--dark-mid) 0%, var(--dark) 100%);
  border-top: 1px solid rgba(232,184,75,0.1);
  border-bottom: 1px solid rgba(232,184,75,0.1);
}

.greg-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--dark-card);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 4px;
  padding: 3rem;
  text-align: left;
  margin-top: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(232,184,75,0.1);
}

.greg-portrait {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-inner {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,0.2) 0%, rgba(139,26,26,0.3) 100%);
  border: 2px solid rgba(232,184,75,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(232,184,75,0.3);
  animation: haloPulse 3s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}

.greg-bio h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.greg-stats { list-style: none; }
.greg-stats li {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.stat-label {
  min-width: 140px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}
.stat-val { color: var(--text); }

.greg-quote {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  color: var(--gold-light);
  font-style: italic;
  font-size: 0.95rem;
  background: rgba(232,184,75,0.05);
}

/* === RULES === */
.rules-section { background: var(--dark); }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.rule-card {
  background: var(--dark-card);
  border: 1px solid rgba(232,184,75,0.12);
  border-radius: 3px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.rule-card:hover {
  border-color: rgba(232,184,75,0.35);
  transform: translateY(-3px);
}

.rule-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: rgba(232,184,75,0.25);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.rule-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.rule-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === WARRIORS === */
.warriors-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 100%);
}

.warriors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.warrior-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid rgba(232,184,75,0.1);
  border-radius: 3px;
  padding: 1.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}
.warrior-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232,184,75,0.4);
}
.warrior-card:hover .warrior-glow {
  opacity: 1;
}

.warrior-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,184,75,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.warrior-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.warrior-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.warrior-era {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.w-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0.6rem;
}
.w-stat span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: var(--w);
  background: var(--crimson);
  border-radius: 2px;
  transition: width 1.2s ease;
}
.gold-fill {
  background: var(--gold);
}

.warrior-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
}

.warrior-status {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}
.status-active { background: rgba(76,175,80,0.15); color: #81c784; border: 1px solid rgba(76,175,80,0.3); }
.status-elim { background: rgba(192,57,43,0.15); color: #e57373; border: 1px solid rgba(192,57,43,0.3); text-decoration: line-through; }
.status-fav { background: rgba(232,184,75,0.15); color: var(--gold); border: 1px solid rgba(232,184,75,0.4); }

/* === VENUES === */
.venues-section {
  background: var(--dark-mid);
  border-top: 1px solid rgba(139,26,26,0.3);
}

.venues-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.venue-card {
  background: var(--dark-card2);
  border: 1px solid rgba(139,26,26,0.25);
  border-radius: 3px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.venue-card:hover {
  border-color: rgba(139,26,26,0.5);
  transform: translateY(-3px);
}

.venue-rating {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.venue-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.venue-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.venue-review {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-left: 2px solid rgba(139,26,26,0.5);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.venue-fight {
  font-size: 0.78rem;
  color: var(--gold-dark);
  background: rgba(232,184,75,0.06);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

/* === BRACKET === */
.bracket-section {
  background: var(--dark);
  border-top: 1px solid rgba(232,184,75,0.1);
}

.bracket {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.round-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.match {
  background: var(--dark-card);
  border: 1px solid rgba(232,184,75,0.15);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.match-done { border-color: rgba(76,175,80,0.2); }
.match-upcoming { border-color: rgba(232,184,75,0.25); }
.match-tbd { border-color: rgba(255,255,255,0.05); }

.fighter { flex: 1; text-align: center; color: var(--text); }
.fighter.won { color: #81c784; font-weight: 700; }
.fighter.lost { color: #555; text-decoration: line-through; }
.fighter.tbd { color: var(--text-muted); font-style: italic; }

.vs {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.vs.heart { font-size: 1.2rem; }

.final-match {
  border-color: rgba(232,184,75,0.4) !important;
  background: rgba(232,184,75,0.05);
  padding: 1.25rem;
  box-shadow: 0 0 30px rgba(232,184,75,0.15);
}

.greg-label {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 0.9rem;
  flex: 1;
  text-align: center;
}

/* === FOOTER === */
.footer {
  background: var(--dark-mid);
  border-top: 1px solid rgba(232,184,75,0.15);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.footer-small {
  font-size: 0.75rem !important;
  margin-top: 1rem !important;
}

.back-top {
  display: inline-block;
  margin-top: 2rem;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}
.back-top:hover { color: var(--gold-light); }

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .greg-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .greg-stats li {
    flex-direction: column;
    gap: 0.2rem;
  }
  .stat-label { min-width: unset; }
  .bracket { flex-direction: column; align-items: stretch; }
  .bracket-round { min-width: unset; }
}
