/* ===================================================
   MAT MASTERS FIGHTING CHAMPIONSHIP (MMFC)
   Theme: Black • Red • Gold
   =================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* Containers / Sections */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}
.section { padding: 80px 0; }
.section-dark { background: #020b10; }

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid rgba(227,27,35,0.35);
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Black Ops One', sans-serif;
  font-size: 22px; letter-spacing: 1px;
}
.brand .logo { height: 64px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.primary-nav a {
  color: #eee;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}
.primary-nav a:hover { color: #fff; }
.btn-ticket {
  background: #e31b23;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 25px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.btn-ticket:hover { background: #b31217; }

.lang {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
}

/* Burger (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}
.burger span::before { top: -8px; }
.burger span::after { bottom: -8px; }

@media (max-width: 900px) {
  .burger { display: block; }
  .primary-nav {
    position: absolute;
    top: 72px; right: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: 220px;
    transform: translateX(100%);
    transition: 0.3s;
  }
  .site-header.open .primary-nav {
    transform: translateX(0);
  }
}

/* ===================================================
   DROPDOWN MENU (Rankings)
   =================================================== */
.primary-nav .has-sub { position: relative; }
.primary-nav .with-caret {
  display: inline-flex; align-items: center; gap: 6px;
}
.primary-nav .caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .8;
}
.primary-nav .subnav {
  position: absolute;
  top: 110%; left: 0;
  min-width: 180px;
  background: rgba(0,0,0,.96);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px;
  display: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.primary-nav .subnav a {
  display: block;
  padding: 8px 10px;
  color: #eee;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}
.primary-nav .subnav a:hover { background: rgba(255,255,255,.08); }
@media (pointer:fine) {
  .primary-nav .has-sub:hover .subnav { display: block; }
}
.primary-nav .has-sub:focus-within .subnav { display: block; }
@media (max-width: 900px) {
  .primary-nav .has-sub { width: 100%; }
  .primary-nav .subnav {
    position: static;
    display: none;
    margin-top: 6px;
  }
  .site-header.open .primary-nav .has-sub:focus-within .subnav,
  .site-header.open .primary-nav .has-sub.open .subnav { display: block; }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: #000;
  color: #fff;
  text-align: center;
}
.hero h1 {
  font-family: 'Black Ops One', sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.1;
  text-transform: uppercase;
}
.hero h2 {
  font-size: 20px;
  color: #b08a3c;
  margin-top: 10px;
}

/* ===================================================
   CARDS + GRID
   =================================================== */
.card {
  background: #101010;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  transition: 0.2s;
}
.btn-primary, .btn-ticket, .btn-danger {
  background: #e31b23;
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(227,27,35,.35);
}
.btn-primary:hover,
.btn-ticket:hover,
.btn-danger:hover { background: #b31217; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-small {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ===================================================
   NEWS / EVENT CARDS
   =================================================== */
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.card-news {
  border: 2px solid #b08a3c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  text-decoration: none;
  background: #fff;
  color: #111;
  transition: transform .3s, box-shadow .3s;
}
.card-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}
.card-news img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 2px solid #b08a3c;
}
.card-news .body { padding: 18px 18px 22px; }
.card-news h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-family: 'Black Ops One', sans-serif;
  color: #000;
}
.card-news p { color: #444; margin: 0; }

/* ===================================================
   FORMS (Admin)
   =================================================== */
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form input,
.form textarea {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
}
.form input[type="file"] { background: none; border: none; }
.muted { color: #999; font-size: 14px; }

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1,h2,h3 {
  font-family: 'Black Ops One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eyebrow {
  color: #b08a3c;
  font-size: 20px;
  margin-bottom: 8px;
}

/* ===================================================
   ADMIN BAR
   =================================================== */
.admin-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(16,10,12,.9);
  border-bottom: 1px solid rgba(227,27,35,.35);
  backdrop-filter: blur(8px);
}
.admin-bar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.admin-bar__title {
  font-family: "Black Ops One", system-ui;
  letter-spacing: .5px;
}
.admin-bar__nav {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.admin-bar__nav a {
  text-decoration: none;
  color: #e6e6e6;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  transition: 0.2s;
}
.admin-bar__nav a:hover {
  color: #fff;
  border-color: #fff;
}
.admin-bar__nav a.pill {
  background: #e31b23;
  color: #fff;
  border-color: transparent;
  font-weight: 800;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #000;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-grid .footer-left p { line-height: 1.3; }
.footer-grid .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  margin-left: 10px;
  transition: 0.25s;
}
.footer-grid .social a:hover {
  background: #e31b23;
  transform: scale(1.1);
}
.footer-grid .social a img {
  filter: drop-shadow(0 0 3px rgba(176,138,60,0.6));
}

/* ===================================================
   MEDIA QUERIES
   =================================================== */
@media (max-width:700px){
  .nav .brand .logo{height:48px;}
  .admin-bar__wrap{flex-direction:column;align-items:flex-start;gap:8px;}
  .footer-grid{flex-direction:column;align-items:center;text-align:center;}
}

/* ===== News archive (below top 9 grid) ===== */

.news-archive {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-archive .archive-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.news-archive .archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-archive .archive-item {
  margin: 4px 0;
}

.news-archive .archive-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.news-archive .archive-item a:hover .title {
  text-decoration: underline;
}

.news-archive .archive-item .thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

.news-archive .archive-item .title {
  font-size: 0.9rem;
}

/* ===== BRAND COLOURS ===== */
:root {
  --mmfc-gold: #d4af37;
  --mmfc-red: #e50914;
}

/* ===== TOP NAV: BUTTON-STYLE LINKS ===== */
.primary-nav a {
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:first-child {
  margin-left: 0;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(212, 175, 55, 0.18); /* gold tint */
  border-color: rgba(212, 175, 55, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Make the ticket button stand out more */
.primary-nav .btn-ticket {
  background: var(--mmfc-red);
  border-color: var(--mmfc-red);
  color: #ffffff;
}

.primary-nav .btn-ticket:hover,
.primary-nav .btn-ticket:focus-visible {
  background: #ff3340;
  border-color: #ff3340;
}

/* ===== GOLD HEADINGS & MORE SPACE BETWEEN DISCIPLINES ===== */

main h1,
main h2,
main h3,
main h4,
main h5 {
  color: var(--mmfc-gold);
}

/* Extra breathing room between each rules card */
main .card.section {
  margin-bottom: 3rem;
}

/* Optional: give the main title a bit more space below */
main h1 {
  margin-bottom: 1.5rem;
}

/* ===== EBI DETAILS BUTTON STYLE ===== */

details.ebi-details {
  margin-top: 1rem;
}

/* Make the summary look like a small gold button */
details.ebi-details > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.9);
  background: rgba(212, 175, 55, 0.12);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--mmfc-gold);
}

/* Remove the default disclosure triangle */
details.ebi-details > summary::-webkit-details-marker {
  display: none;
}

/* Add a custom arrow */
details.ebi-details > summary::after {
  content: "▾";
  font-size: 0.7rem;
  transform: translateY(1px);
}

/* Rotate arrow when open */
details.ebi-details[open] > summary::after {
  transform: rotate(180deg) translateY(-1px);
}

/* Content inside the EBI block */
details.ebi-details[open] {
  padding: 0.75rem 0 0.25rem;
}

details.ebi-details h4,
details.ebi-details h5 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

details.ebi-details p,
details.ebi-details ul,
details.ebi-details ol {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
/* ===== QUICK LINKS UNDER PAGE INTRO ===== */

.rules-nav {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rules-nav a {
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.9);
  color: var(--mmfc-gold);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rules-nav a:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--mmfc-gold);
  transform: translateY(-1px);
}

/* ===== PARAGRAPH LINES (SEPARATORS) ===== */

.card.section p {
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card.section ul,
.card.section ol {
  margin-bottom: 1.2rem;
}

.card.section h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

/* ===== RANKINGS – SIMPLE ROW STYLE ===== */

.ranking-group {
  margin-top: 1.8rem;
}

.ranking-group h3 {
  margin-bottom: 0.4rem;
}

.rank-rows {
  margin-top: 0.6rem;
}

.rank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(227, 27, 35, 0.12);
  border-color: rgba(227, 27, 35, 0.6);
  transform: translateY(-1px);
}

.rank-num {
  font-weight: 800;
  color: var(--mmfc-gold);
  min-width: 18px;
}

.rank-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-name {
  font-weight: 700;
}

.rank-gym {
  font-size: 0.8rem;
  color: #aaa;
}

.rank-record {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.9rem;
}
