/* CSS Document: Latin Nights Mumbai V3 - Modern Dark Glassmorphic */
:root {
  --bg-color: #0b0717;
  --bg-card: rgba(22, 14, 40, 0.65);
  --border-color: rgba(255, 255, 255, 0.07);
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-accent: #f72585;

  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
  --glow-pink: rgba(247, 37, 133, 0.15);
  --glow-purple: rgba(114, 9, 183, 0.2);

  --br-card: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Background floating glow blobs */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.glow-pink {
  width: 400px;
  height: 400px;
  background-color: var(--glow-pink);
  top: -100px;
  left: -150px;
}

.glow-purple {
  width: 500px;
  height: 500px;
  background-color: var(--glow-purple);
  bottom: 200px;
  right: -200px;
}

/* Header Styling */
.app-header {
  padding: 40px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.branding h1 {
  font-family: 'Rock Salt', cursive;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}

.branding .tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 500;
}

.city-pill {
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
}

.city-pill:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.2);
}

.header-stats {
  display: flex;
  gap: 16px;
}

.stat-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-lbl {
  font-size: 14px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Controls Panel (Search + filters) */
.controls-panel {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 24px;
}

.search-box {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: rgba(20, 14, 38, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  padding: 14px 14px 14px 46px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.search-box input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 2px rgba(247, 37, 133, 0.2);
}

/* Filter toggle button */
.filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 14, 38, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  margin-bottom: 12px;
}

.filters-toggle:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

.filters-toggle-chevron {
  margin-left: auto;
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 16px;
}

.filters-toggle[aria-expanded="true"] .filters-toggle-chevron {
  transform: rotate(180deg);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.filters-grid.filters-open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  background: rgba(20, 14, 38, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.select-wrapper select:focus {
  border-color: var(--accent-purple);
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Active Chips */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.filter-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.filter-badge span {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

.btn-clear-all {
  background: none;
  border: none;
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 8px;
}

/* Main layouts and Sections */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blinking-text {
  color: var(--accent-pink);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.85;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Card Styling */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--br-card);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: var(--transition);
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}

.event-card.no-anim {
  animation: none;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Glowing Highlight for Today's Card */
.event-card.card-today {
  border: 2px solid var(--accent-pink);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.05) 0%, rgba(20, 14, 38, 0.7) 100%);
}

.event-card.card-today:hover {
  box-shadow: 0 0 28px rgba(236, 72, 153, 0.45);
}

/* Greyed Out styling for Cancelled cards */
.event-card.card-cancelled {
  opacity: 0.45;
  filter: grayscale(85%);
  pointer-events: none;
}

.card-cancelled .card-title {
  text-decoration: line-through;
  color: var(--text-muted) !important;
}

/* Card Media / Flyer Area */
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1b0a30 0%, #06030c 100%);
}

/* Fallback banner: ~30% height (no image cards only) */
.card-media--fallback {
  aspect-ratio: 16 / 4.8;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .card-media img {
  transform: scale(1.05);
}

/* Backup Gradient Flyer */
.card-gradients-fallback {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  text-align: center;
}

.card-gradients-fallback h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Floating overlay tags */
.badge-left {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 7, 23, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-right {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.badge-today {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #facc15;
  color: #0b0717;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-cancelled {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Card Body Details */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-meta-type {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  gap: 8px;
}

.meta-row span.meta-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.meta-row a {
  color: #c4b5fd;
  text-decoration: underline;
}

.meta-row a:hover {
  color: #fff;
}

/* Summary block */
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-top: auto;
  white-space: pre-line;
}

/* Card Action Bottom Bar */
.card-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  margin-top: auto;
}

.btn-action {
  flex: 1;
  text-align: center;
  padding: 10.5px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-sub-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-sub-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary-action {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-primary-action:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.35);
}

/* Loading & Error States */
.loading-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(22, 14, 40, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: var(--br-card);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

.btn-reset {
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.btn-reset:hover {
  opacity: 0.9;
}

/* Footer layout */
.app-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 40px auto 0;
  color: var(--text-muted);
  font-size: 13px;
}

.app-footer .future-cities {
  font-size: 11px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 24px 16px 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .branding h1 {
    font-size: 30px;
  }

  .controls-panel {
    padding: 0 16px;
  }

  .main-content {
    padding: 0 16px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}