/* ======================
   FESTIVAL — Supplementary styles
   Extends shared style.css
   ====================== */

/* --- Festival hero background override --- */
.hero-bg::before {
  background: url('../img/hellema-enprofil.jpg') center 30% / cover no-repeat;
}

/* --- Festival hero secret text --- */
.festival-secret-hero {
  font-family: var(--font-accent);
  font-style: italic;
  text-transform: none;
  color: rgba(255,255,255,0.6);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  display: block;
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* --- Program timeline --- */
.program { background: var(--light-bg); }
.program .section-label { margin-bottom: 8px; }
.program h2 { margin-bottom: 12px; }

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-time {
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  margin: 4px auto 0;
  position: relative;
  z-index: 1;
}

.timeline-card {
  flex: 1;
  background-color: var(--dark-card);
  background-image: url('../backgrounds/free_cardboard_texture_08_design_instruct.jpg');
  background-size: 480px;
  background-blend-mode: soft-light;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  border-bottom: none;
}

.timeline-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.timeline-card p { font-size: 16px; color: var(--body-text); line-height: 1.6; }

/* --- Categorie kleuren --- */
/* Opening — goud (accent) */
[data-cat="opening"] .timeline-card { border-left-color: #FDD835; }
[data-cat="opening"] .timeline-dot { background: #FDD835; }

/* Workshop — warm oranje */
[data-cat="workshop"] .timeline-card { border-left-color: #F4A261; }
[data-cat="workshop"] .timeline-dot { background: #F4A261; }

/* Live muziek — roze */
[data-cat="music"] .timeline-card { border-left-color: #E879A0; }
[data-cat="music"] .timeline-dot { background: #E879A0; }

/* Theater — teal */
[data-cat="theater"] .timeline-card { border-left-color: #4DD0B8; }
[data-cat="theater"] .timeline-dot { background: #4DD0B8; }

/* Film — paars */
[data-cat="film"] .timeline-card { border-left-color: #CE93D8; }
[data-cat="film"] .timeline-dot { background: #CE93D8; }

/* Panel & Debat — lichtblauw */
[data-cat="panel"] .timeline-card { border-left-color: #64B5F6; }
[data-cat="panel"] .timeline-dot { background: #64B5F6; }

/* Categorie tag */
.timeline-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  color: #121212;
  font-weight: 600;
}

[data-cat="opening"] .timeline-cat { background: #FDD835; }
[data-cat="workshop"] .timeline-cat { background: #F4A261; }
[data-cat="music"] .timeline-cat { background: #E879A0; }
[data-cat="theater"] .timeline-cat { background: #4DD0B8; }
[data-cat="film"] .timeline-cat { background: #CE93D8; }
[data-cat="panel"] .timeline-cat { background: #64B5F6; }

.timeline-speakers {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.speakers-label {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.speakers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}

.speakers-list li {
  font-size: 14px;
  color: var(--body-text);
  padding: 3px 0;
  break-inside: avoid;
}

.speakers-list li span {
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .speakers-list { columns: 1; }
}

/* --- Snoepautomaat --- */
.snoepautomaat {
  background: var(--dark-mid);
}

/* Logo header */
.snoep-header {
  text-align: center;
  margin-bottom: 20px;
}

.snoep-logo-img {
  max-width: 340px;
  height: auto;
}

/* Two-column showcase */
.snoep-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* Vending machine drawing (transparent bg) */
.snoep-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.snoep-illustration {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(253,216,53,0.1));
}

/* Description */
.snoep-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  margin-bottom: 24px;
}

/* Feature list */
.snoep-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.snoep-feature {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.5;
}

.snoep-feature-icon {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

/* Price badge */
.snoep-price {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(253,216,53,0.06);
  border: 1px solid rgba(253,216,53,0.2);
  border-radius: 6px;
}

.snoep-price-tag {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.snoep-price-note {
  font-size: 16px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Kinderprogramma --- */
.kids { background: var(--dark-mid); }
.kids .section-label { margin-bottom: 8px; }
.kids h2 { margin-bottom: 12px; }

.kids-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 32px auto 0;
  text-align: left;
}

.kids-card {
  background-color: var(--dark-card);
  background-image: url('../backgrounds/free_cardboard_texture_02_design_instruct.jpg');
  background-size: 480px;
  background-blend-mode: soft-light;
  padding: 24px 20px;
  border-radius: 8px;
  border-bottom: 3px solid var(--gold);
}

.kids-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.kids-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.kids-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  margin-bottom: 12px;
}

.kids-time {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.5px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .kids-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .kids-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Plattegrond / Floor plan --- */
.floorplan { background: var(--dark-bg); }
.floorplan .section-label { margin-bottom: 8px; }
.floorplan h2 { margin-bottom: 12px; }

.floorplan-wrapper {
  max-width: 800px;
  margin: 32px auto 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(253,216,53,0.15);
}

.floorplan-img {
  width: 100%;
  height: auto;
  display: block;
}

.floorplan-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--body-text);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

/* --- Artists --- */
.artists { background: var(--dark-mid); }
.artists .section-label { margin-bottom: 8px; }
.artists h2 { margin-bottom: 12px; }

.artist-category {
  margin-top: 40px;
  text-align: center;
}

.artist-cat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

/* Location badge under category title */
.artist-cat-location {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body-text);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  opacity: 0.7;
}

/* Location badge in timeline cards */
.timeline-location {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.artist-cat-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 8px auto 0;
  opacity: 0.4;
}

.artist-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  width: 110px;
  min-height: 120px;
  background-color: var(--dark-card);
  background-image: url('../backgrounds/free_cardboard_texture_02_design_instruct.jpg');
  background-size: 480px;
  background-blend-mode: soft-light;
  border-radius: 8px;
  transition: border-color 0.2s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.artist-card:hover {
  border-color: rgba(253,216,53,0.25);
}

/* --- Artist card description overlay --- */
.artist-desc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-bright);
  background: rgba(18,18,18,0.92);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.artist-card:hover .artist-desc,
.artist-card.active .artist-desc {
  opacity: 1;
  pointer-events: auto;
}

.artist-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dark-surface);
  flex-shrink: 0;
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  background: var(--dark-surface);
}

.artist-name {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-bright);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.artist-tag {
  font-size: 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.artists-pr-note {
  margin-top: 32px;
  font-size: 16px;
  color: var(--text-dim);
  font-style: italic;
}

/* --- Artist Detail Panel (expandable) --- */
.artist-card[data-artist] {
  cursor: pointer;
}

.artist-card.selected {
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(253,216,53,0.15);
}

.artist-detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  width: 100%;
  margin-top: 16px;
  position: relative;
}

.artist-detail-panel.open {
  opacity: 1;
  margin-bottom: 8px;
  overflow: visible;  /* 3D flap mag buiten panel uitsteken */
}

.artist-detail-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  background-color: var(--dark-card);
  background-image: url('../backgrounds/free_cardboard_texture_08_design_instruct.jpg');
  background-size: 600px;
  background-blend-mode: soft-light;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: visible;
}

.artist-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.artist-detail-close:hover {
  color: var(--gold);
}

.artist-detail-photo {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  max-height: 240px;
}

.artist-detail-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.artist-detail-body .artist-detail-subtitle {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.artist-detail-body .artist-detail-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-text);
  margin-bottom: 16px;
}

.artist-detail-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.artist-detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.artist-detail-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Karton-unfold CSS 3D animatie
   De flap klapt naar VOREN open (naar de kijker toe),
   als een kartonnen deksel dat opengaat.
   transform-origin: top → scharnierpunt zit boven,
   positieve rotateX → draait naar voren/beneden. */

/* perspective op inner, preserve-3d zodat flap in 3D kan draaien */

.artist-detail-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transform-origin: top center;
  transform: rotateX(0deg);
  background-color: #7a6548;
  background-image: url('../backgrounds/free_cardboard_texture_08_design_instruct.jpg');
  background-size: 500px;
  background-blend-mode: multiply;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  animation: kartonUnfold 1s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* Naar voren openklappen: 0° → 95° (voorbij verticaal, licht bounce) */
@keyframes kartonUnfold {
  0%   { transform: rotateX(0deg);   opacity: 1; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
  50%  { transform: rotateX(70deg);  opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
  80%  { transform: rotateX(92deg);  opacity: 0.7; box-shadow: none; }
  100% { transform: rotateX(95deg);  opacity: 0; box-shadow: none; }
}

/* content-wrapper zit in de grid-inner;
   display:contents laat de grid doorlopen,
   fade gaat via de directe kinderen */
.artist-detail-content {
  display: contents;
}

.artist-detail-content > * {
  opacity: 0;
  transition: opacity 0.35s ease-in;
}

.artist-detail-content.visible > * {
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .artist-detail-panel {
    transition: none;
  }
  .artist-detail-inner {
    perspective: none;
  }
  .artist-detail-flap {
    display: none !important;
  }
  .artist-detail-content > * {
    opacity: 1 !important;
    transition: none;
  }
}

/* Responsive detail panel */
@media (max-width: 600px) {
  .artist-detail-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  .artist-detail-photo {
    max-height: 200px;
    width: 100%;
  }
}

/* --- Footer hashtags --- */
.footer-hashtags {
  margin-top: 8px;
  font-size: 16px;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.footer-hashtags span {
  margin: 0 4px;
}

/* --- Location reuses contact-grid from main --- */
.location { background: var(--light-bg); }

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Hero: allow content to grow beyond viewport instead of overlapping */
  .hero {
    min-height: auto;
    padding: 100px 0 48px;
  }
  .hero-content {
    padding: 0 20px;
  }
  .festival-secret-hero {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  .hero-sub {
    font-size: 0.9625rem;
  }

  .artist-card {
    width: 100px;
    min-height: 110px;
  }

  .snoep-logo-img {
    max-width: 260px;
  }
  .snoep-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .snoep-illustration {
    width: 180px;
  }
  .snoep-features {
    text-align: left;
  }
  .snoep-price {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 36px;
  }
  .festival-secret-hero {
    font-size: 1.1rem;
  }
  .hero-date {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 0.9625rem;
  }
}
