/* ============================= */
/* APP SHOWCASE CAROUSEL          */
/* Sekce "Nahlédněte do aplikace" */
/* ============================= */

.app-showcase {
  text-align: center;
  margin-top: 30px;
}

.app-showcase-title {
  color: #2e8b57;
  margin: 0 0 6px;
}

.app-showcase-subtitle {
  color: #555;
  margin: 0 0 30px;
  font-size: 1.05em;
}

.app-carousel {
  position: relative;
  outline: none;
}

.app-carousel-viewport {
  position: relative;
  height: clamp(260px, 38vw, 440px);
  margin: 0 auto;
}

.app-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 78%);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease;
  cursor: pointer;
}

.app-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.6s ease;
  background: #eef8ee;
}

.app-carousel-slide.is-active {
  cursor: default;
}

.app-carousel-slide.is-active img {
  box-shadow: 0 18px 40px rgba(34, 139, 34, 0.28), 0 4px 14px rgba(0, 0, 0, 0.12);
}

.app-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #228B22;
  font-size: 1.6em;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-carousel-arrow:hover,
.app-carousel-arrow:focus-visible {
  background: #228B22;
  color: #ffffff;
}

.app-carousel-prev { left: 4px; }
.app-carousel-next { right: 4px; }

.app-carousel-caption {
  min-height: 1.6em;
  margin: 22px 0 6px;
  font-weight: 700;
  font-size: 1.15em;
  color: #1e5f2e;
}

.app-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.app-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cfe8cf;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.app-carousel-dot.is-active {
  background: #228B22;
  transform: scale(1.3);
}

.app-carousel-dot:focus-visible,
.app-carousel-arrow:focus-visible {
  outline: 2px solid #228B22;
  outline-offset: 2px;
}

/* ============================= */
/* RESPONSIVE                     */
/* ============================= */
@media (max-width: 768px) {
  .app-carousel-viewport { height: clamp(220px, 55vw, 320px); }
  .app-carousel-slide { width: 82%; }
  .app-carousel-arrow { width: 36px; height: 36px; font-size: 1.3em; }
  .app-carousel-prev { left: -4px; }
  .app-carousel-next { right: -4px; }
}

@media (max-width: 480px) {
  .app-carousel-viewport { height: clamp(180px, 62vw, 260px); }
  .app-carousel-caption { font-size: 1em; }
}

@media (prefers-reduced-motion: reduce) {
  .app-carousel-slide,
  .app-carousel-slide img,
  .app-carousel-dot {
    transition: none !important;
  }
}
