/* ================================
   POLIPOLL - STILI GLOBALI
   ================================ */

body {
    /*background-color: #050816; */
    color: #e5e7eb;
}

/* Link “chiari” su sfondo scuro */
a.link-light {
    color: #e5e7eb;
}

/* ================================
   HERO GENERICO (HOME)
   ================================ */

.hero-card {
    border-radius: 24px;
    background: radial-gradient(circle at top left, #7b3efc 0, #2b135d 40%, #020617 100%);
    color: #f9fafb;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* ================================
   HERO DASHBOARD UTENTE
   ================================ */

.hero-card-dashboard {
    border-radius: 24px;
    background: radial-gradient(circle at top left, #7b3efc 0, #2b135d 40%, #020617 100%);
    color: #f8fafc;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Testi "muted" dentro hero dashboard -> leggibili */
.hero-card-dashboard .text-muted,
.hero-card-dashboard .small.text-muted {
    color: #d3d8ff !important;
    opacity: 1 !important;
}

/* BOX STATS DASHBOARD (a destra) */
.hero-stats-user {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-stats-user .text-muted,
.hero-stats-user .small.text-muted {
    color: #d3d8ff !important;
    opacity: 1 !important;
}

.hero-stats-user .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.hero-stats-user .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* CARD STATISTICHE DASHBOARD */
.dashboard-stat-card {
    border-radius: 18px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.dashboard-stat-card .text-muted,
.dashboard-stat-card .small.text-muted {
    color: #d3d8ff !important;
    opacity: 1 !important;
}

.dashboard-stat-card .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
}

/* ================================
   TILE COLORATI DASHBOARD
   ================================ */

.dash-tile {
    border-radius: 20px;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #f9fafb;
}

.dash-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%);
    transition: opacity 0.2s ease;
}

.dash-tile:hover::before {
    opacity: 1;
}

.dash-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.dash-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    background: rgba(15, 23, 42, 0.25);
}

.dash-tile-title {
    font-size: 1rem;
    font-weight: 600;
}

.dash-tile-text {
    font-size: 0.86rem;
    color: #e5e7eb;
}

.dash-tile-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.dash-tile a.stretched-link {
    color: inherit;
    text-decoration: none;
}

/* ================================
   HERO ADMIN + TILE ADMIN
   ================================ */

.hero-card-admin {
    border-radius: 24px;
    background: radial-gradient(circle at top left, #7b3efc 0, #2b135d 40%, #020617 100%);
    color: #f8fafc;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Box di destra nell’hero admin */
.hero-stats-card {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-card-admin .text-muted,
.hero-card-admin .small.text-muted,
.hero-stats-card .text-muted,
.hero-stats-card .small.text-muted {
    color: #d3d8ff !important;
    opacity: 1 !important;
}

.hero-stats-card .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.hero-stats-card .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* TILE ADMIN */

.admin-tile {
    border-radius: 20px;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #f9fafb;
}

.admin-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%);
    transition: opacity 0.2s ease;
}

.admin-tile:hover::before {
    opacity: 1;
}

.admin-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.admin-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    background: rgba(15, 23, 42, 0.25);
}

.admin-tile-title {
    font-size: 1rem;
    font-weight: 600;
}

.admin-tile-text {
    font-size: 0.86rem;
    color: #e5e7eb;
}

.admin-tile-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.admin-tile a.stretched-link {
    color: inherit;
    text-decoration: none;
}

/* ================================
   PALETTE COLORI TILE (COMUNE)
   ================================ */

/* Viola */
.bg-tile-purple {
    background: linear-gradient(135deg, #7c3aed, #2e1065);
}

/* Verde scuro */
.bg-tile-green {
    background: linear-gradient(135deg, #16a34a, #064e3b);
}

/* Blu */
.bg-tile-blue {
    background: linear-gradient(135deg, #1d4ed8, #1e293b);
}

/* Ciano */
.bg-tile-cyan {
    background: linear-gradient(135deg, #0891b2, #0f172a);
}

/* Arancione */
.bg-tile-orange {
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

/* Verde chiaro */
.bg-tile-green-light {
    background: linear-gradient(135deg, #4ade80, #065f46);
}

/* Grigio (admin future modules) */
.bg-tile-gray {
    background: linear-gradient(135deg, #6b7280, #020617);
}


/* Rosa neon */
.bg-tile-neon-pink {
    background: linear-gradient(135deg, #ec4899, #9d174d);
}

/* Azzurro neon */
.bg-tile-neon-blue {
    background: linear-gradient(135deg, #38bdf8, #0c4a6e);
}

/* Verde neon */
.bg-tile-neon-green {
    background: linear-gradient(135deg, #22c55e, #065f46);
}

/* Viola neon */
.bg-tile-neon-purple {
    background: linear-gradient(135deg, #a855f7, #4c1d95);
}

/* Lime neon */
.bg-tile-neon-lime {
    background: linear-gradient(135deg, #bef264, #4d7c0f);
}


/* Teal futuristico */
.bg-tile-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

/* Blu notte soft */
.bg-tile-midnight {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

/* Magenta futuristico */
.bg-tile-magenta {
    background: linear-gradient(135deg, #db2777, #831843);
}

/* Rosso cyber */
.bg-tile-cyber-red {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

/* Giallo cyber */
.bg-tile-cyber-yellow {
    background: linear-gradient(135deg, #facc15, #713f12);
}


/* Oro / premium */
.bg-tile-gold {
    background: linear-gradient(135deg, #fbbf24, #78350f);
}

/* Blu acciaio */
.bg-tile-steel {
    background: linear-gradient(135deg, #64748b, #0f172a);
}

/* Grigio business */
.bg-tile-business {
    background: linear-gradient(135deg, #94a3b8, #1e293b);
}

/* Verde finanza */
.bg-tile-finance {
    background: linear-gradient(135deg, #10b981, #064e3b);
}

/* Bordeaux elegante */
.bg-tile-bordeaux {
    background: linear-gradient(135deg, #7f1d1d, #450a0a);
}


/* Ametista pastello */
.bg-tile-amethyst {
    background: linear-gradient(135deg, #c084fc, #4c1d95);
}

/* Cielo pastello */
.bg-tile-sky {
    background: linear-gradient(135deg, #7dd3fc, #0c4a6e);
}

/* Corallo pastello */
.bg-tile-coral {
    background: linear-gradient(135deg, #fb7185, #7f1d1d);
}

/* Verde menta */
.bg-tile-mint {
    background: linear-gradient(135deg, #86efac, #065f46);
}

/* Sabbia scura */
.bg-tile-sand {
    background: linear-gradient(135deg, #f5e0b3, #92400e);
}



/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 575.98px) {
    .hero-card,
    .hero-card-dashboard,
    .hero-card-admin {
        padding: 1.75rem !important;
    }
}

/* Base comune per tutte le landing */
.user-landing-hero {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* Glow morbido sopra il gradiente */
.user-landing-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.18), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(255,255,255,0.08), transparent 55%);
    pointer-events: none;
}

/* Testo per varianti DARK: niente nero, ma leggibilità alta */
.user-landing-hero[class*="-dark"] {
    color: #f9fafb;
}
.user-landing-hero[class*="-dark"] .text-muted {
    color: rgba(249,250,251,0.80) !important;
}
.user-landing-hero[class*="-dark"] .badge.bg-light,
.user-landing-hero[class*="-dark"] .badge.bg-light.text-muted.border {
    background-color: rgba(15,23,42,0.4) !important;
    color: #e5e7eb !important;
    border-color: rgba(15,23,42,0.55) !important;
}

/* Varianti LIGHT: testo scuro */
.user-landing-hero[class*="-light"] {
    color: #0f172a;
}
.user-landing-hero[class*="-light"] .text-muted {
    color: #6b7280 !important;
}

/* Avatar bordato col colore tema */
.user-avatar-themable {
    border-width: 3px;
    border-style: solid;
    box-shadow: 0 18px 40px rgba(15,23,42,0.25);
}

/* Ogni tema imposta gradiente + colore bordo avatar */
/* 01 – Octo Purple */
.user-landing-hero.user-theme-octo_purple-light {
    background: linear-gradient(135deg, #ede9fe, #d8b4fe);
}
.user-landing-hero.user-theme-octo_purple-dark {
    background: linear-gradient(135deg, #4c1d95, #1d4ed8);
}
.user-avatar-themable.user-theme-octo_purple-light,
.user-avatar-themable.user-theme-octo_purple-dark {
    border-color: #7c3aed;
}

/* 02 – Emerald */
.user-landing-hero.user-theme-emerald-light {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.user-landing-hero.user-theme-emerald-dark {
    background: linear-gradient(135deg, #166534, #047857);
}
.user-avatar-themable.user-theme-emerald-light,
.user-avatar-themable.user-theme-emerald-dark {
    border-color: #16a34a;
}

/* 03 – Sunset */
.user-landing-hero.user-theme-sunset-light {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.user-landing-hero.user-theme-sunset-dark {
    background: linear-gradient(135deg, #c2410c, #ea580c);
}
.user-avatar-themable.user-theme-sunset-light,
.user-avatar-themable.user-theme-sunset-dark {
    border-color: #f97316;
}

/* 04 – Ocean */
.user-landing-hero.user-theme-ocean-light {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}
.user-landing-hero.user-theme-ocean-dark {
    background: linear-gradient(135deg, #0284c7, #0f766e);
}
.user-avatar-themable.user-theme-ocean-light,
.user-avatar-themable.user-theme-ocean-dark {
    border-color: #0ea5e9;
}

/* 05 – Flamingo */
.user-landing-hero.user-theme-flamingo-light {
    background: linear-gradient(135deg, #fdf2f8, #f9a8d4);
}
.user-landing-hero.user-theme-flamingo-dark {
    background: linear-gradient(135deg, #be185d, #db2777);
}
.user-avatar-themable.user-theme-flamingo-light,
.user-avatar-themable.user-theme-flamingo-dark {
    border-color: #ec4899;
}

/* 06 – Sky */
.user-landing-hero.user-theme-sky-light {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.user-landing-hero.user-theme-sky-dark {
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}
.user-avatar-themable.user-theme-sky-light,
.user-avatar-themable.user-theme-sky-dark {
    border-color: #3b82f6;
}

/* 07 – Lime */
.user-landing-hero.user-theme-lime-light {
    background: linear-gradient(135deg, #ecfccb, #bef264);
}
.user-landing-hero.user-theme-lime-dark {
    background: linear-gradient(135deg, #4d7c0f, #15803d);
}
.user-avatar-themable.user-theme-lime-light,
.user-avatar-themable.user-theme-lime-dark {
    border-color: #84cc16;
}

/* 08 – Ruby */
.user-landing-hero.user-theme-ruby-light {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}
.user-landing-hero.user-theme-ruby-dark {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}
.user-avatar-themable.user-theme-ruby-light,
.user-avatar-themable.user-theme-ruby-dark {
    border-color: #ef4444;
}

/* 09 – Coral */
.user-landing-hero.user-theme-coral-light {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}
.user-landing-hero.user-theme-coral-dark {
    background: linear-gradient(135deg, #be123c, #f97373);
}
.user-avatar-themable.user-theme-coral-light,
.user-avatar-themable.user-theme-coral-dark {
    border-color: #fb7185;
}

/* 10 – Amber */
.user-landing-hero.user-theme-amber-light {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
}
.user-landing-hero.user-theme-amber-dark {
    background: linear-gradient(135deg, #ca8a04, #d97706);
}
.user-avatar-themable.user-theme-amber-light,
.user-avatar-themable.user-theme-amber-dark {
    border-color: #facc15;
}

/* 11 – Mint */
.user-landing-hero.user-theme-mint-light {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.user-landing-hero.user-theme-mint-dark {
    background: linear-gradient(135deg, #15803d, #047857);
}
.user-avatar-themable.user-theme-mint-light,
.user-avatar-themable.user-theme-mint-dark {
    border-color: #22c55e;
}

/* 12 – Indigo */
.user-landing-hero.user-theme-indigo-light {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.user-landing-hero.user-theme-indigo-dark {
    background: linear-gradient(135deg, #3730a3, #4f46e5);
}
.user-avatar-themable.user-theme-indigo-light,
.user-avatar-themable.user-theme-indigo-dark {
    border-color: #6366f1;
}

/* 13 – Violet */
.user-landing-hero.user-theme-violet-light {
    background: linear-gradient(135deg, #f5f3ff, #e9d5ff);
}
.user-landing-hero.user-theme-violet-dark {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
}
.user-avatar-themable.user-theme-violet-light,
.user-avatar-themable.user-theme-violet-dark {
    border-color: #a855f7;
}

/* 14 – Lagoon */
.user-landing-hero.user-theme-lagoon-light {
    background: linear-gradient(135deg, #ccfbf1, #a5f3fc);
}
.user-landing-hero.user-theme-lagoon-dark {
    background: linear-gradient(135deg, #0f766e, #0e7490);
}
.user-avatar-themable.user-theme-lagoon-light,
.user-avatar-themable.user-theme-lagoon-dark {
    border-color: #14b8a6;
}

/* 15 – Forest */
.user-landing-hero.user-theme-forest-light {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.user-landing-hero.user-theme-forest-dark {
    background: linear-gradient(135deg, #14532d, #166534);
}
.user-avatar-themable.user-theme-forest-light,
.user-avatar-themable.user-theme-forest-dark {
    border-color: #15803d;
}

/* 16 – Copper */
.user-landing-hero.user-theme-copper-light {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.user-landing-hero.user-theme-copper-dark {
    background: linear-gradient(135deg, #9a3412, #b45309);
}
.user-avatar-themable.user-theme-copper-light,
.user-avatar-themable.user-theme-copper-dark {
    border-color: #ea580c;
}

/* 17 – Steel */
.user-landing-hero.user-theme-steel-light {
    background: linear-gradient(135deg, #dbeafe, #e5e7eb);
}
.user-landing-hero.user-theme-steel-dark {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}
.user-avatar-themable.user-theme-steel-light,
.user-avatar-themable.user-theme-steel-dark {
    border-color: #2563eb;
}

/* 18 – Bubblegum */
.user-landing-hero.user-theme-bubblegum-light {
    background: linear-gradient(135deg, #fdf2f8, #e0f2fe);
}
.user-landing-hero.user-theme-bubblegum-dark {
    background: linear-gradient(135deg, #db2777, #6366f1);
}
.user-avatar-themable.user-theme-bubblegum-light,
.user-avatar-themable.user-theme-bubblegum-dark {
    border-color: #f472b6;
}

/* 19 – Neon */
.user-landing-hero.user-theme-neon-light {
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}
.user-landing-hero.user-theme-neon-dark {
    background: linear-gradient(135deg, #0891b2, #0f766e);
}
.user-avatar-themable.user-theme-neon-light,
.user-avatar-themable.user-theme-neon-dark {
    border-color: #06b6d4;
}

/* 20 – Midnight Plum */
.user-landing-hero.user-theme-midnight-light {
    background: linear-gradient(135deg, #ede9fe, #fee2ff);
}
.user-landing-hero.user-theme-midnight-dark {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
}
.user-avatar-themable.user-theme-midnight-light,
.user-avatar-themable.user-theme-midnight-dark {
    border-color: #7e22ce;
}
