/**
 * Hero section slider — directly under topbar (sibling of .app-content).
 * Responsive: width fits app container, height maintains 900:400 (2.25:1) aspect ratio.
 */

/* First child of scrollable area: must not shrink */
.app-content > .app-hero {
  flex: 0 0 auto;
  min-height: auto;
  margin-top: 1px;
  margin-bottom: 10px;
  width: 100%;
}

.app-hero {
  width: 100%;
  flex-shrink: 0;
  background: var(--accent);
  /* Maintain 900:400 (2.25:1) aspect ratio */
  aspect-ratio: 900 / 400;
  min-height: auto;
  overflow: hidden;
  box-sizing: border-box;
}

.app-hero .carousel {
  width: 100%;
  height: 100%;
}

.app-hero .carousel-inner {
  width: 100%;
  height: 100%;
}

.app-hero .carousel-item {
  width: 100%;
  height: 100%;
  background: #1a1510;
}

.app-hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-hero .carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* News marquee below hero: dark bar, speaker icon, scrolling text */
.app-content > .news-marquee {
  flex: 0 0 auto;
  margin: 0 6px 6px;
  width: calc(100% - 24px);
  max-width: 100%;
  box-sizing: border-box;
}
.news-marquee {
  display: flex;
  align-items: center;
  gap: 0;
  height: 25px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.news-marquee__icon-wrap {
  flex-shrink: 0;
  width: 35px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 4px;
  margin: 8px;
}
.news-marquee__icon {
  color: #fff;
  font-size: 1.15rem;
}
.news-marquee__track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px 0 4px;
}
.news-marquee__inner {
  display: inline-flex;
  white-space: nowrap;
  animation: news-marquee-scroll 35s linear infinite;
}
.news-marquee__text {
  display: inline-block;
  padding-right: 3em;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.4;
}
@keyframes news-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Carousel indicators (dots) - positioned at the bottom of the banner */
.app-hero .carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  border: none;
  width: 100%;
  z-index: 10;
}

.app-hero .carousel-indicators button {
  width: 24px;
  height: 4px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.app-hero .carousel-indicators button.active {
  background: #F7D255;
  transform: scale(1.1);
}

.app-hero .carousel-indicators button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
}

/* Hide Bootstrap prev/next arrows */
.app-hero .carousel-control-prev,
.app-hero .carousel-control-next {
  display: none;
}

/* So hero is not covered: category bar flows after hero inside app-content */
.app-content .feature-bar {
  position: relative;
  top: auto;
}
