/* ===============================================
   Handball Cup Oirsbeek (HCO) – Shared stylesheet
   =============================================== */
:root {
  --color-bg: #232323;
  --color-accent: #1da3ff;
  --color-surface: #ffffff;
  --color-text: #ffffff;
  --color-muted: #b0b0b0;
  --color-panel: #2a2a2a;
  --radius: 14px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  --container: 1200px;
  --gutter: 16px;
  --ok: #2ecc71;
  --err: #e74c3c;
}
/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", sans-serif;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 36px 0;
}
.panel {
  background: var(--color-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 24px 32px;
}
.eyebrow {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-accent);
  font-weight: 700;
}
.divider {
  height: 4px;
  width: 72px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 8px 0 16px;
}

/* Topbar / Nav */
.topbar {
  background: linear-gradient(
    180deg,
    rgba(29, 163, 255, 0.88),
    rgba(35, 35, 35, 0.9)
  );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.topbar .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.brand img {
  width: 56px;
  height: auto;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
}
.nav a {
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
}
.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

/* Hero (shared) */
.hero {
  background: linear-gradient(
      180deg,
      rgba(29, 165, 255, 0.78),
      rgba(35, 35, 35, 0.8)
    ),
    /* url("https://placehold.co/1600x900") center/cover no-repeat; */
    url("/assets/grass.jpg") center/cover no-repeat;
  text-align: center;
  padding: 88px 0 56px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero .brand img {
  width: 92px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--color-muted);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin: 4px;
  box-shadow: 0 0 8px rgba(29, 163, 255, 0.4);
}
.cta-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.cta {
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 0 12px rgba(29, 163, 255, 0.6), var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.cta.primary {
  background: var(--color-accent);
  color: #111;
}
.cta.secondary {
  background: var(--color-panel);
  color: #fff;
  border: 1px solid #3d3d3d;
}
.cta:hover {
  box-shadow: 0 0 18px rgba(29, 163, 255, 0.85), var(--shadow);
  transform: translateY(-2px);
}
.countdown {
  margin-top: 22px;
  font-weight: 700;
  color: var(--color-accent);
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(29, 163, 255, 0.6);
}

/* Highlights (Home) */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.highlight .emoji {
  font-size: 28px;
  margin-top: 2px;
}
.highlight h3 {
  text-transform: uppercase;
  margin: 0;
}
.highlight p {
  color: var(--color-muted);
  margin: 0.2rem 0 0;
}

/* Nieuws grid (Home + Sponsors cards look) */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.news-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  border: 1px solid #2f2f2f;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-item img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  filter: grayscale(1);
  transition: filter 0.2s;
}
.news-item:hover img {
  filter: grayscale(0.2);
}
.news-item:hover {
  box-shadow: 0 0 12px rgba(29, 163, 255, 0.6), var(--shadow);
  transform: translateY(-3px);
}
.news-item .content {
  padding: 14px;
}
.news-item h3 {
  text-transform: uppercase;
}
.news-meta {
  color: #8a8a8a;
  font-size: 0.9rem;
}
.more-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--color-accent);
}

/* Praktische info (Home) */
.practical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.map {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 300px;
  filter: grayscale(1);
}
.practical-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.practical-list li {
  padding: 10px 0;
  border-bottom: 1px solid #3a3a3a;
}
.practical-list strong {
  color: #fff;
}

/* Sponsors (Home) */
.sponsor-band {
  background: linear-gradient(
    90deg,
    rgba(29, 163, 255, 0.15),
    rgba(29, 163, 255, 0.04)
  );
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding: 32px 0;
}
.sponsor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sponsor-cta {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #111;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(29, 163, 255, 0.6);
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sponsor-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  border: 1px solid #2f2f2f;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sponsor-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  filter: grayscale(1);
  transition: filter 0.2s;
}
.sponsor-card:hover img {
  filter: grayscale(0.2);
}
.sponsor-card:hover {
  box-shadow: 0 0 12px rgba(29, 163, 255, 0.6), var(--shadow);
  transform: translateY(-2px);
}
.sponsor-card .content {
  padding: 14px;
}
.sponsor-card h3 {
  text-transform: uppercase;
  font-size: 1rem;
}

/* Schedule (Programma/Uitslagen/Standen) */
.hint {
  color: var(--color-muted);
  font-size: 0.9rem;
}
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.filters .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filters label {
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}
select,
input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  background: #1b1b1b;
  color: #fff;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  border: 1px solid #3d3d3d;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 0 10px rgba(29, 163, 255, 0.35);
  cursor: pointer;
}
.btn.primary {
  background: var(--color-accent);
  color: #111;
  border-color: transparent;
}
.btn:hover {
  box-shadow: 0 0 16px rgba(29, 163, 255, 0.6);
}
.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(29, 163, 255, 0.35);
}
.badge.live {
  background: rgba(29, 163, 255, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.badge.upcoming {
  background: #1b1b1b;
}
.badge.done {
  background: #111;
}
.tablewrap {
  margin-top: 16px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
thead th {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #bdbdbd;
  text-align: left;
  padding: 6px 10px;
}
tbody tr {
  background: #101010;
  border: 1px solid #2f2f2f;
}
tbody td {
  padding: 12px 10px;
  vertical-align: middle;
}
.col-time,
.col-field {
  white-space: nowrap;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-live .status-dot {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(29, 163, 255, 0.9);
}
.status-upcoming .status-dot {
  background: #888;
}
.status-done .status-dot {
  background: #4caf50;
}

/* Vrijwilligersportal */
.logo-top {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 80px;
  height: auto;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab,
.tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--color-panel);
  border: 1px solid #3a3a3a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.tab.active,
.tab-btn.active {
  background: var(--color-accent);
  color: #111;
  border-color: transparent;
}
.day-panel,
.day-content {
  display: none;
}
.day-panel.active,
.day-content.active {
  display: block;
}
.task-block {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.task-block h3 {
  margin: 0 0 8px;
}
.time-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  margin-top: 6px;
}
.badge.green {
  background: var(--ok);
  color: #111;
}
.badge.red {
  background: var(--err);
  color: #fff;
}

/* Inschrijven / Contact helpers */
textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  background: #1b1b1b;
  color: #fff;
  resize: vertical;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.snackbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  background: #2ecc71;
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: none;
}
.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Accordions (Reglementen) */
.accordion {
  display: grid;
  gap: 12px;
}
.acc-item {
  background: var(--color-panel);
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  overflow: hidden;
}
.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.acc-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.acc-icon {
  font-weight: 900;
  opacity: 0.9;
}
.acc-body {
  display: none;
  padding: 0 16px 16px;
}
.acc-item.open .acc-body {
  display: block;
}
.kv {
  margin: 0;
  padding-left: 18px;
}
.kv li {
  margin: 0.25rem 0;
}
.badgelist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
.bd {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}
.downloads a {
  display: inline-block;
  margin-right: 10px;
  margin-top: 8px;
}

/* Poules */
.poule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.poule-card {
  background: var(--color-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.poule-card h3 {
  margin: 0 0 6px;
}
.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-list li {
  padding: 8px 0;
  border-bottom: 1px solid #3a3a3a;
}
.team-list li:last-child {
  border-bottom: 0;
}
.poule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Over / Historie (timeline + gallery) */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(29, 163, 255, 0.9),
    rgba(29, 163, 255, 0.2)
  );
  border-radius: 2px;
}
.tl-item {
  position: relative;
  margin: 0 0 18px 0;
  list-style: none;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -2px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1da3ff;
  box-shadow: 0 0 10px rgba(29, 163, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.tl-year {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #1da3ff;
  letter-spacing: 0.3px;
}
.tl-card {
  background: #111;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  margin-top: 6px;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.gallery img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  filter: grayscale(1);
}

/* Footer */
footer {
  background: #111;
  color: #e7e7e7;
  padding: 28px 0;
  text-align: center;
  border-top: 4px solid var(--color-accent);
}
footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.socials {
  margin-top: 12px;
}
.socials a {
  margin: 0 8px;
  display: inline-block;
  color: var(--color-accent);
}

/* Focus state (a11y) */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive */
@media (min-width: 768px) {
  .cta-wrap {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
  }
  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .practical {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .map {
    height: 360px;
  }
  .sponsor-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
@media (min-width: 1000px) {
  .grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Print (programma/uitslagen leesbaar, zuinig inkt) */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .topbar,
  .hero,
  footer,
  .cta-wrap,
  .tabs,
  .actions,
  .sponsor-band {
    display: none !important;
  }
  .panel {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
  }
  .eyebrow {
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .tablewrap {
    overflow: visible;
  }
  .news-item img,
  .gallery img {
    filter: none;
  }
}
