/* ============================================
   Realms Section — Swiper Carousel
   ============================================ */
.realms__header {
  text-align: center;
  margin-bottom: 48px;
}

.realms__header .section-subtitle {
  margin: 0 auto;
}

.realms__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-container), transparent);
  margin: 20px auto 0;
}

/* Swiper base overrides */
.realms-swiper {
  position: relative;
  padding-bottom: 60px;
}

.realms-swiper .swiper-wrapper {
  align-items: stretch;
}

.realms-swiper .swiper-slide {
  height: auto;
}

/* Card styling */
.carousel__card {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--color-outline-variant);
  background: var(--color-surface-container);
  transition: all 0.35s ease;
  width: 100%;
}

.carousel__card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.85);
  transition: all 0.5s ease;
  background: var(--color-surface-container);
}

.carousel__card:hover .carousel__image {
  filter: brightness(0.65) saturate(1);
  transform: scale(1.05);
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 14, 17, 0.95) 100%);
}

.carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.carousel__map-name {
  font-family: var(--font-headline);
  font-size: var(--text-headline-md-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-on-surface);
  margin-bottom: 8px;
}

.carousel__map-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel__map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-container);
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.06);
}

.carousel__map-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Navigation Arrows */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 19, 23, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-outline-variant);
  color: var(--color-on-surface-variant);
  transition: all 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.carousel__btn:hover {
  border-color: var(--color-primary-container);
  color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Override Swiper default bullet navigation */
.swiper-button-prev:after,
.swiper-button-next:after {
  display: none;
}

/* Dots / Pagination */
.realms-pagination {
  position: relative !important;
  bottom: auto !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.realms-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-outline-variant);
  opacity: 1;
  transition: all 0.3s ease;
  border: none;
}

.realms-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary-container);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  transform: scale(1.3);
}

.realms-pagination .swiper-pagination-bullet:hover {
  background: var(--color-secondary);
}
