/* =======================
   BASIS & THEMA
   ======================= */

:root {
  --bg: #050814;
  --bg-soft: #0b1022;
  --bg-softer: #10162a;
  --accent: #18a0fb;
  --accent-soft: rgba(24, 160, 251, 0.2);
  --text: #f4f6fc;
  --muted: #9aa3c1;
  --danger: #ff3366;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Volledige hoogte voor footer-layout */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;                 /* belangrijk */
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #18213d 0, #050814 45%, #020308 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Pagina-structuur zodat footer onderaan blijft */
.page {
  min-height: 100vh;            /* <<< DIT IS DE FIX */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;               /* duwt footer naar onder */
}

footer {
  margin-top: auto;             /* footer kleeft aan onderzijde */
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* =======================
   NAVBAR + DROPDOWNS
   ======================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.93), rgba(5, 8, 20, 0.85), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 10%, #ffffff 0, #ffd86f 18%, #ff3366 50%, #050814 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.brand-text-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-link--active {
  color: var(--text);
  border-color: var(--accent);
}

/* CTA in navbar */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18a0fb, #00d4ff);
  color: #020308;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(0, 212, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-cta span:last-child {
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Burger */

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
}

/* Dropdown structuren */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item--dropdown .nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-item--dropdown .nav-link--dropdown:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-link-caret {
  font-size: 10px;
  opacity: 0.8;
}

/* Dropdown menu */

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 240px;
  border-radius: 14px;
  background: rgba(5, 8, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 60;
}

.nav-dropdown-link {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: rgba(24, 160, 251, 0.12);
  color: var(--text);
}

/* Tonen bij hover / focus */

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =======================
   LIVE BANNER
   ======================= */

.live-banner-top {
  margin-top: 4px;
}

.live-banner {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 255, 157, 0.4);
  background: radial-gradient(circle at left, rgba(0, 255, 157, 0.18), transparent 55%), rgba(2, 12, 6, 0.92);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7dfccb;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00ff9d;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.9);
}

.live-text {
  color: var(--muted);
  font-size: 12px;
}

.live-cta {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 157, 0.6);
  color: #7dfccb;
  background: rgba(1, 10, 6, 0.85);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* =======================
   SECTIONS & LAYOUT
   ======================= */

.section-main {
  padding: 18px 0;
}

.home-intro {
  padding-top: 14px;
}

.lower-grid-layout {
  display: grid;
  gap: 16px;
}

/* Kleine typografie helpers */

.page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.page-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
}

.page-label,
.card-caption {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* =======================
   KAARTEN & LIJSTEN
   ======================= */

.card {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 14px 14px 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
}

.pill-small {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

/* Event/overzichtslijsten */

.events-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  gap: 6px;
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.event-title {
  font-weight: 500;
}

.event-meta {
  font-size: 12px;
  color: var(--muted);
}

.event-link {
  font-size: 12px;
  color: var(--accent);
  display: inline-flex;
  margin-top: 4px;
}

/* =======================
   BUTTONS
   ======================= */

.btn-primary {
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #18a0fb, #00d4ff);
  color: #020308;
  box-shadow: 0 16px 36px rgba(0, 212, 255, 0.55);
}

.btn-secondary {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(2, 3, 8, 0.65);
  color: var(--muted);
}

.btn-ghost-sm {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 3, 8, 0.75);
  font-size: 11px;
  cursor: pointer;
}

/* Jouw advertentie-knop (home) */

.btn-advert {
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18a0fb, #00d4ff);
  color: #020308;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  box-shadow: 0 14px 32px rgba(0, 212, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.btn-advert .sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
  margin-top: 2px;
}

/* =======================
   AD ZONES & ADSENSE
   ======================= */

/* Generieke AdSense container */
.ad-slot {
  margin: 12px auto;
  max-width: 1200px;
}

/* Header-ad onder live banner, gewoon in de flow (niet sticky) */
.sticky-ad-header {
  position: static;
  background: #050814;
  padding: 4px 0;
}

/* Bovenaan horizontale banner */
.ad-slot-top-horizontal {
  margin-top: 8px;
}

/* In-content / in-feed advertentie */
.ad-slot-incontent {
  margin: 16px auto;
}

/* Linker verticale advertentieblok onder events */
.ad-slot-vertical-left {
  max-width: 320px;
}

/* Oude placeholder-zones (extra uitlegblokken, optioneel) */

.ad-horizontal,
.ad-infeed {
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(2, 3, 8, 0.75);
  text-align: center;
}

.ad-size {
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.8;
  display: block;
}

.ad-vertical {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 12px 8px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(2, 3, 8, 0.8);
  min-height: 220px;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.ad-placeholder {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 18px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

/* =======================
   ARTIKELS / OVERZICHTEN
   ======================= */

.ad-card-list {
  display: grid;
  gap: 10px;
}

.ad-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  gap: 10px;
}

.ad-card {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 10px 12px;
}

.ad-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ad-card-title {
  font-size: 14px;
  font-weight: 600;
}

.ad-card-meta {
  font-size: 11px;
  color: var(--muted);
}

.ad-card-body {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.ad-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Home/Artikel-kaarten met afbeelding + vlag (grote generieke variant – nog bruikbaar elders) */

.home-article-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-article-image {
  border-radius: 14px;
  background: radial-gradient(circle at 10% 0, rgba(24, 160, 251, 0.75), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(255, 51, 102, 0.75), transparent 55%),
              #040715;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 6px;
}

.home-article-flag {
  display: flex;
  justify-content: flex-start;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Nieuwe compacte artikelvariant met kleine foto links */

.home-article-card--compact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Thumbnail links van de tekst */
.home-article-media-thumb {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 6px;
  background: #1c2230;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ccd3e6;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
}

/* Algemene contentcontainer voor artikelen */
.home-article-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

/* Header boven titel met vlag + meta */
.home-article-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.article-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.article-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.article-title a {
  color: var(--text);
}

.article-title a:hover {
  text-decoration: underline;
}

.article-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Kleinere typografie binnen compacte kaarten */
.home-article-card--compact .article-title {
  font-size: 15px;
  margin: 0 0 4px;
}

.home-article-card--compact .article-excerpt {
  font-size: 13px;
  line-height: 1.4;
}

/* =======================
   SEARCH & FILTERS
   ======================= */

.search-bar {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.search-bar--advanced {
  gap: 10px;
}

.search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 3, 8, 0.8);
  color: var(--text);
  font-size: 13px;
  padding: 7px 11px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 3, 8, 0.9);
  color: var(--text);
  font-size: 13px;
  padding: 7px 11px;
}

.search-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =======================
   FORMULIEREN
   ======================= */

.form-card {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 18px 20px 16px;
  margin-bottom: 18px;
  max-width: 900px;
}

.form-card--compact {
  font-size: 12px;
}

.form-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.form-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.form-section {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}

.form-section-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.form-grid {
  display: grid;
  gap: 8px 14px;
}

.form-grid--2cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
}

.form-label .required {
  color: var(--danger);
  font-weight: 600;
}

.form-label small {
  font-weight: 400;
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(2, 3, 8, 0.85);
  color: var(--text);
  font-size: 12px;
  padding: 6px 9px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
}

.form-checkbox-row label {
  cursor: pointer;
}

.form-helper {
  font-size: 11px;
  color: var(--muted);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Pill checkbox (land/positie, enz.) */

.pill-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(2, 3, 8, 0.75);
}

.pill-checkbox input {
  accent-color: var(--accent);
}

/* Kleine vlag bij land */

.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

/* =======================
   FOOTER
   ======================= */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, #141a33 0, #050814 55%, #020308 100%);
  padding-top: 18px;
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal {
  font-size: 11px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.footer-social-link {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.footer-ad {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 10px;
  text-align: center;
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 900px) {
  .navbar-inner {
    height: 58px;
  }

  .nav-links {
    display: none; /* (Later kan hier een mobiel menu komen) */
  }

  .nav-burger {
    display: block;
  }

  .lower-grid-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ad-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid--2cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-article-card--compact {
    gap: 8px;
  }

  .home-article-media-thumb {
    flex: 0 0 60px;
    height: 50px;
    font-size: 9px;
  }
}
