/* ============================================
   Subcategory Carousel – carousel.css
   Full-bleed photo card with title overlay
   ============================================ */

:root {
  --scc-card-radius:   12px;
  --scc-card-h:        360px;
  --scc-gap:           20px;
  --scc-btn-size:      44px;
  --scc-transition:    .4s cubic-bezier(.4,0,.2,1);
  --scc-accent:        #c9a84c;   /* gold — tweak to match your theme */
}

/* ── Wrapper ── */
.scc-wrapper {
  position: relative;
  width: 100%;
  padding: 8px 0 44px;
  box-sizing: border-box;
  font-family: inherit;
}

/* ── Track container ── */
.scc-track-container {
  overflow: hidden;
  margin: 0 56px;
}

/* ── Track ── */
.scc-track {
  display: flex;
  gap: var(--scc-gap);
  transition: transform var(--scc-transition);
  will-change: transform;
  align-items: stretch;
}

/* ── Card — full bleed photo ── */
.scc-card {
  flex: 0 0 calc((100% - var(--scc-gap) * 2) / 3);
  min-width: 200px;
  height: var(--scc-card-h);
  border-radius: var(--scc-card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0,0,0,.28);
  transition: transform var(--scc-transition), box-shadow var(--scc-transition);
}

.scc-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 16px 44px rgba(0,0,0,.38);
}

/* ── Link fills the whole card ── */
.scc-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* ── Thumbnail — full bleed ── */
.scc-thumbnail {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scc-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s ease;
  image-rendering: auto;
  filter: none;
  opacity: 1;
}

.scc-card:hover .scc-thumbnail img {
  transform: scale(1.07);
}

/* ── Dark gradient overlay — bottom only, image stays clear ── */
.scc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.30) 30%,
    transparent 55%
  );
  transition: opacity var(--scc-transition);
}

.scc-card:hover .scc-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    transparent 58%
  );
}

/* ── Placeholder ── */
.scc-thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2a4a 0%, #0d1b2e 100%);
}

.scc-placeholder-letter {
  font-size: 96px;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  line-height: 1;
  text-transform: uppercase;
  font-family: Georgia, serif;
  user-select: none;
}

/* ── Card body — pinned to bottom ── */
.scc-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

/* Title — pure white, bold, centered */
.scc-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  letter-spacing: .01em;
}

/* Description — hidden by default, fades in on hover */
.scc-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,.80);
  margin: 0;
  line-height: 1.5;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .35s ease;
}

.scc-card:hover .scc-card-desc {
  max-height: 60px;
  opacity: 1;
}

/* Post count badge */
.scc-post-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--scc-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  opacity: 0;
  transition: opacity .35s ease;
}

.scc-card:hover .scc-post-count {
  opacity: 1;
}

/* CTA arrow */
.scc-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--scc-accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.scc-card:hover .scc-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav Buttons ── */
.scc-btn {
  position: absolute;
  top: calc(50% - 22px);   /* vertically centered on card height */
  transform: translateY(-50%);
  width: var(--scc-btn-size);
  height: var(--scc-btn-size);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background var(--scc-transition), border-color var(--scc-transition), transform .2s ease;
  z-index: 10;
  padding: 0;
}

.scc-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.7);
}

.scc-btn:active {
  transform: translateY(-50%) scale(.90);
}

.scc-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.scc-btn-prev { left: 6px; }
.scc-btn-next { right: 6px; }

.scc-btn[disabled] {
  opacity: .25;
  cursor: not-allowed;
}

/* ── Dots ── */
.scc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.scc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--scc-transition), width var(--scc-transition);
}

/* If on dark background; for light BG use darker dots */
@media (prefers-color-scheme: light) {
  .scc-dot { background: #b0b8c8; }
}

.scc-dot.active {
  background: var(--scc-accent);
  width: 26px;
  border-radius: 4px;
}

/* ── Error ── */
.scc-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .scc-card {
    flex: 0 0 calc((100% - var(--scc-gap)) / 2);
  }
  :root { --scc-card-h: 320px; }
}

@media (max-width: 680px) {
  .scc-track-container { margin: 0 46px; }
  .scc-card {
    flex: 0 0 100%;
  }
  :root { --scc-card-h: 280px; }
  .scc-card-title { font-size: 17px; }
}

