/* =============================================================
   STICKY NAVIGATION — Live Score + Schedule
   Desktop: fixed vertical pill, right edge, vertically centered
   Mobile:  fixed bottom bar, full width
   ============================================================= */

/* ─── Desktop pill ───────────────────────────────────────────── */
.sticky-nav {
  /* pill is the primary element on ≥768px */
}

.snav-mobile-bar { display: none; } /* hidden on desktop */

.snav-pill {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  background: rgba(17, 18, 19, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(201, 168, 76, 0.08) inset;

  overflow: hidden;
  /* Entrance animation */
  animation: snav-slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes snav-slide-in {
  from { opacity: 0; transform: translateY(-50%) translateX(32px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0);    }
}

/* ─── Pill divider ───────────────────────────────────────────── */
.snav-divider {
  height: 1px;
  margin: 0 12px;
  background: rgba(201, 168, 76, 0.18);
}

/* ─── Individual button ──────────────────────────────────────── */
.snav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  min-width: 72px;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  transition: color 0.22s ease, background 0.22s ease;
}

.snav-btn:hover {
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.07);
}

.snav-btn--active {
  color: var(--gold-light) !important;
  background: rgba(201, 168, 76, 0.12) !important;
}

.snav-btn--active .snav-label {
  color: var(--gold-light);
}

/* Hover left-edge accent bar */
.snav-btn::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.snav-btn:hover::after,
.snav-btn--active::after {
  opacity: 1;
}

/* ─── Icon ───────────────────────────────────────────────────── */
.snav-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.snav-btn:hover .snav-icon {
  transform: scale(1.1);
}

/* ─── Label ──────────────────────────────────────────────────── */
.snav-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

/* ─── Live pulsing dot ───────────────────────────────────────── */
.snav-live-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4040;
  box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.6);
  animation: snav-live-pulse 1.8s ease-in-out infinite;
}

@keyframes snav-live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 64, 64, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 64, 64, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(255, 64, 64, 0);   }
}

/* ─── Mobile — bottom bar ────────────────────────────────────── */
@media (max-width: 767px) {
  .snav-pill { display: none; }

  .snav-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;

    background: rgba(10, 10, 11, 0.96);
    border-top: 1px solid rgba(201, 168, 76, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);

    /* Safe area for iPhone home bar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .snav-mobile-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
    border-right: 1px solid rgba(201, 168, 76, 0.12);
  }

  .snav-mobile-btn:last-child { border-right: none; }

  .snav-mobile-btn:active {
    background: rgba(201, 168, 76, 0.1);
  }

  .snav-mobile-btn.snav-btn--active {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
  }

  /* Active top-edge indicator */
  .snav-mobile-btn.snav-btn--active::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--gold);
    border-radius: 0 0 2px 2px;
  }

  .snav-mobile-btn .snav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .snav-mobile-btn .snav-live-dot {
    top: 8px;
    right: calc(50% - 22px);
  }

  /* Push page content above bottom bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
