/* =========================================
   TANGOFESTIVAL — BOTTOMBAR CSS
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #7fcc00;
  --green-dark: #6ab300;
  --black: #0a0a0a;
  --s1: #141414;
  --s2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, 0.55);
  --t3: rgba(255, 255, 255, 0.28);
  --bottom-h: 60px;
  --font: 'DM Sans', sans-serif;
  --t: 0.18s ease;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--black);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   DEMO BG — solo para esta página preview
   ========================================= */
.demo-bg {
  min-height: calc(100vh - var(--bottom-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demo-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.2px;
}

/* =========================================
   BOTTOM NAV
   ========================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-h);
  background: var(--s1);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 90;

  /* Safe area para dispositivos con home indicator (iPhone, etc.) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* =========================================
   ITEMS
   ========================================= */
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--t3);
  position: relative;
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  outline: none;
}

.bnav-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bnav-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.bnav-item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(127, 204, 0, 0.4);
}

/* Estado activo */
.bnav-item.active {
  color: var(--green);
}

/* Línea indicadora en el ítem activo */
.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 0 0 3px 3px;
}

/* =========================================
   ÍCONO
   ========================================= */
.bnav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.bnav-icon svg {
  transition: transform var(--t);
}

.bnav-item:active .bnav-icon svg {
  transform: scale(0.9);
}

.bnav-item.active .bnav-icon svg {
  stroke: var(--green);
}

/* =========================================
   LABEL
   ========================================= */
.bnav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color var(--t);
  line-height: 1;
}

/* =========================================
   DOT — indica canción cargada en Player
   ========================================= */
.bnav-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--s1);
  animation: dotPulse 2s ease-in-out infinite;
}

.bnav-dot[hidden] {
  display: none;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* =========================================
   RESPONSIVE — tablets y desktop
   En tablets/desktop el bottombar puede
   convertirse en sidebar o desaparecer.
   ========================================= */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}
