/**
 * perfil.css
 * Estilos específicos de la página "Mi Perfil" de BetFlipAi.
 * Organizado en secciones: base, componentes, stakes, footer, animaciones.
 */

/* ─── Variables / Reset ─────────────────────────────────────────────────── */
:root {
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
               Cantarell, "Helvetica Neue", Arial, "Noto Sans";
}

html {
  font-family: var(--font-sans);
  height: 100%;
}

body {
  background-color: #0B0B10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* ─── Componentes reutilizables ─────────────────────────────────────────── */

/** Card genérica */
.card {
  background: #12121A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

/** Pill / etiqueta pequeña */
.pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/** Precio en negrita */
.price {
  font-weight: 800;
}

/** Stat box (métricas pequeñas en las cards) */
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}
.stat b {
  display: block;
  font-size: 0.95rem;
}

/** CTA genérico */
.cta {
  display: block;
  text-align: center;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

/** Chip de filtro */
.chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.chip:hover {
  background: linear-gradient(135deg, rgba(142, 124, 255, 0.25), rgba(117, 230, 255, 0.25));
  border-color: rgba(142, 124, 255, 0.5);
  box-shadow: 0 0 10px rgba(142, 124, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.chip:active,
.chip:focus,
.chip--selected {
  outline: none;
  background: linear-gradient(135deg, rgba(142, 124, 255, 0.25), rgba(117, 230, 255, 0.25));
  border-color: rgba(142, 124, 255, 0.5);
  box-shadow: 0 0 10px rgba(142, 124, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}


/* ─── Stakes – bordes y glow por nivel ──────────────────────────────────── */
.stake-10 { box-shadow: 0 0 24px rgba(117, 230, 255, 0.35); border-color: rgba(117, 230, 255, 0.45); }
.stake-9  { box-shadow: 0 0 24px rgba(108,  79, 249, 0.35); border-color: rgba(108,  79, 249, 0.45); }
.stake-8  { box-shadow: 0 0 24px rgba(245, 196,  81, 0.28); border-color: rgba(245, 196,  81, 0.40); }
.stake-7  { box-shadow: 0 0 24px rgba(199, 206, 214, 0.20); border-color: rgba(199, 206, 214, 0.35); }

/** Badges de stake (pills coloreados) */
.badge-10 { background: linear-gradient(135deg, #75E6FF, #42C7E8); color: #0B0B10; }
.badge-9  { background: linear-gradient(135deg, #8E7CFF, #6C4FF9); color: #0B0B10; }
.badge-8  { background: linear-gradient(135deg, #F5C451, #F0A714); color: #0B0B10; }
.badge-7  { background: linear-gradient(135deg, #D6DEE6, #B7C0CA); color: #0B0B10; }


/* ─── Flip card ─────────────────────────────────────────────────────────── */
.flip-card  { border-radius: 16px; overflow: hidden; }
.flip-inner { border-radius: inherit; }
.flip-front,
.flip-back  { border-radius: inherit; }


/* ─── Modal overlay ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #12121A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  margin: 16px;
  width: 100%;
}


/* ─── Utilidades de estado ──────────────────────────────────────────────── */
.fade-out {
  transition: opacity 0.5s;
  opacity: 0.5;
  pointer-events: none;
}


/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer-betflip {
  background: #0B0B10;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-family: var(--font-sans);
  position: relative;
}

/** Barra superior con gradiente animado */
.footer-bar {
  height: 3px;
  background: linear-gradient(90deg, #8E7CFF, #6C4FF9, #F5C451, #8E7CFF);
  background-size: 300% 100%;
  animation: gradientMove 6s ease infinite;
  border-radius: 2px;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: #F5C451;
  text-shadow: 0 0 6px rgba(245, 196, 81, 0.3);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-socials a {
  color: #8E7CFF;
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  color: #F5C451;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(245, 196, 81, 0.4);
}


/* ─── Animaciones ───────────────────────────────────────────────────────── */

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes notif-vibrate {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(-16deg); }
  30%       { transform: rotate(14deg); }
  45%       { transform: rotate(-10deg); }
  60%       { transform: rotate(8deg); }
  75%       { transform: rotate(-3deg); }
  90%       { transform: rotate(2deg); }
}

.notif-shake {
  animation: notif-vibrate 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease both;
}
