/* StepTurnMoveDynamic-1.1: public_html/css/custom.css */
/* This file contains custom styles for the frontend of the StepTurnMove website. */
/* MODIFIED to set the global font to Inconsolata. */

/* Main content begins directly after navbar — spacing is handled by .section */

/* --- General Body and Typography --- */
body {
    /* MODIFIED: Changed font-family to Inconsolata with a generic monospace fallback */
    font-family: 'Inconsolata', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #626262;
}

/* --- Shared Header and Section Styling --- */
header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #0073e6;
}

h2,h3 {
    color: #0073e6;
}

section {
    margin-bottom: 20px;
}

/* --- Language Switcher Styling --- */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 60px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    /* REMOVED: font-family rule to allow inheritance from body */
    align-items: center;
    padding: 5px;
}

.language-switcher .lang-option {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    font-size: 0.9em;
}

.language-switcher .lang-option:hover,
.language-switcher .lang-option.active {
    color: #0073e6;
    border-color: #0073e6;
    background-color: rgba(0, 123, 255, 0.1);
}

/* --- Responsive Adjustments for Language Switcher --- */
@media (max-width: 768px) {
    .language-switcher {
        top: 5px;
        right: 50px;
        font-size: 0.8em;
    }
}

/* --- NEW HEADER-RELATED CSS --- */
.burger .menu-line {
  display: block;
  width: 30px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.burger .menu-line:last-child {
    margin-bottom: 0;
}

.full-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.ham-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ham-menu ul {
  list-style: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.ham-menu ul li {
  margin-bottom: 15px;
}

.ham-menu ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.ham-menu ul li a:hover {
  background-color: #e0e0e0;
}

#ham-menu:checked ~ .full-page-overlay {
  opacity: 1;
  visibility: visible;
}

#ham-menu:checked ~ .ham-menu {
  transform: translateX(0);
}

#ham-menu {
  display: none;
}

#ArtistPlaceholder,
#ProductionsPlaceholder,
#ProductionPlaceholder,
#OtherProductionsPlaceholder,
#tourDatesPlaceholder
{
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #ArtistsPlaceholder img,
    #ProductionsPlaceholder img {
        width: 100%;
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto 1rem auto;
    }
}

/* --- Common rich-text editor styles --- */
.toolbar button {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 3px;
}
.toolbar button:hover {
  background: #e2e6ea;
}
.rich-text-editor {
  border: 1px solid #ced4da;
  padding: 10px;
  border-radius: 4px;
  min-height: 150px;
  overflow-y: auto;
  background-color: #fff;
}


/*
 * UPDATED: Styles for Production Media Page to ensure side-by-side layout with equal height.
 */

/* Main container for the side-by-side layout */
.media-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 1.5rem;      
  align-items: stretch; 
}

/* Each item (video or image) inside the container */
.media-item {
  flex: 1 1 350px; 
  display: flex;
  flex-direction: column; /* Ensure content inside stacks vertically */
  min-width: 300px;
}

/* ── Responsive video embed (16:9 aspect ratio) ── */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Video trailer replay button ── */
.replay-trailer-btn {
  font-family: 'Inconsolata', monospace;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.replay-trailer-btn:hover {
  background-color: #0073e6;
  color: #fff;
  border-color: #0073e6;
}

/* Styling for the image in its container */
.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 4px; 
}

/* Layout for pages where there is only an image and no video */
.media-container.single-image {
  display: block; 
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.media-container.single-image .media-display {
  width: 100%;
  height: auto;
  max-height: 500px; 
  object-fit: cover;
  border-radius: 4px;
}

/* Responsive Breakpoint: Stack the items on medium screens and below */
@media (max-width: 768px) {
  .media-container {
    flex-direction: column; 
  }
}

/* --- Styles for Extra Images Gallery --- */
.extra-images-container {
    margin-top: 20px;
}
.extra-images-container h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.extra-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.extra-images-list img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
}
.modal-credits {
    font-size: 1rem;
    padding: 10px;
    text-align: left;
    color: #555;
}
#backButton {
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 9999;
    color: #0073e6;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
@media (max-width: 768px) {
    #backButton {
        bottom: 20px;
        right: 20px;
    }
}

/* Limit size of pop-up on production_media.php */
.modal-image-constrained {
  max-height: 75vh;
  object-fit: contain; 
}

/* --- Finale styling voor de Foto Pop-up (Lightbox Effect) --- */

#imageModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

#imageModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageModal .modal-footer {
  border: none;
}

#imageModal .btn[data-bs-dismiss="modal"] {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#imageModal #prevBtn,
#imageModal #nextBtn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 28px;
  width: 48px;
  height: 60px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#imageModal #prevBtn {
  left: 5vw; 
  border-radius: 0 8px 8px 0;
}

#imageModal #nextBtn {
  right: 5vw; 
  border-radius: 8px 0 0 8px;
}

#modalCredits {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  text-align: center;
}

#imageModal #prevBtn:hover,
#imageModal #nextBtn:hover,
#imageModal .btn[data-bs-dismiss="modal"]:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Voor Safari compatibiliteit */
}

#artistFilter,
#productionFilter {
  font-size: 1.1rem;
}

/* --- Intro text in right column --- */
.news-sidebar-intro h6 {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* --- News Sidebar (Homepage) --- */
.news-sidebar {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.25rem;
}

.news-sidebar h4 {
  color: #0073e6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0073e6;
}

.news-sidebar-list {
  padding: 0;
  margin: 0;
}

.news-sidebar-item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.news-sidebar-link {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  transition: color 0.2s ease;
}

.news-sidebar-link:hover {
  color: #0073e6;
  text-decoration: underline;
}

.news-sidebar-newsletter h4 {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.news-sidebar-newsletter p {
  color: #626262;
  line-height: 1.5;
}

/* --- Artist Grid (Homepage) — Square images, 3 per row on large screens --- */
.artist-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.artist-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-grid-item {
  text-align: left;
}

.artist-grid-item p {
  font-size: 0.85rem;
}

/* --- Square Image Utility --- */
.img-square {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* --- Production Page — Gallery Placeholder --- */
.gallery-placeholder {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  background: #f8f9fa;
}
.gallery-placeholder-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gallery-placeholder-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* --- News Page — 7-line intro with Read more toggle --- */
.news-intro-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 7;
}

/* --- News Page — Image --- */
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* --- News Page — Image Placeholder --- */
.news-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e9ecef;
  border-radius: 4px;
  color: #adb5bd;
  font-size: 0.9rem;
  min-height: 180px;
}

/* --- Sidebar News — Thumbnail --- */
.news-sidebar-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}

.news-sidebar-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e9ecef;
  border-radius: 3px;
}

/* --- Digital Guide Page --- */
.digital-guide-body h1 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0073e6;
}

.digital-guide-body h2 {
  font-size: 1.4rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0073e6;
}

.digital-guide-body h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #0073e6;
}

.digital-guide-body p {
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.digital-guide-body ul,
.digital-guide-body ol {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
}

.digital-guide-body li {
  margin-bottom: 0.3rem;
}

/* Reference Cards — 6 per row */
.digital-guide-ref-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef !important;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.digital-guide-ref-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ref-card-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.ref-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background-color: #f0f0f0;
  font-weight: bold;
  color: #adb5bd;
}

.ref-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.ref-card-desc {
  font-size: 0.7rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

/* Responsive: 3 cols on medium, 2 cols on small */
@media (max-width: 992px) {
  .row-cols-lg-6 > .col {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}

@media (max-width: 576px) {
  .row-cols-md-3 > .col {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* ============================================================
   Tour Date Minicard Styles
   ============================================================ */

.tour-date-minicard {
  display: flex;
  align-items: stretch;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 12px;
  background-color: #E5E4E2;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.tour-date-minicard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Date column (left) ── */
.td-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 12px 10px;
  background-color: #E5E4E2;
  text-align: center;
  flex-shrink: 0;
}

.td-day-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0073e6;
  line-height: 1.2;
}

.td-day-number {
  font-size: 1.9rem;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
  margin: 2px 0;
}

.td-month {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #626262;
  line-height: 1.2;
}

.td-year {
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
  line-height: 1.2;
}

/* ── Time column (middle) ── */
.td-time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 12px 14px;
  text-align: center;
  flex-shrink: 0;
}

.td-time span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* ── Info column (right) ── */
.td-info {
  display: block;
  padding: 12px 16px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #626262;
}

.td-production {
  font-weight: 700;
  color: #333;
}

.td-organisation {
  color: #626262;
}

.td-venue {
  color: #626262;
}

.td-venue:empty {
  display: none;
}

.td-country {
  font-weight: 600;
  color: #0073e6;
  text-transform: uppercase;
}

.td-separator {
  color: #aaa;
  font-weight: 300;
  user-select: none;
}

.td-ticket-link {
  float: right;
  margin-left: 8px;
}

.td-ticket-link a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: #0073e6;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.td-ticket-link a:hover {
  background-color: #005bb5;
}

/* ── Premiere badge ── */
.td-premiere-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background-color: #e60050;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Responsive: stack time & info on very narrow screens ── */
@media (max-width: 576px) {
  .tour-date-minicard {
    flex-wrap: wrap;
  }

  .td-date {
    min-width: 70px;
    padding: 10px 8px;
  }

  .td-day-number {
    font-size: 1.55rem;
  }

  .td-time {
    min-width: 60px;
    padding: 10px 10px;
  }

  .td-time span {
    font-size: 1rem;
  }

  .td-info {
    width: 100%;
    padding: 10px 12px;
  }

  .td-ticket-link {
    float: none;
    display: block;
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
  }

  .td-ticket-link a {
    display: block;
    text-align: center;
  }
}
