/*
 * Styles for Stacked Blog Cards Shortcode
 */

body {
  overflow-x: hidden;
}

.sbc-container {
  --sbc-accent: #00ff80;
  --sbc-black: #111111;
  --sbc-white: #ffffff;
  --sbc-muted: #7b7b7b;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  overflow: visible;
  width: 100%;
}

.sbc-swiper {
  width: min(100%, 380px);
  overflow: visible;
  padding-bottom: 68px;
  position: relative;
  touch-action: pan-y;
}

.sbc-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-radius: 20px;
  background-color: #f1f1f1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.sbc-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 52%);
  pointer-events: none;
}

.sbc-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.sbc-content-box {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: var(--sbc-white);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sbc-slide:hover .sbc-content-box {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sbc-text-wrap {
  flex: 1;
  padding-right: 15px;
}

.sbc-category {
  margin: 0 0 8px;
  color: var(--sbc-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sbc-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.3;
}

.sbc-excerpt {
  font-family: inherit;
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sbc-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  background-color: transparent;
}

.sbc-slide:hover .sbc-icon-wrap {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.sbc-icon {
  width: 18px;
  height: 18px;
  stroke: #1a1a1a;
  transition: stroke 0.3s ease;
}

.sbc-slide:hover .sbc-icon {
  stroke: #ffffff;
}

.sbc-controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.sbc-nav {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sbc-black);
  color: var(--sbc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sbc-nav:hover {
  transform: scale(1.04);
  opacity: 0.92;
}

.sbc-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.sbc-pagination {
  position: static !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sbc-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 99px;
  background: #b8b8b8;
  opacity: 1;
  transition: width 0.2s ease, background 0.2s ease;
}

.sbc-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--sbc-black);
}

.sbc-container.is-static .sbc-controls {
  display: none;
}

.sbc-empty {
  margin: 0;
  color: #444444;
}

@media (max-width: 767px) {
  .sbc-container {
    padding: 42px 12px;
  }

  .sbc-slide {
    min-height: 430px;
  }

  .sbc-content-box {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .sbc-title {
    font-size: 15px;
  }

  .sbc-excerpt {
    font-size: 12px;
  }
}

/* Slider teljes hover zona kurzorral */
@media (hover: hover) and (pointer: fine) {
  .sbc-swiper,
  .sbc-swiper a,
  .sbc-swiper .sbc-slide {
    cursor: none !important;
  }

  .sbc-drag-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 120px;
    height: auto;
    display: block !important;
    max-width: none !important;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
    z-index: 999999;
    transition: opacity 180ms ease, transform 180ms ease;
    image-rendering: -webkit-optimize-contrast;
  }

  .sbc-drag-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .sbc-drag-cursor.is-down {
    transform: translate(-50%, -50%) scale(0.9);
  }
}
