/* ═══════════════════════════════════════════════════════════════
   NAV.CSS — Bádminton Perú
   Topbar roja + Nav negro sticky
   → En Angular: nav.component.scss
   ═══════════════════════════════════════════════════════════════ */

/* ── TOPBAR ───────────────────────────────────────────────────── */
.bp-topbar {
  background: var(--bp-red);
  height: 38px;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 999;
}

.bp-topbar .bp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Izquierda: badge + texto */
.bp-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-live-badge {
  background: var(--bp-white);
  color: var(--bp-red);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bp-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes bp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.bp-upcoming-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

/* Derecha: redes sociales */
.bp-topbar-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.bp-topbar-socials a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.bp-topbar-socials a:hover {
  color: var(--bp-white);
}

.bp-topbar-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* SVG de X/Twitter usa stroke */
.bp-topbar-socials .bp-icon-x {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── NAV PRINCIPAL ────────────────────────────────────────────── */
.bp-nav {
  background: var(--bp-black);
  height: 76px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 0 var(--bp-red);
}

.bp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.bp-nav-logo a {
  display: flex;
  align-items: center;
}

.bp-logo-img {
  height: 52px;
  width: auto;
}

.bp-logo-text {
  color: var(--bp-white);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Links */
.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bp-nav-links a {
  color: #999;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.bp-nav-links a:hover {
  color: var(--bp-white);
  background: rgba(255, 255, 255, 0.05);
}

.bp-nav-links a.active {
  color: var(--bp-white);
}

.bp-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--bp-red);
  border-radius: 2px;
}

/* CTA Inscripción */
.bp-nav-right {
  display: flex;
  align-items: center;
}

.bp-nav-cta {
  background: var(--bp-red);
  color: var(--bp-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.bp-nav-cta:hover {
  background: var(--bp-red-dark);
  transform: translateY(-1px);
  color: var(--bp-white);
}

/* ── Hamburger ────────────────────────────────────────────────── */
.bp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
  flex-shrink: 0;
}

.bp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, background 0.2s;
  transform-origin: center;
}

.bp-hamburger.bp-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bp-hamburger.bp-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bp-hamburger.bp-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bp-topbar-left {
    display: none;
  }

  .bp-hamburger {
    display: flex;
  }

  .bp-logo-img {
    height: 38px;
  }

  .bp-nav-links {
    display: none;
  }

  .bp-nav-links.bp-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bp-black);
    padding: 8px 0 16px;
    border-top: 2px solid var(--bp-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 998;
  }

  .bp-nav-links.bp-open a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 13px;
    letter-spacing: 0.8px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .bp-nav-links.bp-open a:last-child {
    border-bottom: none;
  }

  .bp-nav-links.bp-open a.active::after {
    display: none;
  }

  .bp-nav-cta {
    padding: 8px 14px !important;
    font-size: 11px !important;
  }

  .bp-nav {
    overflow-x: hidden;
  }

  .bp-container {
    padding: 0 16px;
  }
}