/* ===== HOME PAGE STYLES ===== */

.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  padding: 4.5rem 2.5rem;
  border-radius: calc(var(--radius-xl) + 0.5rem);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(20px);
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  filter: blur(24px);
}

.hero-badge,
.hero-title,
.hero-description,
.hero-stats,
.hero-buttons {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 12ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
  color: #ffffff;
}

.hero-description {
  max-width: 48rem;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: rgba(241, 245, 249, 0.82);
}

.hero-stats {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1rem;
  width: min(100%, 42rem);
  margin-bottom: 2.5rem;
}

.stat {
  padding: 1.2rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.78);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-buttons .btn {
  min-width: 180px;
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

#home-content .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

#home-content .section-header-left {
  display: block;
  text-align: left;
}

#home-content .section-header-left > div {
  display: block;
  margin-bottom: 0.75rem;
}

#home-content .section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#home-content .section-header h2 {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  color: var(--text-primary);
}

#home-content .section-header p {
  display: block;
  max-width: 34rem;
  margin: 0;
  color: var(--text-muted);
}

.featured-section,
.events-section,
.news-section {
  margin-bottom: 4rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.featured-spotlight-card,
.event-card,
.news-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.featured-spotlight-card::before,
.event-card::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--event-accent-b) 22%, transparent), transparent 38%),
    linear-gradient(160deg, color-mix(in srgb, var(--event-accent-a) 18%, var(--bg-card)), transparent 70%);
  pointer-events: none;
}

.featured-spotlight-card > *,
.event-card > *,
.news-card > * {
  position: relative;
  z-index: 1;
}

.featured-spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
    var(--bg-card);
  border-color: color-mix(in srgb, var(--event-accent-a) 24%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.featured-spotlight-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.5rem;
  color: #f8fafc;
}

.featured-spotlight-media,
.event-card-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--event-accent-a) 65%, #0f172a), color-mix(in srgb, var(--event-accent-b) 50%, #111827));
}

.featured-spotlight-media {
  aspect-ratio: 16 / 8.5;
}

.event-card-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border-light);
}

.featured-spotlight-media img,
.event-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-spotlight-media-overlay,
.event-card-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42)),
    linear-gradient(135deg, color-mix(in srgb, var(--event-accent-a) 18%, transparent), transparent 60%);
}

.featured-spotlight-media-placeholder,
.event-card-media-placeholder {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 100%;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.featured-spotlight-media-placeholder i,
.event-card-media-placeholder i {
  font-size: 2rem;
}

.featured-spotlight-media-placeholder span,
.event-card-media-placeholder span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-spotlight-date {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-spotlight-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.featured-spotlight-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--event-accent-a), var(--event-accent-b));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--event-accent-a) 28%, transparent);
}

.featured-spotlight-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.04;
  color: #ffffff;
}

.featured-spotlight-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.7;
}

.featured-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.featured-spotlight-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.88rem;
}

.featured-spotlight-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.featured-spotlight-actions .btn {
  flex: 1;
}

.home-carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-lg) + 0.2rem);
  min-height: 100%;
}

.event-card-hero {
  padding: 1.35rem 1.6rem 1rem;
}

.event-card-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--event-accent-a) 18%, var(--bg-secondary));
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.event-chip-soft {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
}

.event-card-hero h3 {
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
  line-height: 1.1;
}

.event-card-hero p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.event-card-body {
  margin-top: auto;
  padding: 0 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.event-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  min-width: 0;
}

.event-metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.95rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.event-metric-label {
  display: block;
  max-width: 100%;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.6rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-metric-value {
  display: inline-flex;
  min-width: 0;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  color: var(--text-primary);
}

.event-metric-ticket {
  gap: 0.55rem;
}

.event-metric-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.event-metric-price-prefix {
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-metric-value-price {
  font-size: clamp(0.76rem, 0.92vw, 0.88rem);
  line-height: 1.1;
  white-space: nowrap;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
}

.event-card-footer .btn {
  flex: 1;
}

.news-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  min-height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.event-card,
.featured-spotlight-card,
.news-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.event-card:hover,
.featured-spotlight-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in srgb, var(--event-accent-a) 40%, var(--border-color));
}

.featured-spotlight-card:hover {
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
}

.news-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.news-card p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 0.4rem);
  padding: 4rem 2rem;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #4338ca 55%, #ec4899);
}

.cta-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-content p {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}

.cta-content .btn {
  background: white;
  color: #1e3a8a;
  border: none;
}

.cta-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.empty-state {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-muted);
  text-align: center;
}

[data-theme="light"] .hero-section {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 30%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--secondary-color) 16%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--primary-color) 10%, #ffffff));
  border: 1px solid color-mix(in srgb, var(--border-color) 88%, white 12%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-section::before {
  background: color-mix(in srgb, var(--primary-color) 12%, white);
}

[data-theme="light"] .hero-section::after {
  background: color-mix(in srgb, var(--secondary-color) 16%, transparent);
}

[data-theme="light"] .hero-badge {
  background: color-mix(in srgb, var(--primary-color) 12%, white);
  color: var(--primary-color);
}

[data-theme="light"] .hero-title {
  color: var(--text-primary);
}

[data-theme="light"] .hero-description {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-stats .stat {
  background: color-mix(in srgb, var(--bg-card) 92%, white 8%);
  border-color: color-mix(in srgb, var(--border-color) 86%, white 14%);
  backdrop-filter: none;
}

[data-theme="light"] .hero-stats .stat-number {
  color: var(--text-primary);
}

[data-theme="light"] .hero-stats .stat-label {
  color: var(--text-muted);
}

[data-theme="light"] .hero-buttons .btn-outline {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 6%, white);
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
}

[data-theme="light"] .featured-spotlight-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 96%, white 4%), color-mix(in srgb, var(--bg-card) 98%, white 2%)),
    var(--bg-card);
  border-color: color-mix(in srgb, var(--event-accent-a) 22%, var(--border-color));
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .featured-spotlight-content,
[data-theme="light"] .featured-spotlight-card h3 {
  color: var(--text-primary);
}

[data-theme="light"] .featured-spotlight-card p,
[data-theme="light"] .featured-spotlight-meta span,
[data-theme="light"] .featured-spotlight-date {
  color: var(--text-secondary);
}

[data-theme="light"] .featured-spotlight-date,
[data-theme="light"] .featured-spotlight-meta span {
  background: color-mix(in srgb, var(--bg-secondary) 88%, white 12%);
  border: 1px solid color-mix(in srgb, var(--border-color) 82%, white 18%);
}

[data-theme="light"] .featured-spotlight-media-overlay,
[data-theme="light"] .event-card-media-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.18)),
    linear-gradient(135deg, color-mix(in srgb, var(--event-accent-a) 12%, transparent), transparent 60%);
}

[data-theme="light"] .cta-section {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--secondary-color) 16%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--primary-color) 10%, #ffffff), color-mix(in srgb, var(--secondary-color) 12%, #ffffff));
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, var(--border-color) 86%, white 14%);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .cta-content p {
  color: var(--text-secondary);
}

[data-theme="light"] .cta-content .btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

@media (max-width: 1100px) {
  .featured-grid,
  .home-carousel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home-content .section-header-left {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.2rem 1.4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .event-card-metrics {
    grid-template-columns: 1fr;
  }

  .event-card-footer,
  .featured-spotlight-actions {
    flex-direction: column;
  }

  .featured-grid,
  .home-carousel-grid {
    grid-template-columns: 1fr;
  }

  .event-metric-value-price {
    white-space: normal;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }
}
