/* ==========================================================================
   Video showcase ("Τέσσερις πυλώνες. Τέσσερις οπτικές.") — Figma node 67:833
   .video-showcase__inner   container: intro | featured video (724) | playlist (307)
   .video-feature           featured video (video-feature.css)
   .video-list              playlist; clicking an item swaps the featured video
   Behaviour: js/video-showcase.js
   ========================================================================== */

.video-showcase {
  padding-block: clamp(64px, 5vw, 96px) clamp(64px, 4.4vw, 84px);
}

.video-showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 724px) minmax(0, 307px);
  align-items: start;
  column-gap: 38px;
}

/* ---- Intro ---------------------------------------------------------------- */
.video-showcase__title {
  color: var(--color-heading);
  font-size: var(--font-size-h2);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--leading-title);
}

.video-showcase__text {
  max-width: 333px;
  margin-top: 28px;
  color: var(--color-text);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-body);
}

/* Featured video: .video-feature (video-feature.css) */
.video-showcase__inner > .video-feature {
  margin-top: 15px; /* Figma: video starts 15px below the title */
}

/* ---- Playlist ------------------------------------------------------------- */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.video-list__item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px; /* title may run above the play icon, as in Figma */
  border: 0;
  background: var(--color-bg-board);
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.video-list__item:hover,
.video-list__item[aria-current="true"] {
  background: var(--color-bg-active);
}

.video-list__thumb {
  width: 80px;
  height: 55px;
  flex: none;
  object-fit: cover;
}

.video-list__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.video-list__title {
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 20px;
}

.video-list__duration {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--leading-snug);
}

.video-list__item[aria-current="true"] .video-list__title {
  font-weight: var(--font-weight-medium);
}

.video-list__item[aria-current="true"] .video-list__duration {
  color: var(--color-highlight);
}

/* Small play icon, bottom-right (blue when active) */
.video-list__item::after {
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 17px;
  height: 17px;
  background: url("../../assets/icons/play-small.svg") center / contain no-repeat;
  content: "";
}

.video-list__item[aria-current="true"]::after {
  background-image: url("../../assets/icons/play-small-active.svg");
}

/* ---- Laptop: intro on top, video + playlist below ------------------------- */
@media (max-width: 1500px) {
  .video-showcase__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 307px);
    row-gap: 40px;
  }

  .video-showcase__intro {
    grid-column: 1 / -1;
  }

  .video-showcase__text {
    max-width: 640px;
  }

  .video-showcase__inner > .video-feature,
  .video-list {
    margin-top: 0;
  }
}

/* ---- Tablet: playlist as a 2-column grid under the video ----------------- */
@media (max-width: 1100px) {
  .video-showcase__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .video-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -16px;
  }
}

/* ---- Phone ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .video-showcase__title {
    font-size: 32px;
    line-height: 1.25;
  }

  .video-showcase__text {
    margin-top: 16px;
    font-size: var(--font-size-base);
    line-height: 1.55;
  }

  .video-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
