/* ============================================================
   Wigvision Bop Contest — stylesheet (dark only)
   ============================================================ */

/* --- Display typeface (header + large headings only) -------- */
@font-face {
  font-family: "Eurotype 2016";
  src: url("../fonts/eurotype2016.woff2") format("woff2"); /* Updated file and format */
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------ */
:root {
  --neon-pink:   #ff90fe;
  --neon-cyan:   #76ffff;
  --neon-yellow: #ffff89;

  --bg: #15151d;
  --surface: #1f1f2b;
  --text: #f6f6fa;
  --muted: #a6a6bc;
  --border: #33334a;

  --accent:   var(--neon-pink);
  --accent-2: var(--neon-cyan);
  --accent-3: var(--neon-yellow);

  --button-text-on-accent: #14141a;

  --display: "Eurotype 2016", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 960px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

/* --- Selection & focus ------------------------------------- */
::selection {
  background: var(--neon-yellow);
  color: #15151d;
}

:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

/* --- Ident stripe ------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 20;
  background: linear-gradient(
    90deg,
    var(--neon-pink)   0       33.333%,
    var(--neon-cyan)   33.333% 66.666%,
    var(--neon-yellow) 66.666% 100%
  );
}

/* --- Header ------------------------------------------------ */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 120ms;
}

.site-nav a:hover { color: var(--accent-2); }

/* --- Layout ------------------------------------------------ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* --- Home hero --------------------------------------------- */
.hero {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero p {
  max-width: 34rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* --- Button ------------------------------------------------ */
.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 120ms, color 120ms;
}

.button:hover {
  background: var(--accent);
  color: var(--button-text-on-accent);
}

/* --- Page headings ----------------------------------------- */
main h2 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.page-intro {
  margin-top: 0;
  color: var(--muted);
}

/* --- Current edition box ----------------------------------- */
.current-edition {
  margin-top: 3rem;
  padding: 2rem 2rem 2rem 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--accent-3);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--accent-3);
  vertical-align: 0.1em;
}

.current-edition h2 {
  margin: 0 0 0.75rem;
}

.host-line {
  margin: 0 0 0.15rem;
}

.status-line {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.current-edition .button {
  margin-top: 0;
}

/* --- Winners table ----------------------------------------- */
.winners-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.winners-table th {
  padding: 0 0.75rem 0.75rem 0;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
}

.winners-table td {
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background-color 120ms;
}

.winners-table td:first-child {
  width: 4.5rem;
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.05rem;
  color: var(--accent);
}

.winners-table td:nth-child(2) {
  white-space: nowrap;
}

.winners-table tbody tr:hover td {
  background: var(--surface);
}

/* --- Flags ------------------------------------------------- */
.flag {
  display: inline-block;
  width: 1.6em;
  height: 1em;
  object-fit: contain;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  border: 0;
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* --- Small screens ----------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav { gap: 1rem; }
  .winners-table { font-size: 0.85rem; }
  .winners-table td:first-child { width: 3rem; }
}

/* --- Video embed ------------------------------------------- */
.video-embed {
  margin-top: 3rem;
}

.video-frame {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* --- Editions Grid ----------------------------------------- */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.edition-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 120ms;
}

.edition-card:hover {
  border-color: var(--accent);
}

.edition-card h3 {
  margin: 0 0 0.75rem 0;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.edition-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.edition-card h3 a:hover {
  color: var(--accent);
}

.edition-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.edition-details span {
  display: flex;
  align-items: flex-start; 
  gap: 0.4rem;
}

.edition-details .participants {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-top: 0.25rem;
}

.edition-winner {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.edition-winner strong {
  color: var(--text);
}

.edition-winner .song-title {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Ensures flags in flex containers don't squish */
.flag {
  flex-shrink: 0;
}

/* --- Footer Socials ---------------------------------------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Style the links and the discord text container */
.social-links a,
.social-links .static-social {
  display: flex;
  align-items: center;
  gap: 0.5rem; 
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms;
}

.social-links a:hover {
  color: var(--accent-2); 
}

.social-links .divider {
  color: var(--border);
}

/* Style for Discord and WhatsApp (no links) */
.social-links .static-social {
  color: var(--muted);
  cursor: help; /* Shows a question mark cursor since they can hover for info */
}

.social-links .static-social svg {
  color: var(--text);
}