/* ============================================================
 * barman-profile.css — Profilo pubblico condivisibile /b/{slug}
 * Mobile-first, standalone. Usa i token di variables.css.
 * ========================================================== */

/* Icone SVG: questa pagina carica solo variables.css + questo file,
   quindi le classi .icon vanno (ri)definite qui. Em-based → scalano col testo. */
.icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; flex-shrink: 0; stroke: currentColor; fill: none; }
.icon--xs { width: 0.9em;  height: 0.9em; }
.icon--sm { width: 1.15em; height: 1.15em; }
.icon--lg { width: 1.6em;  height: 1.6em; }
.icon--xl { width: 2.6em;  height: 2.6em; }
.icon-muted { color: var(--c-text-muted, #6b7785); }
.icon-coral { color: var(--c-coral, #E36D62); }

.bp-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body, 'Montserrat', system-ui, sans-serif);
    color: var(--c-text, #1d2733);
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(227,109,98,0.18), transparent 60%),
        var(--c-bg-warm, #fbf6f2);
    display: flex; flex-direction: column; align-items: center;
    padding: var(--sp-4, 1rem);
    -webkit-font-smoothing: antialiased;
}

/* Card centrale */
.bp-card {
    width: 100%; max-width: 480px;
    background: #fff;
    border-radius: var(--r-xl, 22px);
    box-shadow: 0 18px 50px rgba(20,30,50,0.16);
    overflow: hidden;
    margin: auto;
}

/* ── HERO ─────────────────────────────────────────────────── */
.bp-hero {
    position: relative;
    text-align: center;
    padding: var(--sp-7, 2rem) var(--sp-6, 1.5rem) var(--sp-5, 1.25rem);
    background: linear-gradient(165deg, rgba(227,109,98,0.10), #fff 70%);
}
.bp-photo-wrap {
    width: 130px; height: 130px; margin: 0 auto var(--sp-4, 1rem);
    border-radius: 50%; padding: 5px;
    background: var(--grad-coral, linear-gradient(135deg, #E36D62, #f0a08a));
    box-shadow: 0 10px 26px rgba(227,109,98,0.4);
}
.bp-photo {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; background: var(--c-bg-warm, #f1e9e3);
    display: block; border: 4px solid #fff;
}
.bp-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--c-coral, #E36D62);
    background: rgba(227,109,98,0.1); border: 1px solid rgba(227,109,98,0.25);
    border-radius: 999px; padding: 3px 12px;
}
.bp-name {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 2.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
    margin: var(--sp-3, 0.75rem) 0 2px; line-height: 1.05; color: var(--c-blue, #0069AA);
}
.bp-bar {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.95rem; font-weight: 600; color: var(--c-text-muted, #6b7785); margin: 0;
}
.bp-descr {
    font-size: 0.92rem; line-height: 1.5; color: var(--c-text-mid, #44515f);
    margin: var(--sp-4, 1rem) auto 0; max-width: 34ch;
}

/* ── STATS ────────────────────────────────────────────────── */
.bp-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--c-border, #e7e0da);
    border-block: 1px solid var(--c-border, #e7e0da);
}
.bp-stat {
    background: #fff; text-align: center;
    padding: var(--sp-4, 1rem) var(--sp-2, 0.5rem);
    display: flex; flex-direction: column; gap: 2px;
}
.bp-stat-num {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--c-text, #1d2733);
}
.bp-pts.pos { color: var(--c-success, #1a7a4a); }
.bp-pts.neg { color: var(--c-danger, #c0392b); }

/* Badge "🔥 +N oggi" */
.bp-today {
    margin-top: 3px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
    color: #fff; background: var(--c-coral, #E36D62); border-radius: 999px; padding: 1px 7px;
    opacity: 0; transform: scale(0.8); transition: opacity .2s, transform .2s;
}
.bp-today.on { opacity: 1; transform: scale(1); }

/* Bump quando il contatore sale */
.bp-bump { animation: bpBump .5s ease; }
@keyframes bpBump {
    0%,100% { transform: scale(1); }
    40%     { transform: scale(1.25); color: var(--c-coral, #E36D62); }
}

/* Countdown chiusura squadre */
.bp-countdown {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--c-blue, #0069AA); color: #fff;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 9px 14px; text-align: center;
}
.bp-countdown .bp-cd-val { font-weight: 800; }
.bp-stat-lbl {
    font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--c-text-muted, #6b7785);
}

/* ── RALLY (call to action sociale) ───────────────────────── */
.bp-rally { padding: var(--sp-6, 1.5rem) var(--sp-6, 1.5rem) var(--sp-2, 0.5rem); text-align: center; }
.bp-rally-title {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; color: var(--c-text, #1d2733);
}
.bp-rally-sub { font-size: 0.9rem; line-height: 1.45; color: var(--c-text-muted, #6b7785); margin: 0; }

/* ── SHARE ────────────────────────────────────────────────── */
.bp-share { padding: var(--sp-4, 1rem) var(--sp-6, 1.5rem) var(--sp-2, 0.5rem); }

.bp-share-native {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer;
    background: var(--grad-coral, linear-gradient(135deg, #E36D62, #f0a08a)); color: #fff;
    font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 14px; border-radius: 999px; margin-bottom: var(--sp-3, 0.75rem);
    box-shadow: 0 8px 22px rgba(227,109,98,0.4);
}
.bp-share-native:active { transform: translateY(1px); }

.bp-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3, 0.75rem); }

.bp-sh {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 12px 6px; border-radius: 14px; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.82rem; font-weight: 700; color: #fff;
    text-decoration: none; text-align: center; transition: transform 0.12s ease, filter 0.12s ease;
}
.bp-sh:hover { transform: translateY(-2px); filter: brightness(1.05); }
.bp-sh:active { transform: translateY(0); }
.bp-brand { width: 26px; height: 26px; display: block; fill: currentColor; flex-shrink: 0; }
.bp-sh-lbl { font-size: 0.72rem; font-weight: 700; line-height: 1; }
.bp-share-native .bp-brand { width: 20px; height: 20px; display: inline-block; vertical-align: -0.3em; margin-right: 4px; }
.bp-wa   { background: #25D366; }
.bp-tg   { background: #229ED9; }
.bp-fb   { background: #1877F2; }
.bp-x    { background: #000; }
.bp-ig   { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF 90%); }
.bp-copy { background: var(--c-text, #1d2733); }

/* ── CTA gioca ────────────────────────────────────────────── */
.bp-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: var(--sp-5, 1.25rem) var(--sp-6, 1.5rem) var(--sp-4, 1rem);
    padding: 15px; border-radius: 999px;
    background: var(--c-blue, #0069AA); color: #fff; text-decoration: none;
    font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em;
    box-shadow: 0 8px 22px rgba(0,105,170,0.32);
}
.bp-cta:active { transform: translateY(1px); }

.bp-foot {
    text-align: center; padding: 0 var(--sp-6, 1.5rem) var(--sp-6, 1.5rem);
    font-size: 0.8rem; color: var(--c-text-muted, #6b7785);
}
.bp-foot a { color: var(--c-coral, #E36D62); font-weight: 700; text-decoration: none; }

/* ── 404 ──────────────────────────────────────────────────── */
.bp-404 {
    max-width: 420px; margin: auto; text-align: center;
    background: #fff; border-radius: var(--r-xl, 22px); padding: var(--sp-8, 2.5rem) var(--sp-6, 1.5rem);
    box-shadow: 0 18px 50px rgba(20,30,50,0.16);
}
.bp-404 h1 { font-family: var(--font-display, 'Oswald', sans-serif); margin: var(--sp-4, 1rem) 0 6px; }
.bp-404 p { color: var(--c-text-muted, #6b7785); margin: 0 0 var(--sp-5, 1.25rem); }

/* ── TOAST ────────────────────────────────────────────────── */
.bp-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    background: var(--c-text, #1d2733); color: #fff;
    padding: 12px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 90vw; text-align: center; z-index: 100;
}
.bp-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 360px) {
    .bp-share-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Form reset/recupero password ─────────────────────────── */
.rp-form { display: flex; flex-direction: column; gap: 14px; }
.rp-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--c-text, #1d2733); text-align: left; }
.rp-field input {
    padding: 12px 14px; border: 1.5px solid var(--c-border, #e7e0da); border-radius: 12px;
    font-size: 1rem; font-family: inherit; background: #fff;
}
.rp-field input:focus { outline: none; border-color: var(--c-blue, #0069AA); }
.rp-err {
    background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb;
    border-radius: 10px; padding: 10px 14px; font-size: .85rem; margin: 0 0 12px;
}

/* ══ BOLD THEME — Profilo barman (stessi colori) ═══════════ */
.bp-card { box-shadow: 0 24px 60px rgba(20,30,50,0.2); }
.bp-hero { background: linear-gradient(160deg, rgba(227,109,98,.20), #fff 78%); padding-top: 2.4rem; }
.bp-photo-wrap {
    width: 152px; height: 152px;
    box-shadow: 0 16px 38px rgba(227,109,98,.5);
    animation: bpRing 3.2s ease-in-out infinite;
}
@keyframes bpRing {
    0%,100% { box-shadow: 0 16px 38px rgba(227,109,98,.45); }
    50%     { box-shadow: 0 16px 50px rgba(227,109,98,.68); }
}
.bp-badge { font-size: .74rem; padding: 4px 14px; box-shadow: 0 4px 12px rgba(227,109,98,.18); }
.bp-name { font-size: 2.5rem; }
.bp-stat-num { font-size: 2.1rem; }
.bp-pts.pos { text-shadow: 0 2px 10px rgba(26,122,74,.18); }
.bp-rally-title { font-size: 1.5rem; }
.bp-share-native { box-shadow: 0 12px 28px rgba(227,109,98,.5); font-size: 1.05rem; padding: 16px; }
.bp-sh { box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.bp-brand { width: 28px; height: 28px; }
.bp-cta {
    padding: 17px; font-size: 1.05rem;
    background: linear-gradient(135deg, #0069AA, #1f8fd6);
    box-shadow: 0 14px 30px rgba(0,105,170,.45);
}
.bp-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.bp-countdown { font-size: .85rem; padding: 11px 16px; letter-spacing: .03em; }

/* ══ BOLD — pagine verifica/reset email ════════════════════ */
.bp-404 { box-shadow: 0 24px 60px rgba(20,30,50,.2); border-top: 5px solid var(--c-coral, #E36D62); }
.bp-404 h1 { font-size: 1.7rem; }
.rp-field input { font-weight: 600; }
.rp-field input:focus { box-shadow: 0 0 0 3px rgba(0,105,170,.15); }
.rp-form .bp-cta { box-shadow: 0 12px 28px rgba(0,105,170,.4); }
