/* ==========================================================================
   Ticketmaster-inspired Homepage Styles for Meup
   Dark theme • Bold search • Large event cards • Red accents
   ========================================================================== */

:root {
  --tm-bg: #0a0a0a;
  --tm-bg-elevated: #141414;
  --tm-bg-card: #1a1a1a;
  --tm-bg-hover: #222;
  --tm-red: #e91e25;
  --tm-red-hover: #c9181f;
  --tm-text: #ffffff;
  --tm-text-muted: #a0a0a0;
  --tm-text-dim: #6b6b6b;
  --tm-border: #2a2a2a;
  --tm-radius: 8px;
  --tm-radius-lg: 12px;
  --tm-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --tm-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --tm-transition: all 0.25s ease;
}

/* Force dark look on Ticketmaster homepage */
body.tm-home,
body.tm-home .site,
body.tm-home #wrapper,
body.tm-home .content_wrapper {
  background-color: var(--tm-bg) !important;
  color: var(--tm-text);
  font-family: var(--tm-font);
}

body.tm-home a {
  color: var(--tm-text);
  transition: var(--tm-transition);
}

body.tm-home a:hover {
  color: var(--tm-red);
}

/* ==========================================================================
   Header adjustments for dark mode
   ========================================================================== */
body.tm-home .header_default,
body.tm-home header,
body.tm-home .ova-header {
  background: rgba(10, 10, 10, 0.95) !important;
  border-bottom: 1px solid var(--tm-border);
  backdrop-filter: blur(12px);
}

body.tm-home .header_default a,
body.tm-home .ova-menu a,
body.tm-home .main-navigation a {
  color: var(--tm-text) !important;
}

body.tm-home .header_default a:hover,
body.tm-home .ova-menu a:hover {
  color: var(--tm-red) !important;
}

/* ==========================================================================
   HERO SECTION – Ticketmaster style
   ========================================================================== */
.tm-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #1a0505 0%, #0a0a0a 70%);
  overflow: hidden;
  padding: 80px 0 60px;
}

.tm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 30, 37, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(233, 30, 37, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.tm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.tm-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tm-red);
  margin-bottom: 16px;
}

.tm-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.tm-hero__subtitle {
  font-size: 1.15rem;
  color: var(--tm-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* Search bar – Ticketmaster style (large, dark, prominent) */
.tm-search {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  background: var(--tm-bg-elevated);
  border: 1px solid var(--tm-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s;
}

.tm-search:focus-within {
  border-color: var(--tm-red);
}

.tm-search__input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  padding: 18px 24px;
  outline: none;
  font-family: inherit;
}

.tm-search__input::placeholder {
  color: var(--tm-text-dim);
}

.tm-search__btn {
  background: var(--tm-red);
  color: #fff;
  border: none;
  padding: 0 32px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.tm-search__btn:hover {
  background: var(--tm-red-hover);
}

/* Category pills under search */
.tm-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.tm-cat {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tm-transition);
}

.tm-cat:hover {
  background: var(--tm-red);
  border-color: var(--tm-red);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.tm-section {
  padding: 56px 0;
}

.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.tm-section-header a {
  color: var(--tm-red);
  font-weight: 600;
  font-size: 0.95rem;
}

.tm-section-header a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Featured / Large Event Card (Ticketmaster hero card)
   ========================================================================== */
.tm-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.tm-featured-card {
  position: relative;
  border-radius: var(--tm-radius-lg);
  overflow: hidden;
  background: var(--tm-bg-card);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--tm-shadow);
  transition: transform 0.3s ease;
}

.tm-featured-card:hover {
  transform: scale(1.01);
}

.tm-featured-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.tm-featured-card:hover .tm-featured-card__bg {
  transform: scale(1.05);
}

.tm-featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.tm-featured-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.tm-featured-card__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tm-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tm-featured-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
}

.tm-featured-card__venue {
  font-size: 0.9rem;
  color: var(--tm-text-muted);
  margin-bottom: 16px;
}

.tm-featured-card .tm-btn {
  display: inline-flex;
}

/* Side featured cards */
.tm-featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tm-featured-side .tm-featured-card {
  min-height: 160px;
}

.tm-featured-side .tm-featured-card__title {
  font-size: 1.15rem;
}

/* ==========================================================================
   Event Cards Grid (standard Ticketmaster style)
   ========================================================================== */
.tm-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tm-event-card {
  background: var(--tm-bg-card);
  border-radius: var(--tm-radius);
  overflow: hidden;
  border: 1px solid var(--tm-border);
  transition: var(--tm-transition);
  display: flex;
  flex-direction: column;
}

.tm-event-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.tm-event-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.tm-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tm-event-card:hover .tm-event-card__image img {
  transform: scale(1.06);
}

.tm-event-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--tm-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tm-event-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tm-event-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tm-red);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.tm-event-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-event-card__title a {
  color: inherit;
}

.tm-event-card__title a:hover {
  color: var(--tm-red);
}

.tm-event-card__venue {
  font-size: 0.85rem;
  color: var(--tm-text-muted);
  margin-bottom: 12px;
}

.tm-event-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--tm-border);
}

.tm-event-card__price {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.tm-event-card__price span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--tm-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tm-transition);
}

.tm-btn--primary {
  background: var(--tm-red);
  color: #fff;
}

.tm-btn--primary:hover {
  background: var(--tm-red-hover);
  color: #fff;
}

.tm-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.tm-btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

.tm-btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Category / Browse section
   ========================================================================== */
.tm-browse {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tm-browse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  text-align: center;
  transition: var(--tm-transition);
  text-decoration: none;
  color: #fff;
}

.tm-browse-item:hover {
  background: var(--tm-bg-hover);
  border-color: var(--tm-red);
  color: #fff;
  transform: translateY(-3px);
}

.tm-browse-item__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.tm-browse-item__label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.tm-cta {
  background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 50%, #0a0a0a 100%);
  border: 1px solid rgba(233, 30, 37, 0.3);
  border-radius: var(--tm-radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin: 20px 0;
}

.tm-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.tm-cta p {
  color: var(--tm-text-muted);
  margin: 0 0 24px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer dark override
   ========================================================================== */
body.tm-home footer,
body.tm-home .footer,
body.tm-home .ova-footer {
  background: #050505 !important;
  border-top: 1px solid var(--tm-border);
  color: var(--tm-text-muted);
}

body.tm-home footer a {
  color: var(--tm-text-muted);
}

body.tm-home footer a:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .tm-featured {
    grid-template-columns: 1fr;
  }

  .tm-featured-side {
    flex-direction: row;
    overflow-x: auto;
  }

  .tm-featured-side .tm-featured-card {
    min-width: 260px;
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .tm-hero {
    min-height: 420px;
    padding: 60px 0 40px;
  }

  .tm-search {
    flex-direction: column;
    border-radius: var(--tm-radius);
  }

  .tm-search__btn {
    padding: 14px;
    border-radius: 0 0 var(--tm-radius) var(--tm-radius);
  }

  .tm-events-grid {
    grid-template-columns: 1fr;
  }

  .tm-cta {
    padding: 32px 20px;
  }
}
