/* Poppins + Nunito worden al door het thema geladen */

/* ── Tokens ── */
#jm-stembox {
  --c-green:    #70A289;
  --c-green-dk: #4e7a63;
  --c-green-lt: #d8ebe2;
  --c-peach:    #EFB380;
  --c-peach-dk: #ce8552;
  --c-peach-lt: #FFE4CD;
  --c-bg:       #FDF8F2;
  --c-surface:  #ffffff;
  --c-border:   #e8e0d6;
  --c-rule:     #ede5db;
  --c-text:     #111111;
  --c-mid:      #444444;
  --c-muted:    #888888;
}

/* ── Reset binnen de widget ── */
#jm-stembox,
#jm-stembox * {
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
}

#jm-stembox img {
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  margin: 0;
  height: auto;
}

#jm-stembox button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  font-family: 'Nunito', sans-serif;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  letter-spacing: normal;
  text-transform: none;
}

#jm-stembox p {
  margin: 0;
  padding: 0;
}

#jm-stembox strong { font-weight: 700; }
#jm-stembox i      { font-style: normal; }

/* ── Container ── */
#jm-stembox {
  display: block;
  width: 100%;
  margin: 2rem auto;
  font-size: 16px;
  color: var(--c-text);
  background: #ffffff;
  line-height: normal;
}

/* ── Header ── */
#jm-stembox .jm-header {
  background: var(--c-green);
  color: #fff;
  padding: 18px 22px 16px;
  border-radius: .6rem .6rem 0 0;
}

#jm-stembox .jm-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

#jm-stembox .jm-deadline {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 5px 0 0;
  padding: 0;
}

/* ── Kaartlijst ── */
#jm-stembox .jm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  background: #ffffff;
  list-style: none;
  margin: 0;
}

/* ── Kaart ── */
#jm-stembox .jm-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: .6rem;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#jm-stembox .jm-card.jm-winner {
  border-color: var(--c-green);
  box-shadow: 0 0 0 1px var(--c-green);
}

/* ── Foto ── */
#jm-stembox .jm-photo-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

#jm-stembox .jm-photo {
  width: 100%;
  height: 260px;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

/* Percentage overlay op de foto */
#jm-stembox .jm-photo-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

#jm-stembox .jm-photo-overlay.show {
  opacity: 1;
}

#jm-stembox .jm-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
  padding: 0;
}

#jm-stembox .jm-pct span {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.75;
}

#jm-stembox .jm-photo-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  line-height: 1.5;
  margin: 0;
}

#jm-stembox .jm-photo-sub strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

/* Winnaar-streep */
#jm-stembox .jm-winner-strip {
  display: none;
  height: 3px;
  background: var(--c-green);
  margin: 0;
}

#jm-stembox .jm-winner .jm-winner-strip {
  display: block;
}

/* ── Card body ── */
#jm-stembox .jm-body {
  padding: 16px 20px 20px;
}

#jm-stembox .jm-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 3px;
  padding: 0;
  line-height: 1.3;
}

#jm-stembox .jm-winner .jm-name {
  color: var(--c-green-dk);
}

#jm-stembox .jm-nominator {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
  margin: 0 0 9px;
  padding: 0;
}

#jm-stembox .jm-teaser {
  display: block;
  font-size: 15px;
  color: var(--c-mid);
  line-height: 1.55;
  margin: 0 0 12px;
  padding: 0;
}

/* ── Actions ── */
#jm-stembox .jm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#jm-stembox .jm-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-peach-dk);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
  width: auto;
}

#jm-stembox .jm-read-arr {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

#jm-stembox .jm-read-btn.open .jm-read-arr {
  transform: rotate(90deg);
}

/* Stem-knop */
#jm-stembox .jm-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  background: var(--c-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  width: auto;
  text-decoration: none;
  transition: background 0.18s;
  letter-spacing: normal;
  text-transform: none;
}

#jm-stembox .jm-vote-btn:hover:not(:disabled) {
  background: var(--c-green-dk);
}

#jm-stembox .jm-vote-btn:disabled {
  background: var(--c-rule);
  color: var(--c-muted);
  cursor: default;
}

#jm-stembox .jm-vote-btn.jm-my-vote {
  background: var(--c-peach-lt);
  color: var(--c-peach-dk);
  outline: 1px solid var(--c-peach);
}

/* ── Progressbalk ── */
#jm-stembox .jm-bar-wrap {
  display: none;
  margin: 10px 0 0;
}

#jm-stembox .jm-bar-wrap.show {
  display: block;
}

#jm-stembox .jm-bar-track {
  height: 4px;
  background: var(--c-rule);
  border-radius: 2px;
  overflow: hidden;
}

#jm-stembox .jm-bar-fill {
  height: 4px;
  border-radius: 2px;
  background: var(--c-green);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

#jm-stembox .jm-winner .jm-bar-fill {
  background: var(--c-peach-dk);
}

#jm-stembox .jm-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-muted);
  margin: 3px 0 0;
}

/* ── Uitklapbaar verhaal ── */
#jm-stembox .jm-story {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s;
}

#jm-stembox .jm-story.open {
  max-height: 500px;
  opacity: 1;
}

#jm-stembox .jm-story-inner {
  padding: 14px 0 2px;
  border-top: 1px solid var(--c-peach-lt);
  margin: 12px 0 0;
}

#jm-stembox .jm-story-by {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
  font-style: italic;
  margin: 0 0 6px;
}

#jm-stembox .jm-story-text {
  font-size: 15px;
  color: var(--c-mid);
  line-height: 1.65;
}

#jm-stembox .jm-story-text p {
  margin: 0 0 7px;
}

#jm-stembox .jm-story-text p:last-child {
  margin-bottom: 12px;
}

/* ── Bedankt-balk ── */
#jm-stembox .jm-thanks {
  display: none;
  background: var(--c-green-lt);
  border-top: 1px solid #b0d0be;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-green-dk);
  text-align: center;
}

#jm-stembox .jm-thanks.show {
  display: block;
}

/* ── Footer ── */
#jm-stembox .jm-footer {
  display: flex;
  justify-content: space-between;
  background: var(--c-bg);
  border-top: 1px solid var(--c-rule);
  padding: 10px 22px;
  border-radius: 0 0 .6rem .6rem;
  font-size: 12px;
  color: var(--c-muted);
}

#jm-stembox .jm-footer strong {
  color: var(--c-mid);
}
