/* ==========================================================================
   SHOWS PAGE - style9.css
   Autosuficiente: no depende de style.css
   Header idéntico al de index.html
   ========================================================================== */

/* ------------------------------------------------------------
   RESET + VARIABLES
   ------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c1121f;
  --primary-dark: #8f0e18;
  --dark: #212529;
}

/* ------------------------------------------------------------
   BODY
   ------------------------------------------------------------ */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f1f1f1;
}

/* ------------------------------------------------------------
   HEADER (mismo comportamiento que style.css / index.html)
   Logo izquierda | menú derecha | hamburguesa mobile
   ------------------------------------------------------------ */
header {
  background: var(--dark, #212529);
  color: white;
  padding: 1rem;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  position: relative;
}

/* Contenedor del logo en shows.html */
.header {
  flex-shrink: 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary, #c1121f);
  text-decoration: none;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 300;
  margin-left: auto;
}

#mainNav {
  margin-left: auto;
  transition: all 0.3s ease;
}

#mainNav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

#mainNav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

#mainNav a:hover,
#mainNav a.active {
  background: var(--primary, #c1121f);
  color: white;
}

/* Desktop: menú siempre visible a la derecha */
@media (min-width: 993px) {
  #mainNav {
    display: block !important;
  }

  #mainNav ul {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* Mobile / tablet: hamburguesa */
@media (max-width: 992px) {
  .menu-toggle {
    display: block !important;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-left: 0;
    background: #1a1a1a;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    z-index: 200;
  }

  #mainNav ul {
    display: none;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Cuando JS pone .show en #mainNav */
  #mainNav.show {
    display: block !important;
    padding: 12px 0 20px;
  }

  #mainNav.show ul,
  #mainNav ul.show {
    display: flex !important;
    flex-direction: column;
    padding: 0 15px;
  }

  #mainNav a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
  }

  #mainNav li:last-child a {
    border-bottom: none;
  }
}

/* ------------------------------------------------------------
   CONTENIDO DE LA PÁGINA SHOWS
   ------------------------------------------------------------ */
.shows-page {
  background: #0a0a0a;
  min-height: 100vh;
  color: #f1f1f1;
}

/* Hero de Shows */
.shows-hero {
  background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.92)),
    url('img/fondo-metal.jpg') center/cover no-repeat;
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
}

.shows-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(193, 18, 31, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.shows-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.shows-hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 6px;
  color: #f1f1f1;
  text-shadow: 0 0 25px rgba(193, 18, 31, 0.9), 4px 4px 15px rgba(0, 0, 0, 0.95);
  margin-bottom: 1rem;
}

.shows-intro {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: #ddd;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
}

/* Filtros */
.shows-filters {
  padding: 2rem 1rem 1rem;
  background: #111;
  border-bottom: 1px solid rgba(193, 18, 31, 0.3);
}

.filters-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(193, 18, 31, 0.6);
  color: #f1f1f1;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.filter-btn:hover {
  background: rgba(193, 18, 31, 0.25);
  border-color: #c1121f;
  color: white;
}

.filter-btn.active {
  background: #c1121f;
  border-color: #c1121f;
  color: white;
  box-shadow: 0 0 20px rgba(193, 18, 31, 0.5);
}

/* Lista de shows */
.shows-list {
  padding: 2.5rem 1rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.shows-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card de show */
.show-card {
  display: grid;
  grid-template-columns: 110px 1fr;          /* por defecto 2 columnas */
  gap: 1.5rem;
  align-items: center;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(193, 18, 31, 0.35);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Si la card tiene botón de acción (ej: Finalizado), usa 3 columnas */
.show-card:has(.show-action) {
  grid-template-columns: 110px 1fr auto;
}

.show-card:hover {
  border-color: #c1121f;
  box-shadow: 0 0 30px rgba(193, 18, 31, 0.35);
  transform: translateY(-3px);
}

.show-card.hidden {
  display: none;
}

/* Fecha */
.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(193, 18, 31, 0.15);
  border: 2px solid #c1121f;
  border-radius: 12px;
  padding: 0.8rem 0.6rem;
  min-width: 90px;
  text-align: center;
}

.show-date.past {
  border-color: #555;
  background: rgba(80, 80, 80, 0.2);
  opacity: 0.75;
}

.show-date .day {
  font-size: 2rem;
  font-weight: 800;
  color: #c1121f;
  line-height: 1;
}

.show-date.past .day {
  color: #999;
}

.show-date .month {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f1f1f1;
  margin-top: 0.2rem;
}

.show-date .year {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.15rem;
}

/* Info del show */
.show-info {
  text-align: left;
}

.show-title {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: #f1f1f1;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.show-venue {
  font-size: 0.95rem;
  color: #c1121f;
  margin-bottom: 0.5rem;
}

.show-venue i {
  margin-right: 0.4rem;
}

.show-desc {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: rgba(193, 18, 31, 0.2);
  border: 1px solid rgba(193, 18, 31, 0.5);
  border-radius: 20px;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

/* Acción / botones */
.show-action {
  display: flex;
  align-items: center;
}

.btn-tickets {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 2px solid #c1121f;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-tickets:hover {
  background: #c1121f;
  box-shadow: 0 0 25px rgba(193, 18, 31, 0.7);
  transform: translateY(-2px);
}

.btn-past {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: rgba(80, 80, 80, 0.4);
  border: 2px solid #666;
  color: #999;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  white-space: nowrap;
  cursor: default;
}

/* Nota final */
.shows-footer-note {
  text-align: center;
  padding: 2rem 1rem 4rem;
  color: #aaa;
  font-size: 0.95rem;
}

.shows-footer-note a {
  color: #c1121f;
  text-decoration: none;
  font-weight: 600;
}

.shows-footer-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE (shows)
   ========================================================================== */

@media (max-width: 768px) {
  .show-card {
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .show-card:has(.show-action) {
    grid-template-columns: 90px 1fr;
  }

  .show-action {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .show-date {
    min-width: 75px;
    padding: 0.6rem 0.4rem;
  }

  .show-date .day {
    font-size: 1.6rem;
  }

  .filters-container {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .shows-hero {
    padding: 3rem 0.8rem 2rem;
  }

  .show-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.2rem;
  }

  .show-card:has(.show-action) {
    grid-template-columns: 1fr;
  }

  .show-date {
    margin: 0 auto;
  }

  .show-info {
    text-align: center;
  }

  .show-tags {
    justify-content: center;
  }

  .show-action {
    margin-top: 0.8rem;
  }

  .btn-tickets,
  .btn-past {
    width: 100%;
    text-align: center;
  }
}