/* Botones flotantes (random, share, Roblox check, slaps)
   (archivo: css/components/fabs.css) */
/* ============================================================
   RANDOM FAB (dedicated button)
   ============================================================ */
#random-fab {
  position: fixed;
  bottom: 106px;
  right: 18px;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #111;
  border: 1px solid #2e2e2e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, opacity .2s, border-color .2s;
  font-family: 'Fredoka One', cursive;
  animation: fabAppear .35s cubic-bezier(.34,1.56,.64,1) both;
  opacity: 0.45;
}
#random-fab:hover {
  opacity: 1;
  transform: scale(1.12);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255,215,0,0.35), 0 4px 12px rgba(0,0,0,0.6);
}
#random-fab:active { transform: scale(0.93); }
#random-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
#random-fab.spinning {
  animation: randomFabSpin 0.6s linear infinite;
  opacity: 1;
  border-color: #ffd700;
  box-shadow: 0 0 18px rgba(255,215,0,0.55);
}
@keyframes randomFabSpin {
  from { transform: rotate(0deg) scale(1.08); }
  to   { transform: rotate(360deg) scale(1.08); }
}

/* ============================================================
   SHARE FAB (fixed above random-fab)
   ============================================================ */
#share-fab {
  position: fixed;
  bottom: 148px;
  right: 18px;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #111;
  border: 1px solid #2e2e2e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, opacity .2s, border-color .2s;
  font-family: 'Fredoka One', cursive;
  animation: fabAppear .35s cubic-bezier(.34,1.56,.64,1) both;
  opacity: 0.45;
  font-size: 15px;
}
#share-fab:hover {
  opacity: 1;
  transform: scale(1.12);
  border-color: #39ff14;
  box-shadow: 0 0 14px rgba(57,255,20,0.35), 0 4px 12px rgba(0,0,0,0.6);
}
#share-fab:active { transform: scale(0.93); }
#share-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ============================================================
   ROBLOX CHECK FAB (fixed above share-fab)
   ============================================================ */
#roblox-check-fab {
  position: fixed;
  bottom: 190px;
  right: 18px;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #111;
  border: 1px solid #2e2e2e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, opacity .2s, border-color .2s;
  font-family: 'Fredoka One', cursive;
  animation: fabAppear .35s cubic-bezier(.34,1.56,.64,1) both;
  opacity: 0.45;
  font-size: 15px;
}
#roblox-check-fab:hover {
  opacity: 1;
  transform: scale(1.12);
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251,191,36,0.35), 0 4px 12px rgba(0,0,0,0.6);
}
#roblox-check-fab:active { transform: scale(0.93); }
#roblox-check-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ============================================================
   SLAPS FAB (bottom-left, only on gloves page / grid)
   ============================================================ */
#slaps-fab-wrap {
  position: fixed;
  bottom: 22px;
  left: 18px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity .2s, transform .2s;
}
#slaps-fab-wrap.hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }

/* El botón circular principal */
#slaps-fab-btn {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5c200, #e6a800);
  border: 3px solid #ffd700;
  box-shadow: 0 0 18px rgba(255,215,0,0.5), 0 4px 14px rgba(0,0,0,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  z-index: 1;
}
#slaps-fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(255,215,0,0.75), 0 6px 18px rgba(0,0,0,0.6);
}
#slaps-fab-btn:active { transform: scale(0.93); }
#slaps-fab-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Panel expandible que aparece a la derecha del botón */
#slaps-fab-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1400;
  border: 2px solid #ffd700;
  border-radius: 0 32px 32px 0;
  padding: 0 16px 0 24px;
  height: 50px;
  margin-left: -16px; /* se superpone ligeramente al botón */
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width .35s cubic-bezier(.34,1.1,.64,1), opacity .25s ease, padding .3s ease;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255,215,0,0.25), 0 4px 14px rgba(0,0,0,0.5);
}
#slaps-fab-panel.open {
  max-width: 320px;
  opacity: 1;
  pointer-events: all;
  padding: 0 16px 0 28px;
}

#slaps-fab-input {
  width: 110px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ffd700;
  color: #ffd700;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  text-align: center;
  outline: none;
  padding: 2px 4px;
}
#slaps-fab-input::placeholder { color: rgba(255,215,0,0.35); font-size: 1rem; }
/* hide arrows on number input */
#slaps-fab-input::-webkit-outer-spin-button,
#slaps-fab-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#slaps-fab-input[type=number] { appearance: textfield; }

#slaps-fab-apply {
  background: #ffd700;
  border: none;
  border-radius: 20px;
  color: #111;
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}
#slaps-fab-apply:hover { background: #ffe84d; transform: scale(1.05); }
#slaps-fab-apply:active { transform: scale(0.94); }

#slaps-fab-label {
  color: rgba(255,215,0,0.6);
  font-size: 0.78rem;
  font-family: 'Fredoka', sans-serif;
  white-space: nowrap;
}

