/* portal.css - Boletera tipo Ticketmaster */
:root {
  --tm-blue: #026cdf;
  --tm-blue-hover: #0050e6;
  --tm-dark-blue: #0a1128;
  --tm-navy: #0f172a;
  --tm-dark-surface: #1e293b;
  --tm-bg: #f8fafc;
  --tm-text: #121212;
  --tm-text-secondary: #64748b;
  --tm-border: #e2e8f0;
  --tm-pill-bg: #f1f5f9;
  --tm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tm-font);
  background-color: var(--tm-bg);
  color: var(--tm-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── TOP UTILITY BAR (Black / Dark Navy) ── */
.tm-topbar {
  background-color: #070a13;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tm-topbar-left, .tm-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tm-country-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.tm-country-badge:hover { background: rgba(255,255,255,0.1); }

.tm-topbar-link {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.tm-topbar-link:hover { color: #ffffff; }

/* ── MAIN HEADER (Ticketmaster Blue) ── */
.tm-header {
  background-color: var(--tm-blue);
  color: #ffffff;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(2, 108, 223, 0.25);
}

.tm-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #ffffff;
  font-style: italic;
  white-space: nowrap;
}
.tm-brand span {
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0;
  margin-left: 4px;
}

.tm-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.tm-nav-links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.tm-nav-links a:hover { opacity: 0.85; }
.tm-nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.tm-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tm-account-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

/* ── SEARCH & FILTER HERO BAR (Ticketmaster 3-segment search) ── */
.tm-search-wrapper {
  background-color: var(--tm-blue);
  padding: 0 24px 28px 24px;
}
.tm-search-box {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 4px;
}

.tm-search-col {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-right: 1px solid var(--tm-border);
  position: relative;
}
.tm-search-col:last-child {
  border-right: none;
}
.tm-search-col.location { flex: 1.2; }
.tm-search-col.dates { flex: 1.2; }
.tm-search-col.query { flex: 2; }

.tm-search-col label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.tm-search-col input, .tm-search-col select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tm-text);
  width: 100%;
}

.tm-search-btn {
  background-color: var(--tm-blue);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.tm-search-btn:hover {
  background-color: var(--tm-blue-hover);
}

/* ── CONTAINER ── */
.tm-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── HERO EDITORIAL MOSAIC (Featured Events) ── */
.tm-mosaic-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.tm-hero-main {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tm-hero-main:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.tm-hero-main:hover .tm-hero-bg {
  transform: scale(1.03);
}

.tm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.95) 100%);
}

.tm-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tm-badge {
  display: inline-block;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 3px solid var(--tm-blue);
}

.tm-badge.promoted {
  background: #111827;
  color: #38bdf8;
  border-left-color: #38bdf8;
}

.tm-hero-date {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.tm-hero-venue {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

/* Secondary Mosaic Grid (2x2) */
.tm-mosaic-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.tm-subcard {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tm-subcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tm-subcard-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.tm-subcard:hover .tm-subcard-bg {
  transform: scale(1.05);
}

.tm-subcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.95) 100%);
}

.tm-subcard-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tm-subcard-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 4px;
}

.tm-subcard-desc {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── EVENT LISTINGS SECTION (Feed estilo Ticketmaster) ── */
.tm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.tm-section-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--tm-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tm-section-title span.count {
  font-size: 15px;
  color: var(--tm-text-secondary);
  font-weight: 600;
}

.tm-view-toggles {
  display: flex;
  align-items: center;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}
.tm-view-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.tm-view-btn.active {
  background: #ffffff;
  color: var(--tm-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── TICKETMASTER LIST ROW ITEMS ── */
.tm-event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tm-event-row {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 24px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.tm-event-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateX(2px);
}

/* Date Box */
.tm-date-block {
  min-width: 68px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #f1f5f9;
  padding-right: 18px;
}
.tm-date-month {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ef4444;
  letter-spacing: 0.5px;
}
.tm-date-day {
  font-size: 28px;
  font-weight: 900;
  color: var(--tm-text);
  line-height: 1;
  margin: 2px 0;
}
.tm-date-year {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

/* Details Column */
.tm-event-details {
  flex: 1;
  min-width: 0;
}

.tm-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tm-text-secondary);
  margin-bottom: 4px;
}
.tm-near-pill {
  background: #ecfdf5;
  color: #059669;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tm-event-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--tm-text);
  line-height: 1.25;
  margin-bottom: 4px;
}

.tm-event-location {
  font-size: 13.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tm-event-price {
  font-size: 12px;
  color: #0284c7;
  font-weight: 700;
  margin-top: 4px;
}

/* Action Button */
.tm-event-action {
  flex-shrink: 0;
}

.tm-btn-buy {
  background-color: var(--tm-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 108, 223, 0.3);
}
.tm-btn-buy:hover {
  background-color: var(--tm-blue-hover);
  transform: scale(1.02);
}

/* Inline Promoted Card (like in Screenshot 3) */
.tm-promoted-venue-card {
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tm-promoted-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tm-promoted-icon {
  width: 48px;
  height: 48px;
  background: #026cdf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  flex-shrink: 0;
}
.tm-promoted-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.tm-promoted-info p {
  font-size: 12.5px;
  color: #64748b;
}

/* ── MODAL: MIS BOLETOS ── */
.tm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tm-modal-card {
  background: #ffffff;
  border-radius: 14px;
  width: min(90vw, 440px);
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  position: relative;
}

.tm-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
}

/* ── FOOTER ── */
.tm-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px 24px;
  margin-top: 60px;
  font-size: 12.5px;
}
.tm-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.tm-footer-col h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tm-footer-col ul {
  list-style: none;
}
.tm-footer-col ul li {
  margin-bottom: 8px;
}
.tm-footer-col ul li a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .tm-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .tm-hero-main {
    min-height: 320px;
    padding: 24px;
  }
  .tm-search-box {
    flex-direction: column;
  }
  .tm-search-col {
    border-right: none;
    border-bottom: 1px solid var(--tm-border);
  }
  .tm-event-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .tm-date-block {
    flex-direction: row;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .tm-event-action {
    width: 100%;
  }
  .tm-btn-buy {
    width: 100%;
    justify-content: center;
  }
  .tm-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
