/* =====================================================
   Sticky footer - Avanti Lissewege
===================================================== */
:root {
  --avanti-bg-dur: 100s; /* pas gerust aan */
  --avanti-bg-delay: 0s; /* wordt door JS gezet */
}

html,
body {
  height: 100%;
  margin: 0;
}

body.avanti-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.avanti-box {
  max-width: 1300px;
  margin: 20px auto;
  border-radius: 18px;
  padding: 25px;
  background: #fff;
  border: 3px dashed rgba(55, 178, 77, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Alles boven de footer */
.page-content {
  flex: 1 0 auto;
}

/* Footer blijft onderaan */
.footer-avanti {
  flex-shrink: 0;
}

/* =====================================================
   Animated premium background (rustig + levendig)
   - gebruikt ::before (gradient) + ::after (noise)
===================================================== */

html {
  background: #f3f6f2;
} /* fallback */

body {
  font-size: 13px !important;
  padding-top: 70px;

  /* nodig voor lagen achter de content */
  position: relative;
  isolation: isolate;

  /* haal eventuele oude background weg */
  background: none;
}

/* Gradient layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image:
    radial-gradient(
      1200px 800px at 18% 8%,
      rgba(255, 255, 255, 0.55),
      transparent 60%
    ),
    radial-gradient(
      900px 650px at 85% 14%,
      rgba(0, 255, 130, 0.28),
      transparent 55%
    ),
    radial-gradient(
      1200px 900px at 50% 120%,
      rgba(0, 0, 0, 0.16),
      transparent 55%
    ),
    linear-gradient(
      90deg,
      rgba(0, 236, 92, 0.94) 0%,
      rgba(255, 236, 64, 0.97) 33%,
      rgba(255, 236, 64, 0.97) 66%,
      rgba(0, 236, 92, 0.94) 100%
    );

  /* belangrijk: groter maken zodat “movement” zichtbaar is */
  background-size:
    180% 180%,
    200% 200%,
    200% 200%,
    320% 320%;
  background-position:
    0% 0%,
    100% 10%,
    50% 100%,
    0% 50%;
  background-repeat: no-repeat;

  /* heel trage beweging */
  animation: avantiBgMove 100s ease-in-out infinite alternate;

  /* net iets premium */
  filter: saturate(1) contrast(1.01);
  will-change: background-position;

  animation-name: avantiBgMove;
  animation-duration: var(--avanti-bg-dur);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;

  /* ✅ hier zit de “resume” magie */
  animation-delay: var(--avanti-bg-delay);
}

/* Noise layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.1;
}

/* Keyframes: subtiel “driften” */
@keyframes avantiBgMove {
  0% {
    background-position:
      0% 0%,
      100% 10%,
      50% 100%,
      0% 50%;
  }
  50% {
    background-position:
      55% 10%,
      45% 0%,
      52% 80%,
      45% 50%;
  }
  100% {
    background-position:
      100% 0%,
      0% 25%,
      50% 60%,
      100% 50%;
  }
}

/* Respecteer motion settings */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* container */
.container-fluid {
  font-size: 13px !important;
}

/* container */
.container {
  font-size: 13px !important;
}

/* kaart neemt automatisch de hoogte van de grootste kaart */
.equal-row {
  display: flex;
  align-items: stretch;
  /* ⭐ belangrijke truc */
}

/* elke col blijft flex-container */
.col-card {
  display: flex;
}

/* kaarten mogen NIET meer een vaste height hebben */
.col-card .card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;

  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: 0.25s ease;

  /* fade-in */
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 0.6s ease forwards;
}
.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
/* fade-in keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOVER EFFECT */
.col-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

/* Titel (card-header) */
.card-header {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

/* card-body vult de kaart en scrollt intern */
.card-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
}

.table {
  margin: 0;
  width: 100%;
  font-size: 13px !important;
}

/* basis cellen */
.table td,
.table th {
  vertical-align: middle !important;
  padding: 6px 8px;
  font-size: 13px !important;
  line-height: 1.4;
}

/* cijfers → nooit afbreken */
.stat-col {
  white-space: nowrap !important;
}

/* ploegnamen → mogen afbreken */
.team-col {
  white-space: normal !important;
}

/* zebra-effect */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ✅ Lissewege highlight (overschrijft alles) */
.highlight-lissewege td {
  background-color: rgba(0, 252, 0, 1) !important;
  font-weight: bold;
}

/* Past perfect in jouw gele/groene gradient */
.navbar-avanti {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

.page-wrapper {
  padding-top: 80px;
  /* ruimte voor fixed navbar */
}
/* Actieve link in de Avanti navbar duidelijk maken */
.navbar-avanti .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}
.blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Beter: beperk ook maximale hoogte zodat lange foto's niet schreeuwen */
.blog-image {
  max-height: 450px; /* ✔ Foto nooit gigantisch */
  object-fit: cover; /* ✔ Mooie crop als te lang */
}

/* Card verbreden maar niet full width */
.blog-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

/* De kaart zelf */
.sponsor-card-admin {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 220px; /* elke kaart exact gelijke hoogte */
}

/* Container voor de afbeelding */
.sponsor-image-wrapper {
  height: 160px; /* vaste hoogte */
  width: 100%;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* De afbeelding zelf */
.sponsor-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important; /* voorkomt uitrekken */
  display: block;
}

/* Zone met de verwijderknop */
.actions {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* =========================
   AVANTI FOOTER - zelfde stijl als navbar
   ========================= */

.avanti-footer {
  background: rgba(0, 0, 0, 0.3); /* iets lichter dan navbar */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #ffffff;
  padding: 15px 0 15px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Links */
.avanti-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.avanti-footer a:hover {
  text-decoration: underline;
}

/* Titels */
.footer-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Tekst */
.footer-text {
  line-height: 1.6;
  opacity: 0.95;
}

/* Links lijst */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

/* Mobiel */
@media (max-width: 767px) {
  .avanti-footer {
    text-align: center;
  }
}

/* =========================
   Mobile navbar scroll fix (iOS)
========================= */
@media (max-width: 991.98px) {
  /* Geef het open menu eigen scroll */
  #mainNav.navbar-collapse {
    max-height: calc(
      100dvh - 70px
    ); /* 70px = jouw body padding-top / navbar hoogte */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  /* Dropdown in de flow zetten zodat hij mee “groeit” en dus scrollbaar wordt */
  #mainNav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0.25rem;
  }
}
.slot-full {
    opacity: .65;
}
