/* ==================== GLOBAL BODY STYLING ==================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Arial', sans-serif;
  background: #0b0b0f; /* Dark nightlife background */
  color: #ffffff;
  line-height: 1.5;
}

/* ==================== STICKY HEADER + SEARCH ==================== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  padding: 17px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 0, 255, 0.05);
}

.header-logo img {
  height: 30px;
}

.header-search {
  flex: 1;
  display: flex;
}

.header-search form {
  flex: 1;
}

#search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
  transition: box-shadow 0.2s ease;
}

#search-input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.4);
}

/* HORIZONTAL SCROLL - MOBILE FIRST */
.horizontal-scroll-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.horizontal-scroll-grid::-webkit-scrollbar {
  display: none;
}

.horizontal-card {
  flex: 0 0 82%; /* width for horizontal scroll on mobile */
  height: 260px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.horizontal-card:hover {
  transform: scale(1.03);
}


/* Overlay */
.card-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
}

.card-overlay h3 {
  font-size: 20px;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.venue-name, .venue-type {
  font-size: 14px;
  opacity: 0.9;
}

.time-info {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 42, 109, 0.85);
}


@media (min-width: 900px) {
  .horizontal-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    overflow: visible; /* remove scroll on desktop */
  }

  .horizontal-card {
    height: 300px;
    flex: none;
  }
}

/* ==================== EMPTY STATE ==================== */
.empty-message {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
}

/* ==================== MOBILE MAIN CONTAINER ==================== */
.mobile-main-container {
  padding: 84px 16px 96px;
}

/* Section titles */
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin: 28px 0 16px;
  text-shadow: 0 0 8px var(--accent-pink);
}

/* Recommended: subtle smooth scrolling for horizontal scrollers */
.horizontal-scroll-grid {
  scroll-behavior: smooth;
}

/* ==================== PREMIUM BOTTOM NAV ==================== */

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 24px);
  max-width: 520px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  border-radius: 20px;

  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);

  z-index: 9999;
}

/* Nav items */
.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;

  color: var(--text-secondary);
  font-size: 11px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  transition: all 0.25s ease;
}

/* Icon bubble */
.bottom-nav .nav-item .icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 18px;

  background: rgba(255,255,255,0.05);
  transition: all 0.25s ease;
}

/* Active state */
.bottom-nav .nav-item.active {
  color: var(--accent-pink);
}

.bottom-nav .nav-item.active .icon {
  background: rgba(255, 42, 109, 0.2);
  box-shadow:
    0 0 12px rgba(255, 42, 109, 0.6),
    inset 0 0 0 1px rgba(255, 42, 109, 0.4);

  transform: translateY(-2px) scale(1.05);
}

/* Hover (desktop) */
@media (hover: hover) {
  .bottom-nav .nav-item:hover {
    color: var(--accent-pink);
  }

  .bottom-nav .nav-item:hover .icon {
    background: rgba(255, 42, 109, 0.15);
  }
}

/* ==================== DESKTOP POLISH ==================== */

@media (min-width: 900px) {
  .bottom-nav {
    max-width: 640px;
    padding: 14px 24px;
  }

  .bottom-nav .nav-item {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
  }

  .bottom-nav .nav-item .icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
/* ==================== HORIZONTAL CARDS - MOBILE FIRST ==================== */
.horizontal-card {
  flex: 0 0 82%; /* width of card */
  height: 320px; /* increased from 260px for mobile */
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.horizontal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

/* ==================== BOTTOM NAVBAR - MOBILE ==================== */
.bottom-nav {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px; /* increased padding vertically and horizontally */
  border-radius: 24px; /* slightly more rounded */
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 9999;
}

/* Nav items bigger */
.bottom-nav .nav-item .icon {
  width: 44px;   /* bigger icon circle */
  height: 44px;
  font-size: 20px;
}
.bottom-nav .nav-item {
  font-size: 13px; /* slightly bigger label */
  gap: 6px;
}
/* ==================== MOBILE ENHANCEMENTS ==================== */

/* Sticky header */
.sticky-header {
  padding: 16px 20px;
}

.header-logo img {
  height: 100px; /* bigger logo */
}

.header-search form {
  flex: 1;
}

#search-input {
  padding: 14px 20px;
  font-size: 17px;
  border-radius: 60px;
}

/* Mobile main container padding */
.mobile-main-container {
  padding: 100px 16px 120px; /* more spacing from header and bottom nav */
}

/* Section titles */
.section-title {
  font-size: 30px;
  margin: 32px 0 20px;
}

/* Horizontal cards */
.horizontal-card {
  flex: 0 0 90%; /* wider cards */
  height: 320px; /* taller cards */
  border-radius: 20px;
}

.card-overlay h3 {
  font-size: 22px;
}

.venue-name, .venue-type {
  font-size: 16px;
}

.time-info {
  font-size: 15px;
}

.tags {
  gap: 10px;
}

.tag {
  font-size: 13px;
  padding: 6px 12px;
}

/* Bottom navigation */
.bottom-nav {
  bottom: 12px;
  padding: 10px 20px;
  border-radius: 24px;
}

.bottom-nav .nav-item {
  font-size: 13px;
  gap: 6px;
}

.bottom-nav .nav-item .icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.bottom-nav .nav-item.active .icon {
  transform: translateY(-2px) scale(1.1);
}
/* HEADER SEARCH WRAPPER */
.header-search {
  position: relative; /* 🔑 THIS IS THE KEY */
  flex: 1;
  max-width: 600px;
}
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;

  max-height: 320px;
  overflow-y: auto;

  background: #111;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);

  z-index: 2000;
  display: none;
}

.category-badge {
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 255, 255, 0.25);
}
.tag {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
}
