/* ===========================
   VGF - Video Game Festival
   Global Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Exo+2:wght@300;400;600;700;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:      #FF8C00;
  --gold:        #FFD700;
  --orange-dark: #cc5500;
  --blue-deep:   #0d1b4b;
  --blue-mid:    #1a3a8c;
  --blue-glow:   #3a6bff;
  --green-neon:  #39ff14;
  --red-bright:  #ff2244;
  --yellow:      #ffe600;
  --purple:      #b94fff;
  --bg:          #080810;
  --bg-card:     #0f1020;
  --bg-card2:    #151530;
  --white:       #ffffff;
  --text-muted:  #9999bb;
  --border:      rgba(255, 140, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
  background: rgba(8, 8, 16, 0.95);
  border-bottom: 2px solid var(--orange);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  padding-top: 40px;
  height: 150px;
  width: 150px;
  object-fit: contain;
  transition: opacity 0.3s;
}

.nav-logo:hover img {
  opacity: 0.95;
}

.nav-logo-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: var(--gold);
  line-height: 1.4;
}

.nav-logo-text span {
  display: block;
  font-size: 0.55rem;
  color: var(--blue-glow);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-color: var(--orange);
  background: rgba(255,140,0,0.1);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Page Header Banner ---- */
.page-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, #080818 0%, #0d1535 100%);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,107,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ---- Hero (Home) ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #0d1b4b 0%, #080810 65%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,107,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,107,255,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1a3a8c, transparent);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #cc5500, transparent);
  bottom: -80px; right: -80px;
}

.hero-logo {
  width: clamp(360px, 80vw, 500px);
  animation: floatLogo 4s ease-in-out infinite;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---- Hero Slideshow ---- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow img.active {
  opacity: 0.18;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 5vw, 1.5rem);
  background: var(--blue-glow);
  /* background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 50%, var(--orange) 100%); */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 1.5vw, 0.8rem);
  color: var(--blue-glow);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ---- Next Event Banner ---- */
.next-event-section {
  padding: 4rem 2rem;
  background: #090914;
}

.next-event-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.next-event-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--orange);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.next-event-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.next-event-img-wrap:hover img {
  transform: scale(1.03);
}

.next-event-info h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--gold);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.event-date-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: var(--white);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.goals-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.goals-list li .goal-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.goal-beat  { color: var(--green-neon); }
.goal-raise { color: var(--yellow); }

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.05em;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ---- Section Titles ---- */
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.85rem, 2.5vw, 1.2rem);
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 0.5rem auto 2.5rem;
  border-radius: 2px;
}

/* ---- Info Cards ---- */
.cards-section {
  padding: 4rem 2rem;
  background: var(--bg);
}

.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Content Pages ---- */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ---- Rules Page ---- */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rules-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s;
}

.rules-list li:hover {
  border-color: var(--orange);
}

.rule-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--orange);
  min-width: 36px;
  text-align: center;
  padding-top: 3px;
}

.rule-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white);
}

.rule-text strong {
  color: var(--gold);
}

.rules-category-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--blue-glow);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(58,107,255,0.3);
  letter-spacing: 0.08em;
}

/* ---- Beats List Page ---- */
.beats-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.beats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.beats-table thead {
  background: linear-gradient(135deg, var(--orange-dark), var(--blue-deep));
}

.beats-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--gold);
  padding: 1rem 1.25rem;
  text-align: left;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.beats-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,140,0,0.1);
}

.beats-table tbody tr:last-child td { border-bottom: none; }

.beats-table tbody tr:hover td {
  background: rgba(255,140,0,0.05);
}

.beat-status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.beat-status.beaten {
  background: rgba(57,255,20,0.15);
  color: var(--green-neon);
  border: 1px solid var(--green-neon);
}

.beat-status.in-progress {
  background: rgba(255,230,0,0.15);
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.beat-status.available {
  background: rgba(58,107,255,0.15);
  color: var(--blue-glow);
  border: 1px solid var(--blue-glow);
}

.beat-year {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ---- Player Profiles ---- */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
}

.player-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
}

.player-avatar {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-deep), #0a0a20);
  font-size: 4rem;
  border-bottom: 2px solid var(--border);
}

.player-info {
  padding: 1.25rem;
}

.player-info h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.player-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.player-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-val {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--orange);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

.player-fave {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.player-fave span {
  color: var(--blue-glow);
}

/* ---- Past Events ---- */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.past-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.past-event-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.past-event-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}

.past-event-banner-2024 { background: linear-gradient(135deg, #1a0a3b, #0d1b4b); }
.past-event-banner-2023 { background: linear-gradient(135deg, #0a2b1a, #0d3b1b); }
.past-event-banner-2022 { background: linear-gradient(135deg, #2b0a0a, #3b1a0a); }

.past-event-body {
  padding: 1.25rem;
}

.past-event-body h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.past-event-date {
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.past-event-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.past-event-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.past-event-stat strong {
  color: var(--white);
}

.past-event-highlight {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255,140,0,0.07);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Footer ---- */
footer {
  background: #05050e;
  border-top: 2px solid var(--border);
  text-align: center;
  padding: 2.5rem 1rem;
}

.footer-logo {
  height: 60px;
  opacity: 0.85;
  margin-bottom: 1rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

footer a {
  color: var(--orange);
  text-decoration: none;
}

/* ---- Pixel Accent Line ---- */
.pixel-line {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0px,
    var(--orange) 8px,
    var(--gold) 8px,
    var(--gold) 16px,
    var(--blue-glow) 16px,
    var(--blue-glow) 24px,
    var(--green-neon) 24px,
    var(--green-neon) 32px,
    transparent 32px,
    transparent 40px
  );
  opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(8,8,16,0.98);
    padding: 1rem;
    border-bottom: 2px solid var(--orange);
    gap: 0.5rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 0.75rem 1rem; font-size: 0.55rem; }

  .next-event-inner { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr; }
  .past-events-grid { grid-template-columns: 1fr; }
}