/* ==========================================================================
   carouselPostCard Component Styles
   Matches reference UI for Carousel Posts section under Library tab:
   - Centered section header ("Carousel Posts" + subtitle)
   - Outer card container with 8px border-radius
   - Light preview thumbnail container with slide dots
   - Centered title and description text with smooth slide transition
   - Bottom action row with Left Arrow, center Download button, and Right Arrow
   ========================================================================== */

/* Section Container */
.carousel-post-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Section Header */
.carousel-post-header {
  text-align: center;
  margin-bottom: 14px;
}

.carousel-post-header-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 3px 0;
}

.carousel-post-header-subtitle {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 400;
  color: #374151;
  line-height: 1.4;
  margin: 0;
}

/* Outer Card Container */
.carousel-post-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  width: 100%;
}

/* Preview Thumbnail Box */
.carousel-post-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #0f172a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.12s ease;
}

.carousel-post-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.carousel-post-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3.5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Subtle Dots Indicator inside Thumbnail bottom */
.carousel-post-dots {
  position: absolute;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.carousel-post-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-post-dot.is-active {
  background-color: #5170FF;
  transform: scale(1.3);
}

/* Content Details Area */
.carousel-post-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 4px;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.carousel-post-body.is-animating,
.carousel-post-thumb.is-animating {
  opacity: 0.4;
  transform: translateY(1px);
}

.carousel-post-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.carousel-post-description {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 400;
  color: #374151;
  line-height: 1.4;
  margin: 0;
  max-width: 290px;
}

/* Bottom Action Row (Left Arrow + Download Button + Right Arrow) */
.carousel-post-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.carousel-post-nav-btn {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.carousel-post-nav-btn:hover {
  background-color: #f9fafb;
  border-color: #dce1e8;
}

.carousel-post-nav-btn:active {
  transform: scale(0.93);
  background-color: #f3f4f6;
}

.carousel-post-download-btn {
  flex: 1;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-post-download-btn:hover {
  background-color: #f9fafb;
  border-color: #dce1e8;
}

.carousel-post-download-btn:active {
  transform: scale(0.99);
  background-color: #f3f4f6;
}
