/* ═══════════════════════════════════════════════════════════════
   CAROUSEL HERO — Frontend Styling
   Matches BananaGaming design system
   ═══════════════════════════════════════════════════════════════ */

.carousel-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  /* border-radius: 12px; */
  background: var(--bg-surface);
  aspect-ratio: 1920 / 720;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-dim);
}

.carousel-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(circle, rgba(255, 225, 53, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 5;
  border-radius: 0 0 12px 0;
  opacity: 0.6;
}

.carousel-hero.dark {
  background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-elevated) 100%);
}

/* ── Carousel Inner ── */
.carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 720;
}

.carousel-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 720;
  display: none !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.carousel-item.active {
  display: flex !important;
  animation: slideIn 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(4px);
  }
  50% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Video Background ── */
.carousel-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Dark Overlay for Better Text Readability ── */
.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 12, 14, 0.7) 0%, rgba(27, 29, 36, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Content Wrapper ── */
.carousel-item-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 60px 40px;
  gap: 40px;
  /* Safe zone for absolute positioned buttons (60px margin per LG guidelines) */
  padding-bottom: 120px;
  overflow: visible;
  max-width: 100%;
}

/* ── Left Column (Content) ── */
.carousel-left-content {
  flex: 1;
  min-width: 0;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-left-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
  animation: titleSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes titleSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) rotateZ(-1deg);
  }
  50% {
    transform: translateX(-10px) rotateZ(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateZ(0);
  }
}

@keyframes descriptionFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-left-content h1 .highlight {
  color: var(--brand-primary);
  text-shadow: 0 0 20px var(--brand-glow);
}

.carousel-left-content p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
  animation: descriptionFadeIn 0.7s ease-out 0.2s both;
}

/* ── Brand Logos ── */
.carousel-brand-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.carousel-brand-logos img {
  height: 36px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  animation: logoFadeIn 0.6s ease-out 0.05s both;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-brand-logos img:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px var(--brand-glow));
}

/* ── Buttons Container ── */
.carousel-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 8;
  justify-content: center;
  margin-top: auto;
  padding-top: 12px;
}

.carousel-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.carousel-buttons a.btn-primary {
  background: var(--brand-primary);
  color: #000;
  box-shadow: 0 0 22px var(--brand-glow);
}

.carousel-buttons a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(var(--brand-primary-rgb), 0.6);
}

.carousel-buttons a.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-normal);
}

.carousel-buttons a.btn-outline:hover {
  background: rgba(255, 225, 53, 0.1);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.carousel-buttons a.btn-secondary {
  background: rgba(255, 170, 0, 0.15);
  color: var(--brand-secondary);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.carousel-buttons a.btn-secondary:hover {
  background: rgba(255, 170, 0, 0.25);
  border-color: var(--brand-secondary);
}

/* ── Right Column (Featured Content) ── */
.carousel-right-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-right-content img,
.carousel-right-content video,
.carousel-right-content iframe {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--brand-dim);
  animation: mediaSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes mediaSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateX(40px) rotateY(-20deg);
    filter: blur(8px);
  }
  50% {
    transform: scale(0.95) translateX(15px) rotateY(-5deg);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0);
    filter: blur(0);
  }
}

.carousel-right-content iframe {
  border: none;
}

/* ── Counter Badge ── */
.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-normal);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 20px;
  z-index: 10;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.carousel-counter-current {
  color: var(--brand-primary);
  font-weight: 800;
}

/* ── Pagination Indicators ── */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 15;
  padding: 6px 10px;
  /* background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dim);
  border-radius: 20px; */
  animation: indicatorsFadeIn 0.7s ease-out 0.4s both;
}

@keyframes indicatorsFadeIn {
  0% {
    opacity: 0;
    transform: translateX(20px) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 225, 53, 0.5);
  background: rgba(255, 225, 53, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand-primary);
  box-shadow: 0 0 12px var(--brand-glow);
  border-color: var(--brand-primary);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 225, 53, 0.5);
  border-color: var(--brand-primary);
  transform: scale(1.2);
}

/* ── Navigation Controls (Hidden) ── */
.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .carousel-item-content {
    flex-direction: row;
    padding: 40px 30px;
    gap: 30px;
  }

  .carousel-left-content {
    max-width: none;
    text-align: center;
  }

  .carousel-left-content h1 {
    font-size: clamp(28px, 5vw, 44px);
  }

  .carousel-right-content {
    width: 100%;
    max-height: 300px;
  }

  .carousel-right-content img,
  .carousel-right-content video,
  .carousel-right-content iframe {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .carousel-buttons {
    bottom: 30px;
    right: 30px;
  }

  .carousel-brand-logos {
    justify-content: center;
  }

  .carousel-control-prev {
    right: 62px;
    bottom: 20px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .carousel-control-next {
    right: 20px;
    bottom: 20px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* Small/Medium Devices (561px - 768px) - sm/md breakpoint */
@media (max-width: 768px) and (min-width: 561px) {
  .carousel-hero {
    aspect-ratio: 9 / 12;
  }

  .carousel-inner {
    aspect-ratio: 9 / 12;
  }

  .carousel-item {
    aspect-ratio: 9 / 12;
  }

  .carousel-item-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 20px;
  }

  .carousel-left-content {
    max-width: none;
    text-align: center;
    width: 100%;
    gap: 12px;
  }

  .carousel-left-content h1 {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 6px;
  }

  .carousel-left-content p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .carousel-buttons {
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    padding-top: 8px;
  }

  .carousel-buttons a {
    padding: 10px 16px;
    font-size: 10px;
  }

  .carousel-right-content {
    width: 100%;
    max-height: 200px;
    margin-top: 12px;
  }

  .carousel-right-content img,
  .carousel-right-content video,
  .carousel-right-content iframe {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .carousel-indicators {
    gap: 10px;
    bottom: 20px;
    right: 16px;
    padding: 6px 12px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    transform: scale(1.25);
  }

  .carousel-counter {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 10px;
  }
}


/* Mobile (481px - 560px) */
@media (max-width: 560px) {
  .carousel-hero {
    aspect-ratio: 2 / 3;
  }

  .carousel-inner {
    aspect-ratio: 2 / 3;
  }

  .carousel-item {
    aspect-ratio: 2 / 3;
  }

  .carousel-item-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 18px;
    gap: 14px;
    height: 100%;
  }

  .carousel-left-content {
    max-width: none;
    text-align: center;
    width: 100%;
    gap: 10px;
  }

  .carousel-left-content h1 {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 6px;
  }

  .carousel-left-content p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .carousel-buttons {
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    padding-top: 6px;
  }

  .carousel-buttons a {
    padding: 9px 14px;
    font-size: 10px;
  }

  .carousel-right-content {
    width: 100%;
    max-height: 180px;
    margin-top: 8px;
  }

  .carousel-right-content img,
  .carousel-right-content video,
  .carousel-right-content iframe {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .carousel-indicators {
    gap: 8px;
    bottom: 10px;
    right: 14px;
    padding: 4px 8px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .carousel-dot.active {
    transform: scale(1.15);
  }

  .carousel-counter {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-hero {
    aspect-ratio: 2 / 3;
    border-radius: 8px;
  }

  .carousel-inner {
    aspect-ratio: 2 / 3;
  }

  .carousel-item {
    aspect-ratio: 2 / 3;
  }

  .carousel-item-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 14px;
    gap: 12px;
    height: 100%;
  }

  .carousel-left-content {
    max-width: none;
    text-align: center;
    width: 100%;
    gap: 10px;
  }

  .carousel-left-content h1 {
    font-size: clamp(18px, 7vw, 26px);
    margin-bottom: 4px;
  }

  .carousel-left-content p {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .carousel-buttons {
    gap: 6px;
    margin-top: 6px;
    width: 100%;
    padding-top: 4px;
    flex-wrap: wrap;
  }

  .carousel-buttons a {
    padding: 8px 12px;
    font-size: 9px;
  }

  .carousel-buttons a::before {
    display: none;
  }

  .carousel-right-content {
    width: 100%;
    max-height: 160px;
  }

  .carousel-right-content img,
  .carousel-right-content video,
  .carousel-right-content iframe {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .carousel-indicators {
    gap: 6px;
    bottom: 10px;
    right: 12px;
    padding: 4px 8px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .carousel-dot.active {
    transform: scale(1.1);
  }

  .carousel-counter {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 9px;
  }
}

/* Tablet / Medium Devices (769px - 1024px) - Sweetspot between desktop and mobile */
@media (max-width: 1024px) and (min-width: 769px) {
  .carousel-hero {
    aspect-ratio: 4 / 3;
  }

  .carousel-inner {
    aspect-ratio: 4 / 3;
  }

  .carousel-item {
    aspect-ratio: 4 / 3;
  }

  .carousel-item-content {
    padding: 35px 28px;
    gap: 25px;
    /* padding-right: 350px; */
    padding-bottom: 110px;
  }

  .carousel-left-content {
    max-width: none;
    flex: 0;
  }

  .carousel-left-content h1 {
    font-size: clamp(26px, 5vw, 40px);
    margin-bottom: 12px;
  }

  .carousel-left-content p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .carousel-buttons {
    bottom: 32px;
    right: 32px;
    gap: 10px;
  }

  .carousel-indicators {
    gap: 8px;
    bottom: 10px;
    right: 18px;
    padding: 5px 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    transform: scale(1.25);
  }

  .carousel-buttons a {
    padding: 11px 20px;
    font-size: 11px;
  }

  .carousel-right-content {
    width: 100%;
    flex: 1;
    max-height: 350px;
  }

  .carousel-right-content img,
  .carousel-right-content video,
  .carousel-right-content iframe {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}





/* ─────────────────────────────────────────────────────────────
   DARK MODE / THEME VARIANTS
   ───────────────────────────────────────────────────────────── */

.carousel-hero.variant-dark {
  background: var(--bg-overlay);
}

.carousel-hero.variant-light {
  background: rgba(255, 255, 255, 0.02);
}

.carousel-hero.variant-gradient {
  background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-elevated) 100%);
}

/* ─────────────────────────────────────────────────────────────
   ANIMATION VARIANTS
   ───────────────────────────────────────────────────────────── */

.carousel-hero.fade .carousel-item.active {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-hero.zoom .carousel-item.active {
  animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────────────────────────── */

.carousel-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 225, 53, 0.12);
  z-index: 20;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 225, 53, 0.08);
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffe135 0%, #ffd700 50%, #ffb700 100%);
  width: 0%;
  animation: progressFill 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 12px rgba(255, 225, 53, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
}

@keyframes progressFill {
  0% {
    width: 0%;
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 225, 53, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 225, 53, 0.9), inset 0 0 6px rgba(255, 255, 255, 0.4);
  }
  100% {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 225, 53, 0.6), inset 0 0 4px rgba(255, 255, 255, 0.2);
  }
}
}
