/* =========================================================
   33-final-v14.css — Ajustes v14
   1) Rolês (vídeo) fora do feed já garantido no SQL
   2) Mood-badge no feed: visual melhorado (borda gradiente,
      glow suave, emoji nítido)
   3) Fundo desfocado atrás do vídeo em /roles.php
   4) Redesign da página /premium.php
   ========================================================= */

/* -------- 2. Mood-badge do feed -------- */
.post-avatar-wrap { position: relative; }
.post-avatar-wrap .mood-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    padding: 0 !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, #fef3c7 45%, #fbbf24 100%) !important;
    border: 2px solid #0b1220 !important;
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, .55),
        0 2px 8px rgba(0,0,0,.5),
        0 0 12px rgba(251, 191, 36, .35) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    transition: transform .18s ease;
}
.post-avatar-wrap .mood-badge:hover { transform: scale(1.08); }
.post-avatar-wrap .mood-badge .mood-emoji-img,
.post-avatar-wrap .mood-badge img {
    width: 16px !important;
    height: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
}
/* Fallback textual (quando twemoji não carrega) */
.mood-emoji-text {
    font-size: 15px;
    line-height: 1;
    font-family:
        "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",
        "Twemoji Mozilla","EmojiOne Color","Android Emoji",sans-serif;
}

/* -------- 3. Fundo desfocado atrás dos rolês (desktop) -------- */
.role-slide {
    position: relative;
    overflow: hidden;
    background: #000;
}
.role-slide .role-blur-bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    pointer-events: none;
    filter: blur(38px) saturate(1.25) brightness(.55);
    transform: scale(1.15);
    opacity: .85;
}
.role-slide .role-blur-bg video,
.role-slide .role-blur-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.role-slide > video {
    position: relative;
    z-index: 1;
    background: transparent;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
.role-slide .role-overlay,
.role-slide .role-actions,
.role-slide .role-mute-icon,

/* No mobile o vídeo ocupa a tela cheia — mantém preenchido */
@media (max-width: 720px) {
    .role-slide > video { object-fit: cover; width: 100%; height: 100%; }
    .role-slide .role-blur-bg { display: none; }
}

/* -------- 4. Redesign /premium.php -------- */
.premium-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.premium-hero {
    text-align: center;
    padding: 28px 16px 20px;
    margin-bottom: 32px;
}
.premium-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #fef3c7, #fbbf24 55%, #ec4899 120%);
    box-shadow:
        0 12px 36px rgba(236, 72, 153, .38),
        0 0 0 1px rgba(255,255,255,.12) inset;
    margin-bottom: 18px;
}
.premium-hero h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 0 0 10px;
    background: linear-gradient(90deg, #fbbf24 0%, #f472b6 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.premium-hero .premium-sub {
    color: rgba(226,232,240,.75);
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.55;
}
.premium-status-card.active {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(236,72,153,.16));
    border: 1px solid rgba(251,191,36,.35);
    font-size: 14px;
}

.premium-plans-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 780px) {
    .premium-plans-2 { grid-template-columns: 1fr; }
}
.premium-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30,41,59,.85), rgba(15,23,42,.95));
    border: 1px solid rgba(148,163,184,.15);
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.premium-plan:hover {
    transform: translateY(-4px);
    border-color: rgba(148,163,184,.35);
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.premium-plan.plan-basic::before,
.premium-plan.plan-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 40% at 50% 0%, rgba(59,130,246,.25), transparent 70%);
    pointer-events: none;
}
.premium-plan.plan-premium::before {
    background: radial-gradient(60% 40% at 50% 0%, rgba(236,72,153,.32), transparent 70%);
}
.premium-plan.plan-premium {
    border-color: rgba(236,72,153,.35);
    box-shadow: 0 14px 40px rgba(236,72,153,.15);
}
.premium-plan > * { position: relative; z-index: 1; }

.plan-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #0b1220;
    margin-bottom: 14px;
}
.premium-plan.plan-premium .plan-badge {
    background: linear-gradient(135deg, #fbbf24, #ec4899);
    color: #1a0b2e;
}
.premium-plan h3 {
    font-size: 24px;
    margin: 0 0 14px;
    color: #f1f5f9;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.plan-price {
    font-size: 44px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.plan-price small {
    font-size: 16px;
    font-weight: 600;
    color: rgba(226,232,240,.7);
}
.plan-per {
    display: block;
    color: rgba(148,163,184,.85);
    font-size: 13px;
    margin: 6px 0 22px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,.55);
    border: 1px solid rgba(148,163,184,.08);
    font-size: 14px;
    line-height: 1.45;
    color: #e2e8f0;
}
.plan-features li b { color: #fff; }
.plan-features li.pf-off {
    color: rgba(148,163,184,.55);
    text-decoration: line-through;
    text-decoration-color: rgba(148,163,184,.35);
}
.pf-ic {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    margin-top: 1px;
}
.pf-check {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 10px rgba(34,197,94,.35);
}
.pf-check::before { content: "✓"; font-weight: 700; }
.pf-cross {
    background: rgba(148,163,184,.18);
    color: rgba(148,163,184,.7);
}
.pf-cross::before { content: "×"; font-weight: 700; font-size: 14px; }
/* Esconder marcador de check nativo se algum existir */
.plan-features li::before,
.plan-features li::marker { content: none; }

.premium-plan .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(59,130,246,.35);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.premium-plan.plan-premium .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #ec4899 60%, #a855f7);
    box-shadow: 0 10px 28px rgba(236,72,153,.45);
    color: #1a0b2e;
}
.premium-plan .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.premium-note {
    margin-top: 26px;
    color: rgba(148,163,184,.7);
    font-size: 12.5px;
}

/* -------- 5. Rolês em desktop: preencher a lateral com o desfoque -------- */
/* No PC, style.css força max-width:460px na .roles-container e .role-slide,
   deixando duas faixas pretas enormes nas laterais. Aqui, no desktop, o
   container ocupa a tela cheia; o vídeo continua centralizado com 460px,
   e o .role-blur-bg preenche todo o slide com o vídeo desfocado ao fundo. */
@media (min-width: 721px) {
    .roles-container {
        max-width: none !important;
        width: 100vw;
        margin: 0;
    }
    .role-slide {
        max-width: none !important;
        width: 100vw;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }
    .role-slide > video {
        max-width: 460px;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
    /* Faz o desfoque cobrir a tela inteira (não só a coluna central). */
    .role-slide .role-blur-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }
    .role-slide .role-blur-bg::after {
        content: "";
        position: absolute; inset: 0;
        background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 100%);
        pointer-events: none;
    }
    /* Ações e overlays continuam alinhados ao vídeo central. */
    .role-slide .role-overlay,
    .role-slide .role-actions {
        max-width: 460px;
        left: 50%;
        transform: translateX(-50%);
    }
}
