/* =========================
   KLEUREN
   Groen  = hoofdkleur (structuur, open opdrachten)
   Oranje = actiekleur (knoppen, privé opdrachten)
========================= */

:root {
    --green-900: #14532d;
    --green-700: #166534;
    --green-600: #15803d;
    --green-200: #bbd9c3;
    --green-100: #e3f1e6;
    --green-50: #f1f8f2;

    --orange-700: #9a3412;
    --orange-600: #c2410c;
    --orange-500: #ea580c;
    --orange-100: #ffedd5;
    --orange-50: #fff7ed;

    --ink: #16241b;
    --muted: #55655a;
    --page: #eef3ee;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--page);
    color: var(--ink);
    line-height: 1.6;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

:focus-visible {
    outline: 3px solid var(--orange-500);
    outline-offset: 3px;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 3px solid var(--green-600);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

    font-size: 20px;
    font-weight: 700;
    color: var(--green-900);
}

.logo-icon {
    font-size: 25px;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: var(--green-700);
}

.login-button {
    border: 0;
    background: var(--green-700);
    color: white;

    padding: 10px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}

.login-button:hover {
    background: var(--green-900);
}


/* =========================
   HERO
========================= */

.hero {
    background:
        radial-gradient(circle at top right, var(--green-100), transparent 45%),
        #ffffff;

    padding: 110px 0 100px;

    border-bottom: 1px solid var(--green-200);
}

.eyebrow {
    display: inline-block;

    color: var(--orange-600);

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 12px;
}

.hero h1 {
    max-width: 750px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;

    color: var(--green-900);

    margin-bottom: 24px;
}

.hero p {
    max-width: 650px;

    font-size: 19px;
    color: var(--muted);

    margin-bottom: 35px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    background: var(--orange-600);
    color: white;

    text-decoration: none;

    padding: 14px 22px;
    border-radius: 9px;

    font-weight: 600;

    transition: background 0.2s ease;
}

.hero-button:hover {
    background: var(--orange-700);
}

/* =========================
   Grid voor de hoofdpagina
========================= */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* KAART / BOX */
.exercise-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exercise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* ICON */
.exercise-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* TITEL & SUBTITEL */
.exercise-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.exercise-card-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* TAGS */
.exercise-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.exercise-card-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

/* KNOP */
.exercise-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.exercise-card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--orange-500);
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.exercise-card-button:hover {
  background: var(--orange-600);
}

/* =========================
   OPDRACHTEN (MAPS)
========================= */

.maps-section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
    padding-bottom: 14px;

    border-bottom: 2px solid var(--green-200);
}

.section-heading h2 {
    font-size: 38px;
    letter-spacing: -0.03em;
    color: var(--green-900);
}

.map-count {
    background: var(--green-100);
    color: var(--green-900);

    padding: 4px 12px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
}


/* GRID */

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


/* KAART = duidelijke container
   - dikke gekleurde balk bovenaan (groen = open, oranje = privé)
   - duidelijke rand rondom
   - drie vaste vlakken: afbeelding, tekst, actie */

.map-card {
    display: flex;
    flex-direction: column;

    background: var(--card);

    border: 2px solid var(--green-200);
    border-top: 8px solid var(--green-600);

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 2px 0 var(--green-200);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.map-card:hover {
    transform: translateY(-4px);

    border-color: var(--green-600);

    box-shadow: 0 14px 30px rgba(20, 83, 45, 0.16);
}

/* Privé opdrachten krijgen automatisch oranje */
.map-card:has(.map-badge.private) {
    border-color: #f6cfa8;
    border-top-color: var(--orange-500);
    box-shadow: 0 2px 0 #f6cfa8;
}

.map-card:has(.map-badge.private):hover {
    border-color: var(--orange-500);
    box-shadow: 0 14px 30px rgba(194, 65, 12, 0.18);
}


/* VLAK 1: PREVIEW */

.map-preview {
    height: 210px;

    position: relative;
    overflow: hidden;

    background: var(--green-100);

    border-bottom: 2px solid var(--green-200);
}

.map-card:has(.map-badge.private) .map-preview {
    background: var(--orange-100);
    border-bottom-color: #f6cfa8;
}

.map-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.map-card:hover .map-preview img {
    transform: scale(1.04);
}


/* BADGE */

.map-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    background: var(--green-700);
    color: white;

    padding: 6px 12px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.map-badge.private {
    background: var(--orange-600);
    color: white;
}


/* VLAK 2: TEKST */

.map-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 22px 22px 0;
}

.map-content h3 {
    font-size: 21px;
    line-height: 1.25;
    color: var(--green-900);

    margin-bottom: 8px;
}

.map-card:has(.map-badge.private) .map-content h3 {
    color: var(--orange-700);
}

.map-content p {
    color: var(--muted);

    font-size: 14px;

    min-height: 68px;
}


/* VLAK 3: ACTIEBALK ONDERAAN */

.map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: auto -22px 0;
    padding: 16px 22px;

    background: var(--green-50);
    border-top: 2px solid var(--green-100);
}

.map-card:has(.map-badge.private) .map-footer {
    background: var(--orange-50);
    border-top-color: var(--orange-100);
}

.map-type {
    color: var(--muted);

    font-size: 13px;
    font-weight: 500;
}


/* KNOP */

.map-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    background: var(--orange-600);
    color: white;

    text-decoration: none;

    padding: 10px 16px;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    transition: background 0.2s ease;
}

.map-button:hover {
    background: var(--orange-700);
}


/* =========================
   ABOUT
========================= */

.about-section {
    padding: 0 0 90px;
}

.about-box {
    background: var(--orange-50);

    border: 2px solid #f6cfa8;
    border-left: 8px solid var(--orange-500);

    border-radius: 16px;

    padding: 50px;
}

.about-box h2 {
    font-size: 30px;
    color: var(--orange-700);

    margin-bottom: 12px;
}

.about-box p {
    max-width: 700px;

    color: var(--muted);
}


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

footer {
    background: var(--green-900);

    color: #cfe3d4;

    padding: 28px 0;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

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

}

@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-content {
        min-height: 64px;
    }

    nav a {
        display: none;
    }

    .hero {
        padding: 75px 0 70px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 17px;
    }

    .maps-section {
        padding: 65px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .about-box {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
    }

}


/* Minder beweging voor wie dat instelt */

@media (prefers-reduced-motion: reduce) {

    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
/* Filters */
}
.exercise-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.filter-group {
  display: flex;
  gap: 1rem;
}

.filter-search {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.filter-select {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  font-size: 1rem;
}
