/* ─── Inspiration / Slideshow ─────────────────────────────────────────────── */

.insp-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Loading */
.insp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--muted);
}

/* Empty state */
.insp-empty {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.insp-empty h2 { font-size: 1.4rem; color: var(--dark); margin-bottom: 10px; }
.insp-empty p  { color: var(--muted); margin-bottom: 24px; }

/* Slideshow wrapper */
.slideshow-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.slide-counter {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Slide card */
.slide {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  box-shadow: 0 4px 20px rgba(26,24,54,0.10);
  width: 100%;
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Invention name */
.invention-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 18px;
  min-height: 1.4em;
}

/* Before / After */
.before-after {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ba-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ba-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eee;
}

.ba-arrow {
  font-size: 2rem;
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 28px; /* offset for label */
}

/* Description */
.slide-description {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 12px;
  padding: 0 8px;
  line-height: 1.5;
}

/* Creator name */
.slide-creator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  min-height: 1.2em;
}

/* Poem */
.slide-poem {
  background: var(--dark);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
  position: relative;
}

.slide-poem::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 10px 10px 0 0;
}

.slide-poem .poem-icon {
  color: var(--purple);
  font-size: 1rem;
  margin-bottom: 8px;
}

.slide-poem p {
  color: var(--purple-light, #d4c8d8);
  font-size: 0.92rem;
  line-height: 1.8;
  font-style: italic;
  white-space: pre-line;
  margin: 0;
}

/* Navigation */
.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  background: var(--card);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { background: var(--dark); color: var(--card); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }

.dot-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 200px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.dot.active {
  background: var(--dark);
  transform: scale(1.2);
}

/* Auto-play progress bar */
.progress-bar-wrap {
  width: 100%;
  max-width: 400px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--purple);
  border-radius: 2px;
  width: 0%;
  transition: width linear;
}

/* Back link in footer */
.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--purple);
  font-size: 0.88rem;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
  .ba-arrow { font-size: 1.4rem; }
  .invention-title { font-size: 1.1rem; }
  .slide { padding: 18px 14px; }
}
