/* assets/css/hero.css */

/* ============================
   HERO GENERICA POLIPOLL
   (profili + pagine sondaggio)
   ============================ */

.ph-hero {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.ph-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(129, 140, 248, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.ph-hero-inner {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
}

@media (min-width: 992px) {
    .ph-hero-inner {
        padding: 1.5rem 1.9rem;
    }
}

/* Avatar con bordo gradiente */

.ph-avatar {
    border-radius: 999px;
    padding: 3px;
    background: conic-gradient(from 140deg,
        #22c55e, #3b82f6, #a855f7, #ec4899, #f97316, #22c55e);
    display: inline-flex;
}

.ph-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    background: #020617;
}

@media (max-width: 575.98px) {
    .ph-avatar img {
        width: 56px;
        height: 56px;
    }
}

/* Pill generiche */

.ph-pill {
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(248, 250, 252, 0.95);
    color: #0f172a;
    white-space: nowrap;
}

.ph-pill .ph-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

/* Titoli / testi hero */

.ph-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

@media (min-width: 992px) {
    .ph-name {
        font-size: 1.25rem;
    }
}

.ph-bio {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Progress bar hero */

.ph-progress-wrap {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ph-progress {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #a855f7);
    transition: width 0.18s ease-out;
}

/* ============================
   BARRA CATEGORIA / TITOLO
   ============================ */

.poll-category-band {
    margin: 1.3rem 0 1.8rem;
}

.poll-category-pill {
    border-radius: 22px;
    padding: 0.9rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    color: #ffffff;
}

.poll-category-pill .cat-main {
    flex: 1 1 auto;
    min-width: 0;
}

.poll-category-pill .cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(4px);
}

.poll-category-pill .cat-title {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.poll-category-pill .cat-desc {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.95;
}

.poll-category-pill .cat-meta {
    flex: 0 0 auto;
    font-size: 0.8rem;
    text-align: right;
    opacity: 0.95;
}

.poll-category-pill .cat-meta strong {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .poll-category-pill {
        border-radius: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .poll-category-pill .cat-meta {
        text-align: left;
    }
}

/* ============================
   COLORI MACROCATEGORIE
   (coerenti con le tile)
   ============================ */

.bg-tile-blue {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    color: #ffffff !important;
}

.bg-tile-green {
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
    color: #ffffff !important;
}

.bg-tile-orange {
    background: linear-gradient(90deg, #f97316, #ea580c, #c2410c);
    color: #ffffff !important;
}

.bg-tile-red {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
    color: #ffffff !important;
}

.bg-tile-purple {
    background: linear-gradient(90deg, #a855f7, #9333ea, #7e22ce);
    color: #ffffff !important;
}

.bg-tile-yellow {
    background: linear-gradient(90deg, #eab308, #ca8a04, #a16207);
    color: #111827 !important;
}

.bg-tile-neon-lime {
    background: linear-gradient(135deg, #bef264, #4d7c0f);
    color: #ffffff !important;
}


/* fallback generico */
.landing-group-default {
    background: linear-gradient(90deg, #e0f2fe, #64748b);
    color: #0f172a !important;
}
