/* =========================================================================
   Patentiamoci.it — Inner Pages Design System
   Modern Gen Z, Glassmorphism, Neon Accents
   ========================================================================= */

/* ── Shared Page Hero ─────────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: 2rem 1.2rem 1.6rem;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gradient, linear-gradient(135deg, rgba(0,242,254,.12) 0%, transparent 70%));
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hero-color, #00F2FE), transparent);
    opacity: 0.4;
}
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hero-color, #00F2FE);
    background: rgba(0,242,254,.08);
    border: 1px solid rgba(0,242,254,.2);
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}
.page-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin-bottom: .5rem;
}
.page-hero-sub {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ── Floating Orbs (background decoration) ──────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: .18;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 180px; height: 180px; top: -40px; right: -30px; background: var(--hero-color, #00F2FE); animation-delay: 0s; }
.orb-2 { width: 120px; height: 120px; bottom: 20px; left: -20px; background: var(--hero-color2, #4FACFE); animation-delay: -3s; }
@keyframes orbFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.05); }
}

/* ── Neon Card ───────────────────────────────────────────────────────── */
.neon-card {
    background: rgba(15,23,42,.7);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    overflow: hidden;
    position: relative;
}
.neon-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.15);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.neon-card.accent-glow:hover {
    border-color: var(--hero-color, #00F2FE);
    box-shadow: 0 0 24px rgba(0,242,254,.12), 0 16px 40px rgba(0,0,0,.4);
}

/* ── Big Action Card ─────────────────────────────────────────────────── */
.action-hero-card {
    position: relative;
    border-radius: 24px;
    padding: 1.8rem 1.4rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(255,255,255,.06);
}
.action-hero-card:active { transform: scale(.97); }
.action-hero-card .bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 6rem;
    opacity: .12;
    pointer-events: none;
    line-height: 1;
}
.action-hero-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .3rem;
}
.action-hero-card p {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    line-height: 1.4;
}

/* ── Stats Row ───────────────────────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .8rem 1.2rem;
}
.stats-row::-webkit-scrollbar { display: none; }
.stat-pill {
    flex-shrink: 0;
    background: rgba(30,41,59,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: .7rem 1rem;
    text-align: center;
    min-width: 72px;
}
.stat-pill-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--hero-color, #00F2FE);
    display: block;
    line-height: 1;
}
.stat-pill-lbl {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #64748B;
    display: block;
    margin-top: .2rem;
}

/* ── Section Label ───────────────────────────────────────────────────── */
.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    padding: .6rem 1.2rem .4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-label-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #94A3B8;
}

/* ── Page Content Padding ─────────────────────────────────────────────── */
.page-content {
    padding: 0 1rem 120px;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Back Nav Button ─────────────────────────────────────────────────── */
.page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    padding: .5rem 0;
    transition: color .2s;
    cursor: pointer;
    background: none;
    border: none;
}
.page-back-btn:hover { color: #fff; }

/* ── Tag/Badge Pills ─────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; padding: .25rem .65rem; border-radius: 8px; }
.tag-pro { background: rgba(255,215,0,.1); color: #FFD700; border: 1px solid rgba(255,215,0,.3); }
.tag-new { background: rgba(255,20,147,.12); color: #FF1493; border: 1px solid rgba(255,20,147,.25); }
.tag-hot { background: rgba(255,69,0,.12); color: #FF4500; border: 1px solid rgba(255,69,0,.25); }
.tag-free { background: rgba(16,185,129,.12); color: #10B981; border: 1px solid rgba(16,185,129,.25); }

/* ── Gradient Text Headings ──────────────────────────────────────────── */
.gtext-cyan   { background: linear-gradient(135deg,#00F2FE,#4FACFE); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.gtext-pink   { background: linear-gradient(135deg,#FF1493,#FF006E); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.gtext-gold   { background: linear-gradient(135deg,#FFD700,#F59E0B); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.gtext-purple { background: linear-gradient(135deg,#8B5CF6,#A855F7); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.gtext-green  { background: linear-gradient(135deg,#10B981,#34D399); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.gtext-red    { background: linear-gradient(135deg,#EF4444,#F43F5E); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* ── Glassmorphism Bottom Sheet ──────────────────────────────────────── */
.glass-bottom-sheet {
    background: linear-gradient(to bottom, rgba(30,41,59,.98), rgba(15,23,42,1));
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 2.2rem 1.6rem 2.4rem;
    animation: slideUp .28s cubic-bezier(.25,1,.5,1);
}

/* ── Animated Gradient Border ────────────────────────────────────────── */
.gradient-border {
    position: relative;
    border-radius: 20px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--hero-color, #00F2FE), transparent 60%);
    z-index: -1;
    opacity: .5;
}

/* ── Input Field ─────────────────────────────────────────────────────── */
.input-modern {
    width: 100%;
    background: rgba(15,23,42,.8);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: 14px;
    padding: .9rem 1.1rem;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input-modern:focus {
    border-color: var(--hero-color, #00F2FE);
    box-shadow: 0 0 0 3px rgba(0,242,254,.1);
}

/* ── Primary CTA Button ──────────────────────────────────────────────── */
.btn-neon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
    background: linear-gradient(135deg, var(--hero-color, #00F2FE), var(--hero-color2, #4FACFE));
    color: #0F172A;
    box-shadow: 0 4px 20px rgba(0,242,254,.3);
}
.btn-neon:active { transform: scale(.97); filter: brightness(.9); }

/* ── Empty State ─────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .6; }
.empty-state-title { font-family: 'Outfit',sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }

/* ── Entry animation ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .4s ease both; }
.fade-in-up:nth-child(1) { animation-delay: .04s; }
.fade-in-up:nth-child(2) { animation-delay: .1s; }
.fade-in-up:nth-child(3) { animation-delay: .16s; }
.fade-in-up:nth-child(4) { animation-delay: .22s; }
.fade-in-up:nth-child(5) { animation-delay: .28s; }
.fade-in-up:nth-child(6) { animation-delay: .34s; }

/* ── Shimmer Loading ─────────────────────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

/* ── Divider ─────────────────────────────────────────────────────────── */
.divider { height: 1px; background: rgba(255,255,255,.05); margin: 1rem 0; }

/* ── Scrollable content fix ──────────────────────────────────────────── */
body { overflow-y: auto; overflow-x: hidden; }

/* ── Page-specific accent: quiz ──────────────────────────────────────── */
.page-quiz { --hero-color: #8B5CF6; --hero-color2: #A855F7; --hero-gradient: linear-gradient(135deg, rgba(139,92,246,.15) 0%, transparent 70%); }

/* ── Page-specific accent: arcade ────────────────────────────────────── */
.page-arcade { --hero-color: #FF1493; --hero-color2: #FF006E; --hero-gradient: linear-gradient(135deg, rgba(255,20,147,.15) 0%, transparent 70%); }

/* ── Page-specific accent: classifica ────────────────────────────────── */
.page-rank { --hero-color: #FFD700; --hero-color2: #F59E0B; --hero-gradient: linear-gradient(135deg, rgba(255,215,0,.12) 0%, transparent 70%); }

/* ── Page-specific accent: amici ─────────────────────────────────────── */
.page-amici { --hero-color: #00F2FE; --hero-color2: #4FACFE; --hero-gradient: linear-gradient(135deg, rgba(0,242,254,.12) 0%, transparent 70%); }

/* ── Page-specific accent: benzinai ─────────────────────────────────── */
.page-benzinai { --hero-color: #10B981; --hero-color2: #34D399; --hero-gradient: linear-gradient(135deg, rgba(16,185,129,.12) 0%, transparent 70%); }

/* ── Page-specific accent: faq ───────────────────────────────────────── */
.page-faq { --hero-color: #F97316; --hero-color2: #FB923C; --hero-gradient: linear-gradient(135deg, rgba(249,115,22,.12) 0%, transparent 70%); }

/* ── Page-specific accent: news ──────────────────────────────────────── */
.page-news { --hero-color: #EF4444; --hero-color2: #F43F5E; --hero-gradient: linear-gradient(135deg, rgba(239,68,68,.12) 0%, transparent 70%); }

/* ── Page-specific accent: scadenziario ──────────────────────────────── */
.page-garage { --hero-color: #3B82F6; --hero-color2: #60A5FA; --hero-gradient: linear-gradient(135deg, rgba(59,130,246,.12) 0%, transparent 70%); }

/* ── Tab Button (pill style) ─────────────────────────────────────────── */
.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.tab-btn.active {
    background: rgba(0,242,254,.12);
    color: #00F2FE;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── SlideUp animation (modals / bottom sheets) ─────────────────────── */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .6; }
}

/* ── Gamification (Beninai) ─────────────────────────────────────────── */
@keyframes neonPulse {
    0% { box-shadow: 0 0 5px rgba(255, 8, 104, 0.4), 0 0 10px rgba(255, 8, 104, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 15px rgba(255, 8, 104, 0.8), 0 0 30px rgba(255, 8, 104, 0.4); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(255, 8, 104, 0.4), 0 0 10px rgba(255, 8, 104, 0.2); transform: scale(1); }
}
.btn-neon-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 8, 104, 0.5);
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, #FF0844 0%, #FFB199 100%);
    color: #fff;
    animation: neonPulse 2s infinite ease-in-out;
    transition: transform 0.2s;
}
.btn-neon-pulse:active { transform: scale(0.95); }

@keyframes mapMarkerPulse {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 8, 104, 0.7); }
    70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 10px rgba(255, 8, 104, 0); }
    100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 8, 104, 0); }
}
.outdated-pulse {
    background: #FF0844 !important;
    border-color: #fff !important;
    animation: mapMarkerPulse 1.5s infinite;
    z-index: 1000 !important;
}
