/* =========================================
   HOMEPAGE STYLES
   Uses design tokens from design-system.css
   ========================================= */

/* ===== HERO CAROUSEL ===== */
.bat-hero {
  margin-bottom: 0;
}

.bat-hero-slide {
  aspect-ratio: 16 / 6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.bat-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bat-carousel-overlay);
  pointer-events: none;
}

.bat-hero-caption {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
}
.bat-hero-caption h2 {
  font-size: var(--bat-font-size-3xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Carousel custom arrows */
.bat-carousel-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bat-text-primary);
  font-size: 1rem;
  transition: all var(--bat-transition-fast);
}
.bat-carousel-arrow:hover {
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-md);
}

/* Hide default Bootstrap carousel arrows */
.bat-hero .carousel-control-prev-icon,
.bat-hero .carousel-control-next-icon {
  display: none;
}

/* Carousel indicators */
.bat-hero .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  opacity: 0.5;
  margin-bottom: 4rem;
}
.bat-hero .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--bat-blue);
}

/* ===== SEARCH BAR ===== */
.bat-search-bar {
  margin-top: -35px;
  max-width: 960px;
  position: relative;
}

.bat-search-bar .form-control,
.bat-search-bar .input-group-text {
  border-color: var(--bat-gray-300);
  font-size: var(--bat-font-size-sm);
  padding: 0.55rem 0.75rem;
}

.bat-search-bar .form-control:focus {
  border-color: var(--bat-blue);
  box-shadow: 0 0 0 0.2rem var(--bat-blue-100);
}

.bat-btn-search {
  background: var(--bat-cta-gradient);
  color: var(--bat-text-on-accent);
  border: none;
  border-radius: var(--bat-radius-md);
  font-weight: 600;
  font-size: var(--bat-font-size-sm);
  padding: 0.55rem 1rem;
  transition: all var(--bat-transition-fast);
}
.bat-btn-search:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--bat-shadow-md);
  color: var(--bat-text-on-accent);
}

/* ===== SEARCH RESULTS DROPDOWN ===== */
.bat-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -8px;
  background: var(--bat-white);
  border-radius: 0 0 var(--bat-radius-lg) var(--bat-radius-lg);
  box-shadow: var(--bat-shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  z-index: 20;
}
.bat-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--bat-text-primary);
  transition: background var(--bat-transition-fast);
  border-bottom: 1px solid var(--bat-gray-200);
}
.bat-search-item:last-child { border-bottom: none; }
.bat-search-item:hover {
  background: var(--bat-gray-100);
  color: var(--bat-text-primary);
}
.bat-search-thumb {
  width: 80px;
  aspect-ratio: 16 / 9;
  border-radius: var(--bat-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.bat-search-title {
  font-weight: 600;
  font-size: var(--bat-font-size-sm);
  line-height: 1.3;
}
.bat-search-title mark {
  background: var(--bat-blue-100);
  color: var(--bat-blue-dark);
  padding: 0 2px;
  border-radius: 2px;
}
.bat-search-meta {
  font-size: var(--bat-font-size-xs);
  color: var(--bat-text-secondary);
  margin-top: 2px;
}
.bat-search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--bat-text-muted);
  font-size: var(--bat-font-size-sm);
}

/* ===== EVENTS SECTION ===== */
.bat-events-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Category filter bar */
.bat-category-bar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bat-category-bar::-webkit-scrollbar {
  display: none;
}

.bat-category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  min-width: 72px;
  border: 1.5px solid var(--bat-gray-300);
  border-radius: var(--bat-radius-lg);
  background: var(--bat-white);
  color: var(--bat-text-secondary);
  font-size: var(--bat-font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--bat-transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.bat-category-chip i {
  font-size: 1.15rem;
}
.bat-category-chip:hover {
  border-color: var(--bat-blue);
  color: var(--bat-blue);
  background: var(--bat-blue-50);
}
.bat-category-chip.active {
  background: var(--bat-blue);
  border-color: var(--bat-blue);
  color: var(--bat-white);
}

/* ===== EVENT CARD ===== */
.bat-event-card {
  background: var(--bat-bg-card);
  border-radius: var(--bat-radius-lg);
  overflow: hidden;
  box-shadow: var(--bat-shadow-card);
  transition: transform var(--bat-transition-base), box-shadow var(--bat-transition-base);
}
.bat-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bat-shadow-card-hover);
}

/* Image wrapper */
.bat-event-card__img-wrapper {
  aspect-ratio: 1600 / 900;
}
.bat-event-card__img {
  height: 100%;
  object-fit: cover;
  transition: transform var(--bat-transition-slow);
}
.bat-event-card:hover .bat-event-card__img {
  transform: scale(1.05);
}

/* Price badge */
.bat-price-badge {
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bat-blue);
  color: var(--bat-text-on-accent);
  font-size: var(--bat-font-size-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--bat-radius-sm);
}

/* Action icons (share) */
.bat-event-card__actions {
  top: 0.75rem;
  right: 0.75rem;
}
.bat-icon-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bat-gray-700);
  cursor: pointer;
  transition: all var(--bat-transition-fast);
  font-size: 0.8rem;
}
.bat-icon-btn:hover {
  background: var(--bat-white);
  color: var(--bat-blue);
  box-shadow: var(--bat-shadow-sm);
}

/* Date block */
.bat-date-block {
  line-height: 1;
}
.bat-date-block__month {
  font-size: var(--bat-font-size-xs);
  color: var(--bat-blue);
  letter-spacing: 0.5px;
}
.bat-date-block__day {
  font-size: var(--bat-font-size-2xl);
  color: var(--bat-text-primary);
  line-height: 1.25;
}

/* Event title */
.bat-event-card__title {
  font-size: var(--bat-font-size-base);
  color: var(--bat-text-primary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta info icon color */
.bat-meta-icon {
  color: var(--bat-blue);
  width: 14px;
  text-align: center;
}

/* Load more button */
.bat-btn-load-more {
  background: transparent;
  border: 2px solid var(--bat-blue);
  color: var(--bat-blue);
  font-weight: 600;
  font-size: var(--bat-font-size-sm);
  transition: all var(--bat-transition-fast);
}
.bat-btn-load-more:hover {
  background: var(--bat-blue);
  color: var(--bat-text-on-accent);
  transform: translateY(-2px);
  box-shadow: var(--bat-shadow-md);
}

/* ===== CTA SECTION ===== */
.bat-cta-section {
  background: var(--bat-cta-gradient);
}

.bat-cta-btn-primary {
  background: var(--bat-white);
  color: var(--bat-blue-dark);
  border: none;
  font-weight: 600;
  transition: all var(--bat-transition-fast);
}
.bat-cta-btn-primary:hover {
  background: var(--bat-gray-100);
  color: var(--bat-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--bat-shadow-lg);
}

.bat-cta-btn-outline {
  background: transparent;
  color: var(--bat-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: all var(--bat-transition-fast);
}
.bat-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bat-white);
  color: var(--bat-white);
}

/* Feature cards in CTA */
.bat-feature-card {
  background: rgba(255, 255, 255, 0.15);
  color: var(--bat-white);
  backdrop-filter: blur(4px);
  transition: all var(--bat-transition-base);
}
.bat-feature-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== LINK RESET (homepage scoped) ===== */
.bat-event-col a {
  color: inherit;
}
.bat-event-col a:hover {
  color: inherit;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .bat-hero-slide {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .bat-hero .carousel-control-prev,
  .bat-hero .carousel-control-next {
    display: none;
  }
  .bat-hero .carousel-indicators {
    display: none;
  }
  .bat-search-bar {
    margin-top: -20px;
  }
  .bat-hero .carousel-indicators button {
    margin-bottom: 2rem;
  }
  .bat-events-section {
    padding-top: 2rem;
  }
}
