:root{
  --bg1:#0a2a4a;--bg2:#0f3e68;--text:#eaf2ff;--muted:#b7c6dd;
  --card:rgba(255,255,255,.06);--card-hover:rgba(255,255,255,.1);
  --accent:#7bd3ff;--radius:16px;--shadow:0 10px 25px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);
  background:linear-gradient(90deg,var(--bg2),var(--bg1));background-attachment:fixed;overflow-x:hidden}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto;border-radius:calc(var(--radius) - 4px)}
.relax-app{display:grid;grid-template-columns:260px 1fr;min-height:auto}
@media(max-width:980px){.relax-app{grid-template-columns:1fr}}
.relax-nav{position:sticky;top:0;height:100vh;padding:20px 16px;border-right:1px solid rgba(255,255,255,.08);backdrop-filter:blur(6px);z-index:20}
@media(max-width:980px){.relax-nav{height:auto;position:relative;border-right:none}.desktop-only{display:none}}
.relax-nav .brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-height:56px}
.logo{font-weight:800;font-size:22px;letter-spacing:.5px}.logo span{color:var(--accent)}
.burger{display:none;background:none;border:0;padding:6px 4px;cursor:pointer}
.burger span{display:block;width:24px;height:2px;background:var(--text);margin:5px 0;border-radius:2px}
@media(max-width:980px){.burger{display:block}}
/* Mobile drawer — fully hidden when closed */

/* Mobile drawer — bulletproof opaque overlay */
.mobile-drawer{
  position: fixed !important;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #061324 !important; /* fully opaque */
  transform: translateY(-120%); visibility: hidden; pointer-events: none;
  transition: transform .25s ease, visibility 0s linear .25s;
  z-index: 2000 !important;
  padding: 72px 16px 24px; 
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open{
  transform: translateY(0);
  visibility: visible; pointer-events: auto;
}

@media(min-width:981px){#mobile-menu{display:none !important}}
body.nav-open{overflow:hidden}
.nav-list{list-style:none;padding:8px 0;margin:0}.nav-item a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px}
.nav-item a:hover{background:var(--card-hover)}.nav-item.is-locked a{opacity:.55;cursor:not-allowed}.nav-item.is-active a{background:var(--card)}
.nav-sep{height:12px}.nav-item .dot{width:8px;height:8px;background:var(--accent);border-radius:999px;opacity:.8}
.main{padding:28px 28px 56px}.container{max-width:1240px;margin:0 auto}
h1{font-size:28px;margin:6px 0 18px;font-weight:700}h2{font-size:22px;margin:28px 0 14px;font-weight:700}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.greeting{font-size:20px;color:var(--muted);margin-bottom:8px}


/* Clean carousel implementation */
.carousel {
  position: relative;
  margin-top: 8px;
  isolation: isolate; /* Create new stacking context */
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  position: relative;
  z-index: 1; /* Below arrows */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel .card {
  scroll-snap-align: start;
  min-width: 280px;
  max-width: 340px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1; /* Same layer as track */
}

/* Mobile responsive */
@media(max-width: 720px) {
  .carousel .card {
    min-width: 76vw;
  }
}

/* Featured mobile: show next card 'peek' and keep 5:4 aspect ratio */
@media (max-width: 900px) {
  .carousel .carousel-track {
    padding: 0 16px;
  }
  .carousel .card {
    min-width: 0;
    flex: 0 0 69vw;
    max-width: 69vw;
  }
}

.carousel .card .thumb { 
  aspect-ratio: 5 / 4; 
}

/* Arrow styling - with mobile menu respect */
.carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(69, 123, 255, 0.85); /* Blauw semi-transparant */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10 !important; /* Above cards - important to override */
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  pointer-events: auto; /* Ensure clickable */
}

/* Hide arrows when mobile menu is open */
body.nav-open .carousel .arrow {
  z-index: 1; /* Lower than mobile menu */
  opacity: 0;
  pointer-events: none;
}

.carousel .arrow:hover {
  background: rgba(69, 123, 255, 1); /* Volle blauw bij hover */
  transform: translateY(-50%) translateY(-1px);
}

.carousel .arrow:active {
  transform: translateY(-50%) translateY(0);
}

.carousel .arrow.prev {
  left: 8px; /* Moved slightly inward to be more visible */
}

.carousel .arrow.next {
  right: 8px; /* Moved slightly inward to be more visible */
}

/* Initially hide prev arrow */
.carousel .arrow.prev {
  opacity: 0;
  pointer-events: none;
}

/* Arrow disabled state */
.carousel .arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Ensure arrows are always on top (except when mobile menu is open) */
.carousel .arrow {
  position: absolute !important;
}
/* ===================== EINDE vervanging ===================== */
/* ===================== EINDE vervanging ===================== */

.card{background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card .thumb{position:relative;aspect-ratio:5/4;background:rgba(255,255,255,.06)}
.card .meta{padding:10px 12px 14px}
.card .title{font-weight:700}.card .subtitle{color:#b7c6dd;font-size:14px;margin-top:4px}
.card.is-locked{position:relative}.card .thumb{position:relative}
.card.is-locked .thumb::after{content:'Alleen voor leden';position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:rgba(0,0,0,.65);border-radius:999px;padding:4px 8px;font-size:12px;color:#fff;white-space:nowrap;pointer-events:none}

.grid{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tile{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--card);border:1px solid rgba(255,255,255,.08)}
.tile a{display:block}.tile .tile-media{position:relative;aspect-ratio:1/1;background:rgba(255,255,255,.05)}
.tile .tile-body{padding:12px}
.tile .tile-title{font-weight:700}.tile.is-locked{opacity:.6;cursor:not-allowed}
.tile .lock-badge{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:rgba(0,0,0,.65);padding:4px 8px;border-radius:999px;font-size:12px;color:#fff;white-space:nowrap;pointer-events:none}
.row{display:flex;align-items:center;gap:12px}.link{color:var(--accent)}.small{font-size:14px;color:#b7c6dd}
.user-free .only-full{display:none !important}

/* Drawer header */
.mobile-drawer .drawer-header{position:absolute;top:0;left:0;right:0;height:56px;display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;border-bottom:1px solid rgba(255,255,255,.08);background:#081a2c}
.mobile-drawer .drawer-title{font-weight:700}
.drawer-close{background:none;border:0;color:var(--text);font-size:28px;line-height:1;padding:6px 10px;border-radius:10px;cursor:pointer}
.drawer-close:focus,.drawer-close:hover{background:rgba(255,255,255,.08)}
.mobile-drawer .nav-list{padding-top:8px}

/* Ensure overlays never block clicks */
.card.is-locked::after{ pointer-events: none; }
.tile .lock-badge{ pointer-events: none; }
.tile a{ position: relative; z-index: 1; }
.tile.is-locked a{ pointer-events: auto; }

/* === Minimal fix: remove background/overlays on .main only (keep cards/layout intact) === */
.main{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.main::before, .main::after{
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}
/* if any child relies on inline gradient as a band, neutralize it */
.main > [style*="linear-gradient"]{ background: transparent !important; }

/* === Option B: minder top-ruimte voor content (alleen mobiel) === */
@media (max-width: 980px){
  .main{
    padding: 8px 28px 56px; /* was 28px 28px 56px */
  }
}

/* === Footer === */
.site-footer{
  background:#051a30;                 /* donkerdere, effen band */
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:64px;                    /* “niets” erboven */
}
.site-footer .container{
  max-width:1240px;
  margin:0 auto;
  padding:24px 28px;
}

/* Links onder elkaar, zonder bullets of bolletjes */
.footer-links{
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:grid;
  grid-template-columns: 1fr;
  row-gap:10px;
}
.footer-links li{
  line-height:1.6;
}

/* Tekst grijzer en kleiner */
.site-footer a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;                     /* kleiner op desktop */
  opacity:.95;
}
.site-footer a:hover{
  color:var(--text);
  opacity:1;
}
.site-footer .muted{
  color:var(--muted);
  opacity:.9;
  font-size:13px;
}

/* Mobiel: nog iets compacter */
@media (max-width:980px){
  .site-footer{ margin-top:48px; }
  .site-footer .container{ padding:18px 16px; }

  .site-footer a{ font-size:13px; }
  .site-footer .muted{ font-size:12.5px; }
}

/* Featured en favo slider - beeld netjes oen vullen */
/* --- FINAL: verhoudingen & fill --- */

/* CATEGORIEËN (tegel) = 1:1 */
.tile .tile-media{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;        /* vierkant */
  border-radius: inherit;
}
.tile .tile-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FEATURED + FAVORIETEN (cards) = 5:4 (breder) */
.card .thumb{
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;        /* rechthoekig */
  border-radius: inherit;
}
.card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge onderaan-gecentreerd op de foto (blijft zo) */
.card.is-locked .thumb::after{
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
}
.tile .lock-badge{
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

/* Fortune Cookie – Het inzicht van de dag */
.fortune-cookie{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 8px;
  position: relative;
}
.fortune-icon{
  font-size: 28px;
  margin-bottom: 4px;
  line-height: 1;
}
.fortune-heading{
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fortune-short{
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
}
.fortune-expand{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}
.fortune-expand.is-open{
  max-height: 600px;
  opacity: 1;
}
.fortune-long{
  margin: 12px 0 4px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
.fortune-toggle{
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  margin-top: 4px;
}
.fortune-toggle:hover{
  text-decoration: underline;
}
.fortune-cat{
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 12px;
  color: var(--muted);
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: .5px;
}
