/* ─────────────────────────────────────────────
   slideshow.css
   Screenshot carousel on the About page.
   Fully self-contained — no styles here affect
   anything outside .slideshow-wrap.
───────────────────────────────────────────── */

/* ─── SECTION WRAPPER ─── */
.ss-section { margin: 3rem 0 2.5rem; }
.ss-section > h2 { margin-top: 0; }

/* ─── SLIDESHOW CONTAINER ─── */
.slideshow-wrap {
  position: relative;
  user-select: none;
}

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: default;
  outline: none;
}

@supports not (aspect-ratio: 16 / 9) {
  .slideshow::after {
    content: '';
    display: block;
    padding-top: 56.25%;
  }
}

/* ─── SLIDES ─── */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.slide.active { opacity: 1; z-index: 1; }

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

/* ─── PLACEHOLDER (missing image) ─── */
.slide-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text3);
  background: var(--bg1);
}
.slide.img-missing .slide-placeholder { display: flex; }
.slide.img-missing img { visibility: hidden; }
.slide-placeholder svg { opacity: 0.2; }

.slide-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 2;
  color: var(--text3);
}
.slide-placeholder-path { color: var(--yellow); opacity: 0.5; }

/* ─── CAPTION ─── */
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 100%);
  padding: 2.5rem 1.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text2);
  font-family: var(--font-body);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}
.slide-caption:empty { display: none; }

/* ─── ARROW BUTTONS ─── */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,5,5,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text2);
  width: 42px;
  height: 42px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.slide-arrow:hover {
  background: rgba(255,229,0,0.14);
  color: var(--yellow);
  border-color: rgba(255,229,0,0.28);
}
.slide-arrow:focus-visible {
  outline: 1px solid var(--yellow);
  outline-offset: 2px;
}
.slide-prev { left: 0.85rem; }
.slide-next { right: 0.85rem; }

/* ─── PROGRESS BAR ─── */
.slideshow-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 6;
}
.slideshow-progress-bar {
  height: 100%;
  background: var(--yellow);
  width: 0%;
  box-shadow: 0 0 10px rgba(255,229,0,0.35);
}

/* ─── FOOTER ROW ─── */
.slideshow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.1rem 0.35rem;
}

.slide-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.slide-dot:hover { background: var(--text3); transform: scale(1.3); }
.slide-dot.active {
  background: var(--yellow);
  transform: scale(1.4);
  box-shadow: 0 0 6px rgba(255,229,0,0.5);
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text3);
}

.ss-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text3);
  text-align: right;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .slide-arrow { width: 34px; height: 34px; font-size: 0.85rem; }
  .slide-prev { left: 0.5rem; }
  .slide-next { right: 0.5rem; }
  .ss-hint { display: none; }
}
