/* ============================================================
   ALL EVENTS PAGE
   File: /assets/css/pages/all-events.css
   Posters: 1200×800 (3:2)
============================================================ */

.lp-section {
  padding: 0.25rem 0 1.6rem;
}

.lp-container {
  width: 100%;
}

/* Header */
.lp-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.lp-section-title {
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

.lp-section-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

/* Grid */
.lp-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Card */
.lp-event-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 221, 102, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform;
}

.lp-event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 221, 102, 0.34);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* Poster wrapper – enforces 3:2 ratio (1200×800) */
.lp-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* perfect for 1200x800 */
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lp-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* crop nicely */
  object-position: center;
  transform: scale(1.01);
}

/* Overlay gradient for text contrast */
.lp-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 52%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

/* Badges */
.lp-badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lp-badge-started {
  background: rgba(245, 221, 102, 0.18);
  border-color: rgba(245, 221, 102, 0.32);
  color: rgba(245, 221, 102, 0.98);
}

.lp-badge-soldout {
  background: rgba(255, 59, 59, 0.16);
  border-color: rgba(255, 59, 59, 0.35);
  color: rgba(255, 170, 170, 0.95);
}

.lp-badge-free {
  background: rgba(56, 240, 159, 0.14);
  border-color: rgba(56, 240, 159, 0.26);
  color: rgba(200, 255, 230, 0.95);
}

/* Poster meta */
.lp-poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 221, 102, 0.18);
  border-radius: 12px;
  padding: 8px 10px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lp-meta-row i {
  width: 18px;
  height: 18px;
  color: rgba(245, 221, 102, 0.95);
}

/* Content */
.lp-event-content {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-event-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-price {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.95rem;

  background: rgba(245, 221, 102, 0.14);
  border: 1px solid rgba(245, 221, 102, 0.25);
  color: rgba(245, 221, 102, 0.96);
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
  font-size: 0.92rem;
}

.lp-cta i {
  width: 18px;
  height: 18px;
  color: rgba(245, 221, 102, 0.95);
}

/* Empty state */
.lp-empty {
  margin-top: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 221, 102, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1.1rem;
  text-align: center;
}

.lp-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 16px;
  background: rgba(245, 221, 102, 0.12);
  border: 1px solid rgba(245, 221, 102, 0.22);
}

.lp-empty-icon i {
  width: 26px;
  height: 26px;
  color: rgba(245, 221, 102, 0.95);
}

.lp-empty h2 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.lp-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.lp-empty-btn {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    rgba(245, 221, 102, 0.95),
    rgba(218, 178, 65, 0.95)
  );
  color: #000;
}

/* Responsive grid */
@media (min-width: 640px) {
  .lp-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 980px) {
  .lp-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
}
