/*
 * com_ozzyconciertos - estilos del componente.
 * El aspecto de las tarjetas de conciertos y músicos viene de la plantilla
 * (template.css + custom.css), que siguen usando las mismas clases de SP Strings.
 */

/* ---- Equivalencias de clases del <body> (antes com-spstrings / com-sppagebuilder) ---- */
.com-ozzyconciertos.view-events #sp-main-body,
.com-ozzyconciertos.view-event #sp-main-body,
.com-ozzyconciertos.view-artists #sp-main-body,
.com-ozzyconciertos.view-artist #sp-main-body { background: #05082c; }
.com-ozzyconciertos.view-events,
.com-ozzyconciertos.view-artists { margin-top: 0; }
.com-ozzyconciertos.view-artists .pagination-wrapper { padding-bottom: 50px; }
.com-ozzyconciertos.view-artists .pagination-wrapper ul.pagination { margin: 50px 0; }
.com-ozzyconciertos.view-events .pagination-wrapper { padding-bottom: 50px; }
.com-ozzyconciertos.view-events .pagination-wrapper ul.pagination { margin-top: 70px; }

/* Páginas (antes SP Page Builder): ocupan todo el ancho, sin márgenes de la plantilla */
.view-pagina #sp-main-body { padding: 0; }
.view-pagina #sp-main-body > .container { max-width: none; width: 100%; padding-left: 0; padding-right: 0; }

/* ---- Ficha de concierto ---- */
.spstrings-view-event .ozzy-event-detail { padding: 60px 0 100px; color: #fff; }
.spstrings-view-event .ozzy-event-poster img { width: 100%; height: auto; display: block; }
.spstrings-view-event .ozzy-event-meta { list-style: none; padding: 0; margin: 20px 0 30px; font-size: 18px; }
.spstrings-view-event .ozzy-event-meta li { margin-bottom: 8px; }
.spstrings-view-event .ozzy-event-meta i { width: 22px; color: #ff0000; }
.spstrings-view-event .countdown-text-wrap { position: static; }
.spstrings-view-event .ozzy-event-artists { margin-top: 40px; }

/* ---- Visor de vídeos ---- */
html.ozzy-lightbox-open { overflow: hidden; }
.ozzy-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(11, 11, 11, .85);
  display: flex; align-items: center; justify-content: center;
  padding: 50px 15px 20px;
  animation: ozzyFade .2s ease-out;
}
.ozzy-lightbox-inner { position: relative; width: min(100%, calc((100vh - 90px) * 16 / 9)); max-width: none; }
.ozzy-lightbox-media { position: relative; width: 100%; padding-top: 56.25%; background: #000; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.ozzy-lightbox-media iframe,
.ozzy-lightbox-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ozzy-lightbox-close {
  position: absolute; top: -44px; right: -6px;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: #fff;
  font: 300 36px/44px Arial, sans-serif; cursor: pointer; opacity: .8;
}
.ozzy-lightbox-close:hover,
.ozzy-lightbox-close:focus { opacity: 1; outline: none; }
@keyframes ozzyFade { from { opacity: 0; } to { opacity: 1; } }

/* En la lista de conciertos los ya celebrados no muestran texto (como antes) */
.com-spstrings .countdown-text-wrap.disabled .spstringscountdown { display: none; }

/* La banda: el nombre del músico es el botón */
.sp-performer-list .ozzy-person-name { margin: 15px 0 8px; }
.sp-performer-list .ozzy-person-name a.sppb-btn { width: 100%; }

/* ---- Últimos bolos: filas cartel · sala · fecha · ciudad (portada, clase last-concert) ---- */
.ozzy-lista-bolos { max-width: 1170px; margin: 0 auto; text-align: left; }
.ozzy-lista-bolos .ozzy-lb-item {
  display: grid; grid-template-columns: 108px 1.3fr 1fr 1fr; gap: 0 40px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-transform: uppercase;
}
.ozzy-lista-bolos .ozzy-lb-head { padding: 0 0 18px; }
.ozzy-lista-bolos .ozzy-lb-head > div { color: #ff0000; font-size: 18px; font-weight: 700; }
.ozzy-lista-bolos .ozzy-lb-head .ozzy-lb-img { height: 0; background: none; }
.ozzy-lista-bolos .ozzy-lb-img { display: block; width: 108px; height: 108px; background: #111; }
.ozzy-lista-bolos .ozzy-lb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ozzy-lista-bolos a.ozzy-lb-img { cursor: zoom-in; overflow: hidden; }
.ozzy-lista-bolos a.ozzy-lb-img:hover img { transform: scale(1.06); }
.ozzy-lista-bolos .ozzy-lb-venue,
.ozzy-lista-bolos .ozzy-lb-date { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.ozzy-lista-bolos .ozzy-lb-city { color: rgba(255, 255, 255, .6); font-size: 18px; }
.ozzy-lista-bolos .ozzy-lb-ticket { grid-column: 2 / -1; padding-top: 14px; }
@media (max-width: 767px) {
  .ozzy-lista-bolos .ozzy-lb-head { display: none; }
  .ozzy-lista-bolos .ozzy-lb-item { grid-template-columns: 90px 1fr; gap: 4px 15px; }
  .ozzy-lista-bolos .ozzy-lb-img { width: 90px; height: 90px; grid-row: 1 / span 3; }
  .ozzy-lista-bolos .ozzy-lb-venue,
  .ozzy-lista-bolos .ozzy-lb-date,
  .ozzy-lista-bolos .ozzy-lb-city { grid-column: 2; font-size: 16px; }
  .ozzy-lista-bolos .ozzy-lb-ticket { grid-column: 1 / -1; }
}

/* Página Conciertos con la misma lista */
.ozzy-conciertos-lista { padding-top: 70px; }

/* Cartel en grande */
.ozzy-lightbox-image { width: auto; text-align: center; }
.ozzy-lightbox-image img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; display: block; margin: 0 auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.ozzy-lightbox-back { margin-top: 15px; }
.ozzy-lightbox-image img { max-height: calc(100vh - 150px); }

/* ---- Movimiento de los textos al entrar ---- */
/* Portada: título, texto y botón de la cabecera, al cargar la página */
@keyframes ozzyUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.home-top-hero-area .sppb-cta-title { animation: ozzyUp .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
.home-top-hero-area .sppb-cta-text { animation: ozzyUp .9s cubic-bezier(.2, .7, .2, 1) .45s both; }
.home-top-hero-area .sppb-addon-cta .sppb-btn { animation: ozzyUp .9s cubic-bezier(.2, .7, .2, 1) .7s both; }

/* Resto de títulos: al llegar a la pantalla (site.js añade las clases) */
html.ozzy-reveal-on .ozzy-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--ozzy-delay, 0s);
}
html.ozzy-reveal-on .ozzy-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .home-top-hero-area .sppb-cta-title,
  .home-top-hero-area .sppb-cta-text,
  .home-top-hero-area .sppb-addon-cta .sppb-btn { animation: none; }
}
