/* ============================================================
   SUGARPOST — Stili personalizzati
   Tailwind CSS gestisce il resto via CDN
   ============================================================ */

/* Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-brand:    #FCCC04;
    --color-accent:   #FF6B9D;
    --color-trust:    #1565C0;
    --color-bg:       #FFFFFF;
    --color-card-bg:  #F9FAFB;
    --color-text:     #1A1A1A;
}

* { font-family: 'Inter', sans-serif; }

/* ── Post Premium — bordo dorato animato ── */
.post-premium {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #FFD700, #FFA000, #FFD700) border-box;
    animation: borderGold 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes borderGold {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Stories ring — bordo colorato se ha story attiva ── */
.story-ring {
    background: linear-gradient(135deg, #FF6B9D, #FCCC04);
    padding: 2px;
    border-radius: 50%;
    display: inline-block;
}

.story-ring img {
    border: 2px solid white;
    border-radius: 50%;
    display: block;
}

/* ── Avatar donna oscurato (pre-sblocco) ── */
.avatar-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* ── Timer countdown ── */
.countdown-badge {
    background: #FFF3E0;
    color: #E65100;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ── Badge PREMIUM ── */
.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Scroll infinito — fade in card ── */
.post-card {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Bottom navigation bar ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ── Pill tag tipo relazione ── */
.pill-single     { background: #FFF9E6; color: #B38900; }
.pill-continuity { background: #FFF0F5; color: #FF6B9D; }
