/**
 * SimCzech Carousel Block — Standalone carousel component styles.
 * Prefix: .sc-cblock (SimCzech Carousel Block)
 */

/* ── Container ──────────────────────────────────────────── */
.sc-cblock {
  margin: 2rem 0;
  position: relative;
}

/* ── Heading ────────────────────────────────────────────── */
.sc-cblock__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sc-heading, #fff);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sc-cblock__heading-icon {
  font-size: 1.3rem;
}

/* ── Swiper container ───────────────────────────────────── */
.sc-cblock__swiper {
  overflow: hidden;
  padding-bottom: 2.5rem; /* room for pagination */
  position: relative;
}

/* ── Slide card ─────────────────────────────────────────── */
.sc-cblock__slide {
  height: auto;
}
.sc-cblock__card {
  display: flex;
  flex-direction: column;
  background: var(--sc-surface, rgba(30, 41, 59, 0.85));
  border-radius: var(--sc-card-radius, 12px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sc-cblock__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--sc-primary, #d4a843);
}

/* ── Image ──────────────────────────────────────────────── */
.sc-cblock__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: rgba(30,41,59,0.5);
  position: relative;
}
.sc-cblock__img--placeholder {
  background: linear-gradient(135deg, rgba(30,41,59,0.8) 0%, rgba(59,130,246,0.2) 100%);
}

/* ── Body ───────────────────────────────────────────────── */
.sc-cblock__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

/* ── Badge ──────────────────────────────────────────────── */
.sc-cblock__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-primary, #d4a843);
  background: rgba(212,168,67,0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

/* ── Title ──────────────────────────────────────────────── */
.sc-cblock__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sc-heading, #fff);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Perex ──────────────────────────────────────────────── */
.sc-cblock__perex {
  font-size: 0.85rem;
  color: var(--sc-text, #94a3b8);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Date ───────────────────────────────────────────────── */
.sc-cblock__date {
  font-size: 0.75rem;
  color: var(--sc-text, #64748b);
  margin-top: auto;
}

/* ── Navigation arrows ──────────────────────────────────── */
.sc-cblock__swiper .swiper-button-prev,
.sc-cblock__swiper .swiper-button-next {
  color: var(--sc-primary, #d4a843);
  background: rgba(15,23,42,0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.sc-cblock__swiper .swiper-button-prev:hover,
.sc-cblock__swiper .swiper-button-next:hover {
  background: rgba(15,23,42,0.95);
}
.sc-cblock__swiper .swiper-button-prev::after,
.sc-cblock__swiper .swiper-button-next::after {
  font-size: 16px;
}

/* ── Pagination dots ────────────────────────────────────── */
.sc-cblock__swiper .swiper-pagination-bullet {
  background: var(--sc-text, #94a3b8);
  opacity: 0.5;
}
.sc-cblock__swiper .swiper-pagination-bullet-active {
  background: var(--sc-primary, #d4a843);
  opacity: 1;
}

/* ── Footer link ────────────────────────────────────────── */
.sc-cblock__link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sc-primary, #d4a843);
  border: 1px solid var(--sc-primary, #d4a843);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sc-cblock__link:hover {
  background: var(--sc-primary, #d4a843);
  color: #0f172a;
}

/* ── 3D effects extra styling ───────────────────────────── */
.sc-cblock__swiper .swiper-slide-shadow-left,
.sc-cblock__swiper .swiper-slide-shadow-right {
  border-radius: var(--sc-card-radius, 12px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sc-cblock__heading {
    font-size: 1.2rem;
  }
  .sc-cblock__swiper .swiper-button-prev,
  .sc-cblock__swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }
  .sc-cblock__swiper .swiper-button-prev::after,
  .sc-cblock__swiper .swiper-button-next::after {
    font-size: 13px;
  }
  .sc-cblock__body {
    padding: 0.75rem;
  }
}
