/**
 * DWK – Single wijn styling (premium, Kadence-compatibel)
 * Doel: gecentreerd, “premium”, geen sidebar, rustige cards (zoals screenshot)
 */

/* =========================
   1) Tokens / basis
========================= */
:root{
  --dwk-bg: #f4efe4;
  --dwk-surface: #ffffff;
  --dwk-soft: rgba(0,0,0,.02);
  --dwk-border: rgba(0,0,0,.10);
  --dwk-border-strong: rgba(0,0,0,.16);
  --dwk-muted: rgba(0,0,0,.62);
  --dwk-shadow: 0 18px 44px rgba(0,0,0,.10);
  --dwk-shadow-sm: 0 12px 26px rgba(0,0,0,.08);
  --dwk-radius-xl: 22px;
  --dwk-radius-lg: 16px;
  --dwk-max: 1100px;
}

/* =========================
   2) Kadence layout fixes
========================= */
body.single-wijn .entry-content-wrap{
  max-width: none;
  padding: 0;
}

/* haal Kadence grid/sidebar weg */
body.single-wijn .single-wijn-page{
  display:block !important;
}

body.single-wijn .single-wijn-page .wijn-sidebar{
  display:none !important;
}

body.single-wijn .single-wijn-page .wijn-main,
body.single-wijn .single-wijn-page .entry-content-wrap{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

/* =========================
   3) Premium page shell
========================= */
body.single-wijn{
  background: var(--dwk-bg);
}

.dwk-wijn{
  background: var(--dwk-bg);
  padding: 0 18px 70px;
}

.dwk-wijn .dwk-wijn-hero__inner,
.dwk-wijn .dwk-section{
  max-width: var(--dwk-max);
  margin-left:auto;
  margin-right:auto;
}

/* =========================
   4) Buttons
========================= */
.dwk-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.70rem 1.05rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  text-decoration:none;
  font-weight:800;
  line-height:1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  background:#fff;
  color:#111;
}

.dwk-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.dwk-btn--primary{
  background:#111;
  color:#fff;
  border-color:#111;
}
.dwk-btn--primary:hover{ filter: brightness(.98); }

.dwk-btn--secondary{
  background: rgba(255,255,255,.85);
  color:#111;
  border-color: rgba(0,0,0,.12);
}

/* =========================
   5) Hero
========================= */
.dwk-wijn-hero{
  padding: 44px 0 10px;
  text-align:center;
}

.dwk-wijn-hero__logo{
  width: 92px;
  height:auto;
  display:block;
  margin: 0 auto 10px;
  border-radius: 16px;
}

.dwk-wijn-hero__tagline{
  margin: 0 0 10px;
  opacity:.75;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:900;
}

.dwk-wijn-hero__title{
  margin: 0 0 10px;
  font-weight: 900;
}

.dwk-wijn-hero__meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.45rem .65rem;
  opacity:.80;
  margin-bottom: 14px;
}

.dwk-dot{ opacity:.55; }

.dwk-wijn-hero__actions{
  display:flex;
  gap:.75rem;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.dwk-wijn-hero__price{
  margin-top: 2px;
}

.dwk-price{
  display:inline-flex;
  padding:.35rem .75rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  font-weight:900;
}
:root{
  --dwk-content-width: 1100px;
  --dwk-content-padding: 24px;
}

/* =========================
   6) Sections & cards
========================= */
.dwk-section{
  margin: 34px auto 0;
}

.dwk-h2{
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 18px;
  color: rgba(40,55,28,.90);
}

.dwk-h3{
  margin: 0 0 .75rem;
  font-weight: 900;
}

.dwk-sub{
  margin: 0 0 .85rem;
  opacity:.8;
}

.dwk-card{
  background: var(--dwk-surface);
  border:1px solid var(--dwk-border);
  border-radius: var(--dwk-radius-xl);
  padding: 18px 18px;
  box-shadow: var(--dwk-shadow-sm);
}
.dwk-wijn .dwk-section{
  margin-top: 42px;
}

.dwk-wijn .dwk-card{
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.dwk-card--soft{
  background: rgba(255,255,255,.65);
}

.dwk-card--ai{
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.12);
}

/* Grid */
.dwk-grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 860px){
  .dwk-grid-2{ grid-template-columns: 1fr 1fr; }
}

/* Rows */
.dwk-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 1rem;
  padding: .55rem 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.dwk-row:first-of-type{ border-top: 0; padding-top: 0; }

.dwk-label{ opacity:.8; }
.dwk-value{ font-weight:800; text-align:right; }

/* Notes / sterren */
.dwk-note{
  opacity:.7;
  font-style: italic;
}

.dwk-stars{
  display:inline-flex;
  gap:4px;
}
.dwk-stars span{ opacity:.25; }
.dwk-stars span.filled{ opacity:1; }

.dwk-scoreline{
  display:flex;
  align-items:center;
  gap: .85rem;
  flex-wrap:wrap;
}

.dwk-pill{
  display:inline-flex;
  align-items:center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background:#111;
  color:#fff;
  font-weight:900;
}

.dwk-stars-wrap{ display:inline-flex; align-items:center; }

/* details kv */
.dwk-kv{
  display:grid;
  gap:.6rem;
}
.dwk-k{ opacity:.75; min-width: 72px; display:inline-block; }
.dwk-v{ font-weight:900; }

/* =========================
   7) Small screens polish
========================= */
@media (max-width: 520px){
  .dwk-wijn{ padding-left: 14px; padding-right: 14px; }
  .dwk-wijn-hero{ padding-top: 34px; }
  .dwk-card{ padding: 16px; }
}
/* === DWK force single wijn shell === */
body.single-wijn{
  background: var(--dwk-bg);
}

body.single-wijn .entry-content-wrap{
  max-width: none !important;
  padding: 0 !important;
}

body.single-wijn .entry-content{
  margin: 0 !important;
}

body.single-wijn .dwk-wijn{
  max-width: none;
  margin: 0;
}
/* ===== Single wijn: hero compacter en meer "inline" ===== */
body.single-wijn .dwk-wijn-hero{
  padding: 1.4rem 0 1rem;      /* minder hoogte */
  text-align: left;            /* niet alles gecentreerd */
}

body.single-wijn .dwk-wijn-hero__inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.single-wijn .dwk-wijn-hero__logo{
  width: 64px;                 /* kleiner logo */
  margin: 0;
  flex: 0 0 auto;
}

body.single-wijn .dwk-wijn-hero__title{
  margin: 0 0 .25rem;
}

body.single-wijn .dwk-wijn-hero__meta{
  justify-content: flex-start; /* meta links uitlijnen */
  margin-bottom: 0;
}

body.single-wijn .dwk-wijn-hero__actions{
  margin: 0;
  justify-content: flex-end;
}

body.single-wijn .dwk-wijn-hero__price{
  margin-top: .35rem;
}

/* Mobiel: terug naar stacked */
@media (max-width: 820px){
  body.single-wijn .dwk-wijn-hero{
    text-align: center;
  }
  body.single-wijn .dwk-wijn-hero__inner{
    flex-direction: column;
    align-items: center;
  }
  body.single-wijn .dwk-wijn-hero__meta{
    justify-content: center;
  }
  body.single-wijn .dwk-wijn-hero__actions{
    justify-content: center;
  }
}
/* ===== Single wijn: hero compacter en meer "inline" ===== */
body.single-wijn .dwk-wijn-hero{
  padding: 1.4rem 0 1rem;      /* minder hoogte */
  text-align: left;            /* niet alles gecentreerd */
}

body.single-wijn .dwk-wijn-hero__inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.single-wijn .dwk-wijn-hero__logo{
  width: 64px;                 /* kleiner logo */
  margin: 0;
  flex: 0 0 auto;
}

body.single-wijn .dwk-wijn-hero__title{
  margin: 0 0 .25rem;
}

body.single-wijn .dwk-wijn-hero__meta{
  justify-content: flex-start; /* meta links uitlijnen */
  margin-bottom: 0;
}

body.single-wijn .dwk-wijn-hero__actions{
  margin: 0;
  justify-content: flex-end;
}

body.single-wijn .dwk-wijn-hero__price{
  margin-top: .35rem;
}

/* Mobiel: terug naar stacked */
@media (max-width: 820px){
  body.single-wijn .dwk-wijn-hero{
    text-align: center;
  }
  body.single-wijn .dwk-wijn-hero__inner{
    flex-direction: column;
    align-items: center;
  }
  body.single-wijn .dwk-wijn-hero__meta{
    justify-content: center;
  }
  body.single-wijn .dwk-wijn-hero__actions{
    justify-content: center;
  }
}
.dwk-radarcard{ margin-top: 1.25rem; }

.dwk-radar{
  width: 100%;
  overflow-x: auto;
  padding: .25rem 0;
}
.dwk-radar-wide{
  max-width:100%;
}
/* Zorg dat de radar card altijd de volle breedte pakt binnen de content */
.dwk-radar-wide{
  width: 100%;
  max-width: 100%;
}

/* Optioneel: radar-grid netjes laten breken op mobiel */
@media (max-width: 900px){
  .dwk-radargrid{
    grid-template-columns: 1fr;
  }
  .dwk-radar{
    justify-self: start;
  }
}

.dwk-radar canvas{
  display:block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
/* Radar netjes centreren en max breedte geven */
#dwk-wset-radar{
  width: 100%;
  max-width: 520px;
  height: 260px;
  display: block;
  margin: 0 auto;
}
.dwk-radargrid{
  display:grid;
  grid-template-columns: 1fr 520px;
  gap: 24px;
  align-items: start;
}

.dwk-radartext{
  min-width: 0;
}

@media (max-width: 1024px){
  .dwk-radargrid{
    grid-template-columns: 1fr;
  }
}
/* =========================
   DWK Header redesign
   ========================= */

.dwk-topbar{
  background:#0b0b0b;
  color:#fff;
  padding:18px 0;
}

.dwk-topbar__inner{
  max-width:var(--dwk-content-width);
  padding-left:var(--dwk-content-padding);
  padding-right:var(--dwk-content-padding);
  margin:0 auto;

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

.dwk-topbar__brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.dwk-topbar__logo{
  width:64px;
  height:64px;
  border-radius:16px;
  object-fit:cover;
  background:#111;
}

.dwk-topbar__brandtext{ min-width:0; }

.dwk-topbar__tagline{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.8;
  margin-bottom:6px;
}

.dwk-topbar__title{
  font-size:34px;
  line-height:1.05;
  margin:0;
  color:#eecb93;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:72vw;
}

.dwk-topbar__meta{
  margin-top:6px;
  font-size:14px;
  opacity:.85;
}

.dwk-topbar__actions{ flex:0 0 auto; }

.dwk-btn.dwk-btn--ghost{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.dwk-btn.dwk-btn--ghost:hover{
  background:rgba(255,255,255,.12);
}

/* Summary block onder de topbar */
.dwk-summary{
  padding:18px 0 6px;
}

.dwk-summary__inner,
.dwk-section{
  max-width:var(--dwk-content-width);
  padding-left:var(--dwk-content-padding);
  padding-right:var(--dwk-content-padding);
  margin:0 auto;
}

.dwk-scorebox{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}

.dwk-scorepill{
  background:#0b0b0b;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  display:inline-block;
}

.dwk-scorestars .dwk-stars{ font-size:16px; }

/* Mobile */
@media (max-width: 720px){
  .dwk-topbar__inner{ flex-direction:column; align-items:flex-start; }
  .dwk-topbar__title{ white-space:normal; max-width:100%; }
}
:root{
  --dwk-content-width: 1100px;
  --dwk-content-padding: 24px;
}

/* Header balk zelf */
.dwk-topbar{
  max-width: var(--dwk-content-width);
  margin: 0 auto 24px auto;
  padding-left: var(--dwk-content-padding);
  padding-right: var(--dwk-content-padding);

  background:#0b0b0b;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Binnenkant */
.dwk-topbar__inner{
  position: relative;
  display:flex;
  align-items:center;
  gap:20px;
  padding: 18px;
}

/* Logo + subtekst */
.dwk-topbar__brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:140px;
}

.dwk-topbar__logo{
  width:48px;
  height:48px;
  border-radius:10px;
}

.dwk-topbar__tagline{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
}

/* Titel exact gecentreerd */
.dwk-topbar__title{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  margin:0;

  color:#eecb93;
  font-size:30px;
  font-weight:600;
  white-space:nowrap;
}

/* Actie rechts */
.dwk-topbar__actions{
  margin-left:auto;
}

/* Mobiel */
@media (max-width: 900px){
  .dwk-topbar__inner{
    flex-wrap:wrap;
  }
  .dwk-topbar__title{
    position:static;
    transform:none;
    width:100%;
    text-align:left;
    font-size:24px;
    white-space:normal;
  }
  .dwk-topbar__actions{
    width:100%;
    margin-left:0;
  }
}
/* Details + Score in 1 blok met wijnfoto */
.dwk-detailsbox{
  display:flex;
  gap:18px;
  align-items:stretch;
}

.dwk-detailsbox__media{
  flex:0 0 160px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dwk-winephoto{
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.dwk-detailsbox__content{
  flex:1;
  min-width:0;
}

.dwk-detailsbox__top{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}

.dwk-detailsbox__bottom{
  margin-top:12px;
}

.dwk-link{
  text-decoration:underline;
}

/* mobiel */
@media (max-width: 900px){
  .dwk-detailsbox{
    flex-direction:column;
  }
  .dwk-detailsbox__media{
    flex:0 0 auto;
    justify-content:flex-start;
  }
  .dwk-winephoto{
    width:140px;
    height:140px;
  }
  .dwk-detailsbox__top{
    grid-template-columns: 1fr;
  }
}
.dwk-topdetails{
  display: grid;
  grid-template-columns: 220px 1fr; /* fles groter */
  gap: 18px;
  align-items: start;
}

.dwk-topdetails__media{
  display:flex;
  justify-content:center;
}

.dwk-winephoto{
  width: 100%;
  max-width: 220px;
  height: auto;
  display:block;
  object-fit: contain;
}

.dwk-topdetails__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dwk-topdetails__wijnhuis{
  margin: 0 0 10px 0;
}

@media (max-width: 900px){
  .dwk-topdetails{ grid-template-columns: 1fr; }
  .dwk-topdetails__grid{ grid-template-columns: 1fr; }
  .dwk-winephoto{ max-width: 280px; }
}
/* Details layout: links (fles) + rechts (data) */
.dwk-detailsgrid{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px){
  .dwk-detailsgrid{
    grid-template-columns: 1fr;
  }
}

/* Links card */
.dwk-detailsmedia{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding: 1rem;
}

.dwk-detailsmedia__img{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: .5rem;
}

.dwk-winephoto{
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  display:block;
}

/* onder de fles */
.dwk-detailsmedia__origin{
  margin-top: .75rem;
  padding-top:.75rem;
  border-top: 1px solid rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  gap: .5rem;
}

/* Rechter kaart */
.dwk-detailsdata{
  padding: 1rem 1.25rem;
}

.dwk-detailsdata__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px){
  .dwk-detailsdata__cols{
    grid-template-columns: 1fr;
  }
}

/* kleine button variant (als je die nog niet hebt) */
.dwk-btn--small{
  padding: .45rem .75rem;
  font-size: .9rem;
  border-radius: 999px;
}
.dwk-btn--ghost{
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.15);
}
.dwk-btn--ghost:hover{
  background: rgba(255,255,255,.85);
}
/* === Proefnotitie layout fixes === */

/* 1) Consistente 2-koloms grid voor proefnotitie boven en onder radar */
.dwk-proefnotitie-grid,
.dwk-under-radar-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* 2) WSET radar card niet “smal” laten worden door rare floats/widths */
.dwk-radarcard{
  width: 100%;
}

/* Radar binnen card netjes centreren */
.dwk-radar{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3) Conclusie/Smaak cards even hoog gedrag: geen forced heights */
.dwk-proefnotitie-grid .dwk-card,
.dwk-under-radar-grid .dwk-card{
  height: auto;
}

/* 4) Responsive: op small screens onder elkaar */
@media (max-width: 900px){
  .dwk-proefnotitie-grid,
  .dwk-under-radar-grid{
    grid-template-columns: 1fr;
  }
}

/* === Fix layout WSET Radar + onderblok === */

/* Radar card: zelfde grid-breedte gedrag als de andere secties */
.dwk-radarcard{
  width: 100%;
  max-width: 100%;
}

/* Radar netjes centreren */
.dwk-radar{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Onder de radar: 2 kolommen */
.dwk-under-radar-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Responsive */
@media (max-width: 900px){
  .dwk-under-radar-grid{
    grid-template-columns: 1fr;
  }
}
.dwk-under-radar__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
}

@media (max-width:900px){
  .dwk-under-radar__grid{
    grid-template-columns:1fr;
  }
}
/* =========================
   FIX: WSET Radar altijd full width
   (ook als hij per ongeluk in een grid-2 container zit)
========================= */
.dwk-radarcard{
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

/* Radar binnen card: tekst + canvas */
.dwk-radargrid{
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px){
  .dwk-radargrid{ grid-template-columns: 1fr; }
}

/* =========================
   FIX: Onder de radar (Smaak + Conclusie) -> 2 losse cards zoals boven
   Gebruik 1 class naam: .dwk-under-radar__grid
========================= */
.dwk-under-radar__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px){
  .dwk-under-radar__grid{ grid-template-columns: 1fr; }
}
/* =========================
   POLISH: alle blokken exact dezelfde breedte + consistente kaartkleur
   Plakken HELEMAAL ONDERAAN dwk-wijn.css
========================= */

/* 1) Eén bron van waarheid voor contentbreedte (cards/sections/header) */
:root{
  --dwk-content-width: 1100px;
  --dwk-content-padding: 24px;
}

/* zorg dat alle secties exact dezelfde “container” gebruiken */
.dwk-wijn .dwk-section,
.dwk-summary__inner,
.dwk-wijn-hero__inner{
  max-width: var(--dwk-content-width) !important;
  padding-left: var(--dwk-content-padding) !important;
  padding-right: var(--dwk-content-padding) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Header balk exact dezelfde breedte als de content */
.dwk-topbar{
  max-width: var(--dwk-content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* 2) Consistente kaart-achtergrond (Uiterlijk/Geur/Smaak/Conclusie etc) */
.dwk-card,
.dwk-card--soft,
.dwk-card--ai{
  background: rgba(255,255,255,.65) !important;  /* overal dezelfde tint */
  border-color: rgba(0,0,0,.10) !important;
}

/* 3) Zorg dat de 2-koloms grids exact dezelfde breedte/gap voelen */
.dwk-grid-2,
.dwk-proefnotitie-grid,
.dwk-under-radar__grid{
  width: 100%;
  max-width: 100%;
  gap: 18px !important;
}

/* 4) Radar-card altijd zelfde card-behandeling */
.dwk-radarcard{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 5) Kleine visuele gelijkheid: geen “verschillende padding” per kaart */
.dwk-card{
  padding: 18px !important;
}
