/* ═══════════════════════════════════════════════════════════════
   EVENTOS.CSS — Bádminton Perú
   Sección torneos homepage: video fondo + 3 cards
   → En Angular: eventos.component.scss
   ═══════════════════════════════════════════════════════════════ */

/* ── Sección ──────────────────────────────────────────────────── */
.bp-torneos {
  background: var(--bp-black);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

/* ── Video de fondo ───────────────────────────────────────────── */
.bp-video-bg-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;   /* ratio 16:9 */
  min-height: 100%;
  min-width: 177.78vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

.bp-video-bg-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Container ────────────────────────────────────────────────── */
.bp-torneos .bp-container {
  position: relative;
  z-index: 1;
}

/* ── Grid de cards ────────────────────────────────────────────── */
.bp-torneos-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Card ─────────────────────────────────────────────────────── */
.bp-torneo-card {
  background: var(--bp-white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bp-gray-light);
  width: 280px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bp-torneo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Borde por estado */
.bp-card-finalizado { border-color: var(--bp-red); }
.bp-card-en_curso   { border-color: var(--bp-red-orange); border-width: 2px; }
.bp-card-proximo    { border-color: var(--bp-green);      border-width: 2px; }

/* ── Imagen del torneo ────────────────────────────────────────── */
.bp-torneo-img {
  height: 190px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #eee;
}

.bp-torneo-logo-img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

/* Placeholder cuando no hay imagen */
.bp-torneo-logo-ph {
  width: 110px;
  height: 110px;
  background: #ebebeb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-torneo-logo-ph span {
  font-weight: 700;
  font-size: 10px;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 4px;
}

/* ── Badge de estado ──────────────────────────────────────────── */
.bp-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bp-white);
}

.bp-badge-finalizado { background: var(--bp-red); }
.bp-badge-en_curso   { background: var(--bp-red-orange); }
.bp-badge-proximo    { background: var(--bp-green); }

/* ── Body de la card ──────────────────────────────────────────── */
.bp-torneo-body {
  padding: 16px;
  text-align: center;
}

.bp-torneo-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--bp-black);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bp-torneo-fed-logo {
  margin: 6px auto 4px;
  display: flex;
  justify-content: center;
}

.bp-torneo-fed-logo img {
  width: 36px;
  height: auto;
  opacity: 0.5;
}

.bp-torneo-fecha {
  font-size: 12px;
  color: var(--bp-gray-mid);
  margin-bottom: 14px;
}

/* ── Botón de acción ──────────────────────────────────────────── */
.bp-torneo-btn {
  display: block;
  text-align: center;
  padding: 11px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bp-white);
  margin: 0 -16px -16px -16px;
  border-radius: 0 0 10px 10px;
  transition: opacity 0.2s;
}

.bp-torneo-btn:hover {
  opacity: 0.85;
  color: var(--bp-white);
}

.bp-btn-finalizado { background: var(--bp-red); }
.bp-btn-en_curso   { background: var(--bp-red-orange); }
.bp-btn-proximo    { background: var(--bp-green); }

/* ── CTA ver calendario ───────────────────────────────────────── */
.bp-torneos-cta {
  text-align: center;
  margin-top: 36px;
}

.bp-torneos-cta a {
  border: 1px solid #444;
  color: #bbb;
  padding: 11px 32px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.bp-torneos-cta a:hover {
  border-color: #888;
  color: var(--bp-white);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bp-torneos {
    overflow-x: hidden;
  }

  .bp-torneos-grid {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 16px;
  }

  .bp-torneo-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}