/**
 * ==============================================================================
 * Archivo: account.css
 * Ruta: localpadel/includes/modules/players/ui/account/account.css
 *
 * Descripción:
 *   UI HUB /jugador/ (autenticado) - iOS premium, scoped.
 *   - Base visual coherente con login.css (variables, cards, botones, Open Sans)
 *   - Tabs tipo “píldoras” (sin abusar de negrita)
 *   - Helpers: divider, h2, tabhead, empty, link-mini, etc.
 *   - ✅ Debajo del título: URL pública + copiar + WhatsApp (verde)
 *   - Responsive móvil sí o sí
 *
 * Versión: 1.0.1
 * Autor: Alberto Aranda Aranda
 * Último cambio: 2025-12-26 Europe/Madrid
 * ==============================================================================
 */

.lp-wrap.lp-players{
  font-family:"Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(15,23,42,.94);

  --lp-brand:#2C4A9C;
  --lp-ink:rgba(15,23,42,.94);
  --lp-muted:rgba(100,116,139,1);
  --lp-border:rgba(15,23,42,.10);

  --lp-card:rgba(255,255,255,.92);
  --lp-shadow:0 18px 55px rgba(2,6,23,.10);
  --lp-shadow-soft:0 10px 24px rgba(2,6,23,.08);

  --lp-radius:22px;

  /* Paneles internos */
  --lp-panel-bg: rgba(255,255,255,.70);
  --lp-panel-bd: rgba(15,23,42,.08);

  /* Pills / tabs */
  --lp-pill-bg: rgba(148,163,184,.12);
  --lp-pill-bd: rgba(15,23,42,.10);
  --lp-pill-active-bg: rgba(44,74,156,.12);
  --lp-pill-active-bd: rgba(44,74,156,.24);

  /* Danger */
  --lp-danger-bg: rgba(239,68,68,.10);
  --lp-danger-bd: rgba(239,68,68,.22);

  /* Flash (por si lo reutilizas en el hub) */
  --lp-ok-bg: rgba(16,185,129,.12);
  --lp-ok-bd: rgba(16,185,129,.28);
  --lp-err-bg: rgba(239,68,68,.12);
  --lp-err-bd: rgba(239,68,68,.28);
  --lp-info-bg: rgba(59,130,246,.10);
  --lp-info-bd: rgba(59,130,246,.24);
}

@media (prefers-reduced-motion: reduce){
  .lp-anim-in,
  .lp-btn,
  .lp-tabs a{ animation:none !important; transition:none !important; }
}

/* =========================
   Card principal (marco)
   ========================= */

.lp-wrap.lp-players .lp-card{
  border:1px solid var(--lp-border);
  border-radius:var(--lp-radius);
  background:var(--lp-card);
  box-shadow:var(--lp-shadow);
  padding:24px;
  max-width:1240px;
  margin:16px auto;
}
@media (max-width: 520px){
  .lp-wrap.lp-players .lp-card{ padding:16px; }
}

/* Fondo tipo hero suave */
.lp-account-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1100px 600px at 70% 0%, rgba(44,74,156,.14), transparent 60%),
    radial-gradient(820px 460px at 12% 36%, rgba(99,102,241,.10), transparent 55%),
    rgba(255,255,255,.92);
}
.lp-account-hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0));
  pointer-events:none;
}

/* =========================
   Head
   ========================= */

.lp-account-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.lp-account-head__icon{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(44,74,156,.18);
  background: rgba(44,74,156,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 12px 26px rgba(44,74,156,.12);
  overflow:hidden;
}
.lp-account-head__icon img{
  width:30px;
  height:30px;
  display:block;
  object-fit:contain;
}
.lp-account-title{
  font-size:22px;
  font-weight:600;
  letter-spacing:-.25px;
  margin-top:-1px;
}
.lp-account-sub{
  margin-top:6px;
  color: var(--lp-muted);
  font-size:13px;
  line-height:1.55;
  max-width:72ch;
}

/* =========================
   Public URL (debajo del título)
   ========================= */

.lp-publicline{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.lp-publicline__url{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  box-shadow:0 10px 22px rgba(2,6,23,.06);
  max-width:100%;
}

.lp-publicline__label{
  font-size:12px;
  color: var(--lp-muted);
  white-space:nowrap;
}

.lp-publicline__value{
  font-size:13px;
  color: rgba(15,23,42,.90);
  font-weight:600;
  letter-spacing:-.15px;
  max-width: 520px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (max-width: 520px){
  .lp-publicline__value{ max-width: 100%; }
}

/* =========================
   Tabs (píldoras)
   ========================= */

.lp-tabs{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.lp-tabs a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--lp-pill-bd);
  background: var(--lp-pill-bg);
  color: rgba(15,23,42,.86);
  text-decoration:none !important;
  font-size:13px;
  font-weight:600; /* solo aquí, en pill está bien */
  letter-spacing:-.15px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.lp-tabs a:hover{ transform: translateY(-1px); box-shadow:0 14px 28px rgba(2,6,23,.10); }
.lp-tabs a:active{ transform: translateY(0); }

.lp-tabs a.is-active{
  background: var(--lp-pill-active-bg);
  border-color: var(--lp-pill-active-bd);
  box-shadow:0 0 0 4px rgba(44,74,156,.12), 0 14px 28px rgba(2,6,23,.08);
}

.lp-tabs .lp-tabs__right{
  margin-left:auto;
  display:flex;
  gap:10px;
  align-items:center;
}
@media (max-width: 760px){
  .lp-tabs .lp-tabs__right{ width:100%; margin-left:0; }
}

/* =========================
   Botones (base coherente)
   ========================= */

.lp-btn{
  appearance:none;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  color: var(--lp-ink);
  border-radius:16px;
  padding:11px 14px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow:var(--lp-shadow-soft);
  min-height:44px;
}
.lp-btn:hover{ transform: translateY(-1px); box-shadow:0 14px 28px rgba(2,6,23,.10); }
.lp-btn:active{ transform: translateY(0); box-shadow:var(--lp-shadow-soft); }

.lp-btn--primary{
  background: linear-gradient(180deg, rgba(44,74,156,1), rgba(44,74,156,.92));
  color:#fff;
  border-color: rgba(44,74,156,.35);
}
.lp-btn--soft{
  background: rgba(44,74,156,.08);
  border-color: rgba(44,74,156,.18);
}

.lp-btn--danger{
  background: rgba(255,255,255,.92);
  border-color: rgba(239,68,68,.30);
  color: rgba(185,28,28,1);
}

.lp-btn[disabled],
.lp-btn[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:0 10px 24px rgba(2,6,23,.06) !important;
  filter:saturate(.9);
}

/* Botón mini (para copiar/whatsapp en header) */
.lp-btn--mini{
  min-height:36px;
  padding:8px 10px;
  border-radius:14px;
  font-size:13px;
}

/* WhatsApp verde */
.lp-btn--whatsapp{
  background: linear-gradient(180deg, rgba(34,197,94,1), rgba(34,197,94,.90));
  border-color: rgba(34,197,94,.35);
  color:#fff;
}
.lp-btn--whatsapp:hover{
  box-shadow:0 14px 28px rgba(34,197,94,.18);
}

/* =========================
   Panel interno
   ========================= */

.lp-card.lp-card--inner{
  width:100%;
  margin:0;
  max-width:none;
  background: var(--lp-panel-bg);
  border:1px solid var(--lp-panel-bd);
  box-shadow:none;
  border-radius:20px;
  padding:20px;
  height:100%;
}
@media (max-width: 520px){
  .lp-card.lp-card--inner{ padding:14px; border-radius:18px; }
}

/* =========================
   Helpers
   ========================= */

.lp-muted{
  color: var(--lp-muted);
  font-size:13px;
  line-height:1.5;
}

.lp-divider{
  height:1px;
  background: rgba(15,23,42,.10);
  margin:14px 0;
}

.lp-h2{
  font-size:16px;
  font-weight:600;
  letter-spacing:-.2px;
  margin:0;
}

.lp-tabhead p{ margin:6px 0 0 0; }

.lp-link-mini{
  font-size:12px;
  color: rgba(44,74,156,.92);
  text-decoration:none !important;
  border-bottom:1px dashed rgba(44,74,156,.35);
}
.lp-link-mini:hover{ border-bottom-style:solid; }

.lp-anim-in{ animation: lp-in .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lp-in{
  from{ opacity:0; transform: translateY(-8px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Focus visible */
.lp-wrap.lp-players a:focus,
.lp-wrap.lp-players button:focus,
.lp-wrap.lp-players input:focus{ outline:none; }
.lp-wrap.lp-players a:focus-visible,
.lp-wrap.lp-players button:focus-visible,
.lp-wrap.lp-players input:focus-visible{
  box-shadow: 0 0 0 4px rgba(44,74,156,.18);
  border-color: rgba(44,74,156,.35);
}

/* Mobile: tabs a 2 columnas “bonitas” si hace falta */
@media (max-width: 520px){
  .lp-tabs{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:10px;
  }
  .lp-tabs a{ width:100%; justify-content:center; }
  .lp-tabs .lp-tabs__right{
    grid-column: 1 / -1;
    width:100%;
    display:grid;
    grid-template-columns: 1fr;
  }
  .lp-tabs .lp-tabs__right .lp-btn{ width:100%; }
}
