
/* ----------------------------------------------------------
   FONDO ANIMADO - ONDAS DOPPLER PRO
---------------------------------------------------------- */
body {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 0, 0, 0.12), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 40, 40, 0.12), transparent 60%),
    #000;
  animation: ondasDoppler 12s infinite alternate ease-in-out;
  background-attachment: fixed;
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 20px;
  text-align: center;
}

@keyframes ondasDoppler {
  from { background-position: 0px 0px, 0px 0px; }
  to   { background-position: 40px 40px, -40px -40px; }
}

/* Reduce motion → no animar */
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
  .userDropdown { animation: none !important; }
}

/* ----------------------------------------------------------
   VOLVER
---------------------------------------------------------- */
.volver {
  display: inline-block;
  margin-bottom: 20px;
  margin-top: 60px;
  color: #ff2e2e;
  text-decoration: none;
  font-weight: bold;
}

/* ----------------------------------------------------------
   TITULO
---------------------------------------------------------- */
h1 {
  color: #ff2e2e;
  margin-bottom: 30px;
}

/* ----------------------------------------------------------
   BUSCADOR — DOPPLER PRO
---------------------------------------------------------- */
.buscador {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 35px;
  padding: 0;
  align-items: center;
}

/* CONTENEDOR INPUT PRO con icono */
.buscador .inputWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.buscador .inputWrapper::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  font-size: 1.1rem;
}

/* INPUT PRO */
.buscador input {
  padding: 10px 12px 10px 36px; /* deja sitio para icono */
  width: 240px;
  border-radius: 8px;
  border: none;
  outline: none;
  background-color: rgba(20, 20, 20, 0.75);
  color: #fff;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Placeholder */
.buscador input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* PC - Focus elegante */
@media (hover: hover) {
  .buscador input:focus {
    background-color: #111 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 46, 46, 0.55),
                0 4px 12px rgba(255, 46, 46, 0.25),
                0 0 14px rgba(255, 0, 0, 0.35);
  }
}

/* Móvil - Glow suave */
@media (hover: none) {
  .buscador input:focus {
    background-color: #111 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 46, 46, 0.35);
  }
}

/* BOTÓN */
.buscador button {
  background-color: #ff2e2e;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.buscador button:hover {
  background-color: #e01e1e;
}

.buscador button:active {
  transform: scale(0.98);
}

/* ----------------------------------------------------------
   RESULTADOS — TARJETAS PRO
---------------------------------------------------------- */
.resultados {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 500px;
  margin: 0 auto;
}

.resultado {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(17, 17, 17, 0.85);
  padding: 14px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 46, 46, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

/* PC Hover */
@media (hover: hover) {
  .resultado:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 46, 46, 0.45);
    box-shadow: 0 4px 18px rgba(255, 46, 46, 0.25);
  }
}

/* Móvil Tap */
.resultado:active {
  transform: scale(0.985);
  border-color: rgba(255, 46, 46, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 46, 46, 0.22),
              0 10px 25px rgba(0, 0, 0, 0.45);
}

.resultado img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.resultado .info {
  text-align: left;
}

.resultado .info strong {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.resultado .info span {
  opacity: 0.85;
}

/* ----------------------------------------------------------
   DROPDOWN DE USUARIO (TOP-RIGHT)
---------------------------------------------------------- */
.userMenu {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  user-select: none;
}

.userBtn {
  background: #ff2e2e;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.userBtn:hover { background: #e01e1e; }
.userBtn:active { transform: scale(0.98); }

.userDropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid #ff2e2e;
  border-radius: 10px;
  padding: 18px 16px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  animation: dropdownAnim 0.18s ease-out;
}

.userDropdown.show { display: flex; }

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.userDropdown input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ff2e2e;
  border-radius: 8px;
  background: #0f0f0f;
  color: white;
  outline: none;
}

.userDropdown button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #ff2e2e;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.userDropdown button:hover { background: #e01e1e; }
.userDropdown button:active { transform: scale(0.98); }

#userNotLogged {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#userLogged {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#userLogged p {
  text-align: center;
  margin-bottom: 3px;
}

.logoutBtn {
  background: #444;
}

.logoutBtn:hover {
  background: #666;
}

.loginMsg {
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.9;
}


.misPicks{
  margin: -10px 0 25px;
  opacity: 0.9;
  color: rgba(255,255,255,0.85);
}

.pickDetails{
  width: 100%;
  margin-top: 10px;
}

.pickSummary{
  cursor: pointer;
  list-style: none;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,46,46,0.12);
  border: 1px solid rgba(255,46,46,0.22);
}

.pickSummary::-webkit-details-marker { display: none; }

.pickPanel{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pickBtn{
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #ff2e2e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pickBtn:active{ transform: scale(0.98); }

.pickBtn.secondary{
  background: #333;
}

.badge{
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0.95;
}
.badge.mine{ background: rgba(46, 204, 113, 0.18); border-color: rgba(46,204,113,0.35); }
.badge.taken{ background: rgba(255, 46, 46, 0.18); border-color: rgba(255,46,46,0.35); }
.badge.played{ background: rgba(200,200,200,0.14); border-color: rgba(200,200,200,0.25); }


/* ==========================
   MIS PICKS BUTTON
   ========================== */
.misPicksBtn{
  margin: -10px 0 25px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,46,46,0.28);
  background: rgba(26,26,26,0.55);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(6px);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.misPicksBtn:active{ transform: scale(0.98); }
@media (hover:hover){
  .misPicksBtn:hover{
    border-color: rgba(255,46,46,0.55);
    box-shadow: 0 6px 18px rgba(255,46,46,0.18);
  }
}

/* ==========================
   MODAL OVERLAY
   ========================== */
.modalOverlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.62);
  z-index: 20000;
}

.modalOverlay.show{
  display: flex;
}

.modalCard{
  width: 100%;
  max-width: 520px;
  background: rgba(16,16,16,0.92);
  border: 2px solid rgba(255,46,46,0.65);
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  position: relative;
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn{
  from{ opacity:0; transform: translateY(8px) scale(0.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.modalClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: rgba(255,46,46,0.18);
  color: #ff2e2e;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}
.modalClose:active{ transform: scale(0.97); }

.modalTitle{
  margin: 0 0 6px;
  color: #ff2e2e;
  font-size: 1.25rem;
}
.modalSubtitle{
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ==========================
   LISTA DE PICKS
   ========================== */
.picksList{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* “card” dentro del modal */
.pickItem{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(26,26,26,0.55);
  border: 1px solid rgba(255,46,46,0.22);
}

.pickItem .meta{
  flex: 1;
  text-align: left;
}

.pickItem strong{
  display:block;
  font-size: 1.02rem;
}
.pickItem span{
  opacity: 0.82;
  font-size: 0.92rem;
}

.pickRemove{
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #ff2e2e;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.pickRemove:active{ transform: scale(0.98); }

.pickEmpty{
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,46,46,0.25);
  opacity: 0.9;
}

.modalHint{
  margin-top: 14px;
  opacity: 0.75;
  font-size: 0.9rem;
}
