/* ── Event Pages – Shared Stylesheet ── */

/* Tokens (inherit site palette) */
:root {
  --bg: #0b0f19;
  --bg-soft: #0f1526;
  --card: #111827;
  --card-hover: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #e11d48;
  --brand-2: #22d3ee;
  --ring: #f59e0b;
  --ok: #10b981;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }

/* Layout */
.container { width: min(1100px, 92%); margin-inline: auto }

/* ── Back Nav ── */
.back-nav {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(11, 15, 25, .9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.back-nav a {
  color: var(--brand-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.back-nav a:hover { color: var(--brand) }
.back-nav .nav-links { display: flex; align-items: center; justify-content: space-between }
.back-nav .nav-right { display: flex; gap: 14px }
.back-nav .nav-right a { color: var(--text); font-size: 13px }

/* ── Hero Banner ── */
.event-hero {
  position: relative;
  padding: 60px 0 50px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(225, 29, 72, .12) 0%, rgba(11, 15, 25, 1) 40%, rgba(34, 211, 238, .08) 100%);
}
.event-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(225, 29, 72, .06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(34, 211, 238, .05) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) }
  50% { transform: translate(-2%, 2%) }
}
.event-hero .container { position: relative; z-index: 1 }
.event-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(225, 29, 72, .4);
  background: rgba(225, 29, 72, .12);
  color: #fca5a5;
}
.event-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.event-hero h1 span { color: var(--brand) }
.event-hero .tagline {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ── Quick Info Pills ── */
.quick-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  transition: border-color .2s, transform .2s;
}
.quick-pill:hover { border-color: rgba(34, 211, 238, .3); transform: translateY(-1px) }
.quick-pill .pill-icon { font-size: 18px }
.quick-pill .pill-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px }
.quick-pill .pill-value { font-weight: 600 }

/* ── Section Titles ── */
.section-heading {
  padding: 40px 0 20px;
}
.section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent);
}
.section-heading p { color: var(--muted); font-size: 14px; margin-top: 6px }
.section-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tag-confirmed { background: rgba(16, 185, 129, .15); color: var(--ok); border: 1px solid rgba(16, 185, 129, .3) }
.tag-rumoured { background: rgba(245, 158, 11, .15); color: var(--ring); border: 1px solid rgba(245, 158, 11, .3) }
.tag-result { background: rgba(34, 211, 238, .12); color: var(--brand-2); border: 1px solid rgba(34, 211, 238, .3) }

/* ── Match Table (Row-wise) ── */
.match-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
}
.match-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.match-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--bg-soft);
  border-bottom: 2px solid rgba(34, 211, 238, .2);
  white-space: nowrap;
}
.match-table thead th:first-child { border-radius: 12px 0 0 0 }
.match-table thead th:last-child { border-radius: 0 12px 0 0 }
.match-table tbody tr {
  transition: background .2s;
}
.match-table tbody tr:hover { background: rgba(255, 255, 255, .03) }
.match-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  vertical-align: top;
}
.match-table tbody tr:last-child td { border-bottom: none }
.match-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px }
.match-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0 }
.match-table .match-num {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  width: 40px;
}
.match-table .match-type {
  font-weight: 600;
  color: var(--brand-2);
  white-space: nowrap;
}
.match-table .match-stipulation {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.match-table .participants { font-weight: 500 }
.match-table .participants .vs { color: var(--brand); font-weight: 700; margin: 0 4px }
.match-table .participants .champion { font-size: 11px; color: var(--ring); font-weight: 600 }
.match-table .winner-cell { color: var(--ok); font-weight: 600 }
.match-table .status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.status-confirmed { background: rgba(16, 185, 129, .15); color: var(--ok) }
.status-rumoured { background: rgba(245, 158, 11, .15); color: var(--ring) }

/* Mobile match cards (replaces table on small screens) */
.match-cards-mobile { display: none }
.match-card-m {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color .2s, transform .2s;
}
.match-card-m:hover { border-color: rgba(34, 211, 238, .3); transform: translateY(-2px) }
.match-card-m .mc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px }
.match-card-m .mc-type { font-weight: 600; color: var(--brand-2); font-size: 14px }
.match-card-m .mc-participants { font-size: 15px; font-weight: 500; margin-bottom: 6px }
.match-card-m .mc-stipulation { font-size: 12px; color: var(--muted); margin-bottom: 6px }
.match-card-m .mc-winner { font-size: 13px; color: var(--ok); font-weight: 600 }

@media (max-width: 700px) {
  .match-table-wrap { display: none }
  .match-cards-mobile { display: block }
}

/* ── Info Grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 10px 0 40px;
}
.info-card {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.info-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .3) }
.info-card h3 {
  font-size: 15px;
  color: var(--brand-2);
  margin-bottom: 10px;
  font-weight: 700;
}
.info-card p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.info-card a { color: var(--brand-2); font-weight: 600; transition: color .2s }
.info-card a:hover { color: #fff; text-decoration: underline }
.info-card .info-highlight {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Social Share ── */
.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 0;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3) }
.share-btn svg { width: 18px; height: 18px; fill: currentColor }
.share-whatsapp { background: #25d366 }
.share-twitter { background: #1d9bf0 }
.share-facebook { background: #1877f2 }
.share-telegram { background: #0088cc }
.share-copy { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15) }
.share-copy:hover { background: rgba(255, 255, 255, .18) }

/* ── FAQ Accordion ── */
.faq-section { padding: 10px 0 50px }
.faq-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--card);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(34, 211, 238, .2) }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--brand-2);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question::after { content: '−' }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ── */
.event-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 30px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0), rgba(11, 15, 25, .95));
}
.event-footer p { margin: 6px 0 }
.event-footer a { color: var(--brand-2); transition: color .2s }
.event-footer a:hover { text-decoration: underline }
.event-footer small { color: #6b7280; font-size: 12px }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .event-hero { padding: 40px 0 35px }
  .quick-pill { padding: 8px 14px; font-size: 13px }
  .info-grid { grid-template-columns: 1fr }
  .share-btn { padding: 9px 14px; font-size: 12px }
  .faq-question { font-size: 14px; padding: 14px 16px }
  .back-nav .nav-right { gap: 10px }
  .back-nav .nav-right a { font-size: 12px }
}
