/* ============================================================
   PLUGIN.CSS — AI Figma Plugin Case Study
   Page-specific overrides on top of core.css
   ============================================================ */

/* ── Hero: remove left/right padding so image fills edge to edge ── */
.cs-page .cs-hero-inner {
  padding-left: 0;
  padding-right: 0;
}

/* Keep title and P/S zones inset so text doesn't hug the edge */
.cs-page .cs-hero-title-zone,
.cs-page .cs-hero-ps {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

/* ── Hero Video Zone ─────────────────────────────────────── */
.cs-hero-video-zone {
  position: relative;
  flex: 1;
  min-height: 320px;
  opacity: 1 !important;
  animation: none !important;
}

/* ── Plugin hero play button ─────────────────────────────── */
.plugin-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plugin-play-btn::before {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.plugin-play-btn:hover::before {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

.plugin-play-btn svg {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-left: 4px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.cs-hero-video-wrap {
  position: relative;   /* anchor for the poster overlay */
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  opacity: 1 !important;
}

/* Poster image — our element, always opaque, matches video contain */
.cs-hero-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cs-hero-video-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Custom play button over the poster */
.cs-hero-video-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero-video-play-btn::before {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-hero-video-play-btn svg {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-left: 4px; /* optical centre for triangle */
  drop-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cs-hero-video-play-btn:hover::before {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.cs-hero-video-play-btn.is-hidden {
  display: none;
}

.cs-hero-video {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  opacity: 1 !important;
  z-index: 0;
}

/* ── Image placeholder (tall variant for sticky columns) ─── */
.cs-img-placeholder--tall {
  min-height: 420px;
  background: #e8e6e1;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-img-placeholder--tall::after {
  content: 'Image coming soon';
  font-size: 13px;
  color: #999;
  font-family: var(--font-body);
}

/* ── Sticky left: image column sits sticky, text scrolls ─── */
/* (handled by core.css cs-two-col--sticky-left) */
/* Ensure img-wrap takes full height for stickiness to work */
.cs-two-col--sticky-left > *:first-child .cs-img-wrap,
.cs-two-col--sticky-left > *:first-child .cs-img-placeholder--tall {
  width: 100%;
}

/* ── Images fill their container proportionally ─────────── */
.cs-img-wrap .cs-hero-screen-img {
  width: 100%;
  height: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .cs-hero-video-zone {
    min-height: 200px;
  }

  .cs-img-placeholder--tall {
    min-height: 240px;
  }
}

/* (Montserrat experiment removed — tiemposText serif applied via core.css) */
