/* =============================================================================
   Tickets — tix-* styles
   ============================================================================= */

/* ── Hero ── */
.tix-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  margin-top: var(--header-height);
  overflow: hidden;
}
.tix-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(233,69,96,.22) 0%, transparent 60%);
}
.tix-hero__dim { position: absolute; inset: 0; background: rgba(5,5,15,.35); }
.tix-hero__inner { position: relative; z-index: 1; padding: 64px 0; }
.tix-hero__eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: #e94560; margin-bottom: 12px;
}
.tix-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px;
}
.tix-hero__sub { font-size: 1.125rem; color: rgba(255,255,255,.65); }

/* ── Body ── */
.tix-body { background: #f4f5f7; padding: 56px 0 80px; }

.tix-section-title {
  font-size: 1.375rem; font-weight: 800; color: #1a1a2e;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 2px solid #e8e8e8;
}

/* ── Event grid ── */
.tix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Event card ── */
.tix-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.tix-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.tix-card--oos { opacity: .7; }

/* Date badge */
.tix-card__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  padding: 16px;
  min-height: 80px;
}
.tix-card__date-day {
  font-size: 2.25rem; font-weight: 800; line-height: 1; color: #fff;
}
.tix-card__date-month {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.7);
}
.tix-card__date-year {
  font-size: 0.75rem; color: rgba(255,255,255,.45); margin-top: 2px;
}

/* Event image */
.tix-card__img-wrap {
  aspect-ratio: 16/7;
  overflow: hidden;
}
.tix-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.tix-card:hover .tix-card__img-wrap img { transform: scale(1.04); }

/* Body */
.tix-card__body { padding: 20px 20px 0; flex: 1; }
.tix-card__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8125rem; color: #999; margin-bottom: 10px;
}
.tix-card__meta i { color: #e94560; }
.tix-card__name {
  font-size: 1.125rem; font-weight: 800; color: #1a1a2e;
  line-height: 1.2; margin-bottom: 8px;
}
.tix-card__venue {
  font-size: 0.875rem; color: #666; display: flex;
  align-items: flex-start; gap: 6px; line-height: 1.4; margin-bottom: 12px;
}
.tix-card__venue i { color: #e94560; flex-shrink: 0; margin-top: 2px; }
.tix-card__price {
  font-size: 1.125rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0;
}
.tix-card__price--free { color: #28a745; }

/* Footer */
.tix-card__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

/* Sold out */
.tix-sold-out {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700; color: #dc3545;
}

/* Free badge */
.tix-free-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700; color: #28a745;
}

/* Buy inline */
.tix-buy-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tix-qty-row {
  display: flex; align-items: center;
  border: 1.5px solid #d0d0d8; border-radius: 8px; overflow: hidden;
}
.tix-qty-btn {
  width: 36px; height: 36px; background: #f4f5f7; border: none;
  font-size: 1.1rem; cursor: pointer; transition: background .15s ease;
}
.tix-qty-btn:hover { background: #e8e8e8; }
.tix-qty-input {
  width: 44px; height: 36px; text-align: center; border: none;
  font-size: 0.9375rem; font-weight: 700; color: #1a1a2e; background: #fff;
}

/* ── Buttons ── */
.tix-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}
.tix-btn:hover { opacity: .88; transform: translateY(-1px); }
.tix-btn--primary { background: #e94560; color: #fff; border-color: #e94560; }
.tix-btn--full { width: 100%; }

/* ── Past shows list ── */
.tix-past-list {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tix-past-row {
  display: grid; grid-template-columns: 120px 1fr 100px;
  align-items: center; gap: 16px;
  padding: 16px 20px; background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.tix-past-row:last-child { border-bottom: none; }
.tix-past-row__date { font-size: 0.875rem; color: #999; font-weight: 600; }
.tix-past-row__info strong { display: block; font-size: 0.9375rem; color: #1a1a2e; }
.tix-past-row__info span  { font-size: 0.8125rem; color: #999; }
.tix-past-row__status {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #999; text-align: right;
}

/* ── Empty ── */
.tix-empty {
  text-align: center; padding: 80px 20px; color: #999;
}
.tix-empty i { font-size: 3rem; display: block; margin-bottom: 16px; color: #d0d0d8; }
.tix-empty h2 { font-size: 1.5rem; color: #1a1a2e; margin-bottom: 8px; }
.tix-empty p  { font-size: 1rem; }

/* ── Modal ── */
.tix-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.tix-modal.is-open { opacity: 1; visibility: visible; }
.tix-modal__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 1999; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.tix-modal__backdrop.is-open { opacity: 1; visibility: visible; }
.tix-modal__box {
  position: relative; z-index: 2001;
  background: #fff; border-radius: 20px; padding: 36px;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.tix-modal__close {
  position: absolute; top: 16px; right: 20px;
  background: #f4f5f7; border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.25rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.tix-modal__close:hover { background: #e8e8e8; }
.tix-modal__title {
  font-size: 1.375rem; font-weight: 800; color: #1a1a2e; margin-bottom: 20px;
}
.tix-modal__event-info {
  background: #f8f9fb; border-radius: 12px; padding: 16px;
  font-size: 0.9rem; color: #444; line-height: 1.7; margin-bottom: 24px;
}
.tix-modal__event-info strong { font-size: 1rem; color: #1a1a2e; }
.tix-modal__total {
  font-size: 1.0625rem; color: #1a1a2e; margin: 20px 0;
  padding: 16px; background: #f8f9fb; border-radius: 10px;
  text-align: center;
}
.tix-modal__total strong { font-size: 1.375rem; font-weight: 800; color: #e94560; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .tix-grid { grid-template-columns: 1fr; }
  .tix-past-row { grid-template-columns: 1fr; gap: 4px; }
  .tix-past-row__status { text-align: left; }
  .tix-buy-inline { flex-direction: column; align-items: stretch; }
  .tix-btn--primary { width: 100%; }
}
