/* =============================================================================
   News & Events Page — ne-* component styles
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.ne-hero {
  background: var(--color-bg-dark);
  padding: var(--space-16) 0 var(--space-12);
  margin-top: var(--header-height);
}

.ne-hero__inner {
  display: flex;
  align-items: flex-end;
  min-height: 160px;
}

.ne-hero__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-highlight);
  margin-bottom: var(--space-3);
}

.ne-hero__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.ne-hero__sub {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Filter Tabs
   --------------------------------------------------------------------------- */
.ne-tabs-wrap {
  background: var(--color-accent);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.ne-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ne-tabs::-webkit-scrollbar { display: none; }

.ne-tab {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.ne-tab:hover {
  color: #fff;
}

.ne-tab--active {
  color: #fff;
  border-bottom-color: var(--color-highlight);
}

/* ---------------------------------------------------------------------------
   Main content area
   --------------------------------------------------------------------------- */
.ne-main {
  padding: var(--space-12) 0 var(--space-20);
  background: var(--color-bg-light);
  min-height: 60vh;
}

/* ---------------------------------------------------------------------------
   Section title
   --------------------------------------------------------------------------- */
.ne-section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

/* ---------------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------------- */
.ne-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.ne-badge--news    { background: var(--color-highlight); color: #fff; }
.ne-badge--event   { background: #7c3aed; color: #fff; }
.ne-badge--show    { background: #0891b2; color: #fff; }
.ne-badge--soldout { background: var(--color-error); color: #fff; }

/* ---------------------------------------------------------------------------
   Featured post card
   --------------------------------------------------------------------------- */
.ne-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-accent);
  margin-bottom: var(--space-12);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ne-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.ne-featured__img-wrap {
  position: relative;
  overflow: hidden;
}

.ne-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.ne-featured:hover .ne-featured__img {
  transform: scale(1.04);
}

.ne-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--color-accent) 100%);
}

.ne-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) var(--space-10) var(--space-10) var(--space-8);
}

.ne-featured__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.ne-featured__excerpt {
  font-size: var(--font-size-base);
  color: rgba(255,255,255,.7);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-5);
}

.ne-featured__date {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Cards grid
   --------------------------------------------------------------------------- */
.ne-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.ne-card {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ne-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ne-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-accent-mid);
  position: relative;
}

.ne-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.ne-card:hover .ne-card__img {
  transform: scale(1.05);
}

/* Event placeholder when no image */
.ne-card__event-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #7c3aed 100%);
  color: #fff;
}

.ne-card__event-day {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.ne-card__event-month {
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.ne-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ne-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ne-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin: 0;
  margin-top: auto;
}

/* ---------------------------------------------------------------------------
   Upcoming Shows list
   --------------------------------------------------------------------------- */
.ne-shows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-10);
}

.ne-show-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.ne-show-row:last-child {
  border-bottom: none;
}

.ne-show-row:hover {
  background: var(--color-bg-light);
}

.ne-show-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: #fff;
  min-width: 64px;
}

.ne-show-row__day {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1;
}

.ne-show-row__month {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.ne-show-row__year {
  font-size: var(--font-size-xs);
  opacity: 0.55;
}

.ne-show-row__name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.ne-show-row__venue {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.ne-show-row__actions {
  display: flex;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Ticket button
   --------------------------------------------------------------------------- */
.ne-ticket-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-highlight);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.ne-ticket-btn:hover {
  opacity: 0.88;
  color: #fff;
  transform: scale(1.03);
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */
.ne-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
}

.ne-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-base);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.ne-page-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.ne-page-btn--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Empty state
   --------------------------------------------------------------------------- */
.ne-empty {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ne-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ne-hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .ne-hero__title {
    font-size: var(--font-size-3xl);
  }

  .ne-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ne-featured__img-wrap {
    aspect-ratio: 16/7;
  }

  .ne-featured__overlay {
    background: linear-gradient(to top, var(--color-accent) 0%, transparent 60%);
  }

  .ne-featured__body {
    padding: var(--space-6);
  }

  .ne-featured__title {
    font-size: var(--font-size-xl);
  }

  .ne-grid {
    grid-template-columns: 1fr;
  }

  .ne-show-row {
    grid-template-columns: 64px 1fr;
    gap: var(--space-4);
  }

  .ne-show-row__actions {
    grid-column: 1 / -1;
    padding-left: calc(64px + var(--space-4));
  }

  .ne-tab {
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 480px) {
  .ne-hero__title {
    font-size: var(--font-size-2xl);
  }

  .ne-show-row {
    padding: var(--space-4);
  }
}
