/***************************************************************
 * HOME PAGE — PRODUCTION (Royal Tickets)
 * File: /assets/css/pages/home.css
 *
 * Notes:
 * - This file is scoped to .lp-* classes to avoid fighting layout CSS.
 * - Uses existing layout tokens (gold/black/glass) via :root variables.
 ***************************************************************/

/* ============================================================
   ACCESSIBILITY HELPERS
============================================================ */
.lp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================================
   CONTAINER
============================================================ */
.lp-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ============================================================
   HERO SECTION (Mobile-first)
============================================================ */
.lp-hero {
  position: relative;
  min-height: 78vh;
  background: url("/assets/img/hero-image.jpg") center/cover no-repeat;
  display: grid;
  place-items: center;
  padding: 4.5rem 0 3rem;
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lp-hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 0.9s ease;
}

.lp-hero-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 850;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(245, 221, 102, 0.5);
}

.lp-hero-subtitle {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   SEARCH BAR
============================================================ */
.lp-search-bar {
  margin: 1.6rem auto 1.05rem;
  width: 100%;
  max-width: 680px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 221, 102, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  gap: 0.6rem;
}

.lp-search-bar i {
  color: var(--gold-light);
  opacity: 0.9;
}

.lp-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 1rem;
  min-height: 44px;
}

.lp-search-bar button {
  padding: 0.6rem 1.1rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)) !important;
  color: var(--black) !important;
  border-radius: 12px;
  font-weight: 750;
  transition: 0.22s ease;
}

.lp-search-bar button:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 221, 102, 0.45);
}

.lp-browse-btn,
.lp-organizer-btn,
.lp-final-btn {
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)) !important;
  color: var(--black) !important;
  border-radius: 12px;
  font-weight: 750;
  transition: 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lp-browse-btn:hover,
.lp-organizer-btn:hover,
.lp-final-btn:hover {
  opacity: 0.94;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 221, 102, 0.45);
}

/* ============================================================
   HERO CATEGORIES
============================================================ */
.lp-hero-categories {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}

/* Chips (tablet/desktop) hidden on mobile */
.lp-category-chips {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.lp-category-chip {
  border: 1px solid rgba(245, 221, 102, 0.5);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.lp-category-chip i {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
}

.lp-category-chip:hover {
  background: rgba(245, 221, 102, 0.1);
}

.lp-category-chip.is-active {
  background: var(--gold-light);
  color: var(--black);
  border-color: var(--gold-light);
}

/* Dropdown (mobile) */
.lp-category-select-wrapper {
  display: block;
  width: 100%;
}

.lp-category-select {
  width: 100%;
  max-width: 320px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 221, 102, 0.7);
  background: rgba(0, 0, 0, 0.8);
  color: var(--gold-light);
  font-size: 0.95rem;
  min-height: 44px;
}

/* ============================================================
   SECTIONS
============================================================ */
.lp-section {
  padding: 4rem 0 3.2rem;
}

.lp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.lp-section-header--center {
  justify-content: center;
  text-align: center;
}

.lp-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(245, 221, 102, 0.4);
}

.lp-section-note {
  margin: 0.35rem auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.lp-view-all-link {
  font-size: 0.95rem;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 221, 102, 0.6);
  padding-bottom: 2px;
}

.lp-empty {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.75rem;
}

/* ============================================================
   EVENT CARDS
============================================================ */
.lp-event-card {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(245, 221, 102, 0.22);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  display: block;
}

.lp-event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.92;
}

.lp-event-content {
  padding: 1rem;
}

.lp-event-content h3 {
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.lp-event-content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.lp-price {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--gold-light);
  font-weight: 800;
}

.lp-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(245, 221, 102, 0.32);
}

/* ============================================================
   CAROUSEL (Swipe-first on mobile)
============================================================ */
.lp-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lp-carousel-window {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  flex: 1;
  border-radius: 16px;
  outline: none;
}

.lp-carousel-window::-webkit-scrollbar {
  height: 6px;
}
.lp-carousel-window::-webkit-scrollbar-thumb {
  background: rgba(245, 221, 102, 0.6);
  border-radius: 999px;
}

.lp-carousel-track {
  display: flex;
  gap: 1.2rem;
  padding-right: 0.2rem;
}

.lp-carousel-track .lp-event-card {
  scroll-snap-align: start;
  flex: 0 0 88%;
}

/* Carousel arrows (hidden on small screens via media query) */
.lp-carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(245, 221, 102, 0.7);
  background: rgba(0, 0, 0, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.lp-carousel-arrow:hover {
  background: rgba(245, 221, 102, 0.08);
  transform: translateY(-1px);
}

.lp-carousel-arrow i {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

/* ============================================================
   WHY CHOOSE US
============================================================ */
.lp-benefits-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
}

.lp-benefit-card {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(245, 221, 102, 0.22);
  padding: 1.15rem;
  border-radius: 14px;
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.lp-benefit-card i {
  color: var(--gold-light);
}

/* ============================================================
   TRUSTED ORGANIZERS (INFINITE MARQUEE)
============================================================ */
.lp-partners {
  position: relative;
}

/* Marquee wrapper with subtle edge fades */
.lp-marquee {
  position: relative;
  margin: 1.5rem auto 1.4rem;
  max-width: 980px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(245, 221, 102, 0.18);
  background: rgba(0, 0, 0, 0.45);
}

.lp-marquee::before,
.lp-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.lp-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92), transparent);
}

.lp-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.92), transparent);
}

.lp-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1rem;
  width: max-content;

  /* Infinite loop */
  animation: lp-marquee-scroll 18s linear infinite;
}

.lp-marquee:hover .lp-marquee-track {
  animation-play-state: paused;
}

.lp-logo-pill {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 54px;
  min-width: 160px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 221, 102, 0.18);
}

.lp-logo-pill img {
  height: 34px;
  width: auto;
  opacity: 0.9;
  filter: saturate(1.05);
}

/* ============================================================
   FINAL CTA
============================================================ */
.lp-final-cta {
  text-align: center;
  padding: 3.6rem 1rem;
  background: linear-gradient(180deg, rgba(245, 221, 102, 0.18), transparent);
}

.lp-final-cta h2 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  font-weight: 850;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth infinite marquee: translate half the track (since we duplicated logos) */
@keyframes lp-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS
============================================================ */
@media (min-width: 640px) {
  .lp-hero-title {
    font-size: 2.5rem;
  }

  .lp-carousel-track .lp-event-card {
    flex: 0 0 70%;
  }

  .lp-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .lp-hero {
    min-height: 86vh;
  }

  .lp-hero-title {
    font-size: 3rem;
  }

  /* Switch from dropdown to chips */
  .lp-category-chips {
    display: flex;
  }
  .lp-category-select-wrapper {
    display: none;
  }

  .lp-section-title {
    font-size: 1.9rem;
  }

  .lp-carousel-track .lp-event-card {
    flex: 0 0 calc((100% - 2.4rem) / 3);
  }
}

@media (max-width: 768px) {
  /* Mobile-first: arrows hidden (swipe scroll) */
  .lp-carousel-arrow {
    display: none;
  }
}

/* Fine-tune marquee speed for small screens */
@media (max-width: 520px) {
  .lp-marquee-track {
    animation-duration: 14s;
  }

  .lp-logo-pill {
    min-width: 140px;
  }
}
