/* =========================================================
   Botões Inteligentes PRO — front-end
   Banner moderno + botão animado + card clássico (compat)
========================================================= */

:root {
    --bipro-card-bg: #0b0b12;
    --bipro-btn-bg: linear-gradient(135deg, #3b82f6, #6366f1);
    --bipro-btn-text: #ffffff;
    --bipro-accent: linear-gradient(90deg, #ff3b67, #ff8a5b);
    --bipro-eyebrow: #5eead4;
    --bipro-radius: 20px;
}

/* =====================  BANNER  ===================== */
.bipro-banner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 720px;
    margin: 24px auto;
    border-radius: var(--bipro-radius);
    overflow: hidden;
    background: var(--bipro-card-bg);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    animation: bipro-rise .5s ease both;
}

@keyframes bipro-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Marca do site (logo) no canto do banner */
.bipro-banner .bipro-brand {
    position: absolute !important;
    top: 14px;
    right: 16px;
    z-index: 5;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    max-width: 110px;
    text-decoration: none;
    opacity: .9;
    transition: opacity .2s ease, transform .2s ease;
}
.bipro-banner .bipro-brand:hover { opacity: 1; transform: translateY(-1px); }
.bipro-banner .bipro-brand__logo {
    max-height: 22px !important;
    max-width: 95px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}
.bipro-banner .bipro-brand__name { font-size: 11px; font-weight: 700; color: #e8e8f0; letter-spacing: .2px; }

/* Mídia / ícone com aura */
.bipro-banner__media {
    position: relative;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 120% at 50% 40%, #4a1d8a 0%, #2a1056 45%, #0d0820 100%);
    overflow: hidden;
}

.bipro-banner__aura {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(168, 120, 255, .35);
    box-shadow: 0 0 0 28px rgba(168, 120, 255, .06), 0 0 60px 12px rgba(150, 90, 255, .35) inset;
    animation: bipro-pulse 3.2s ease-in-out infinite;
}

@keyframes bipro-pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50%      { transform: scale(1.08); opacity: 1; }
}

.bipro-banner__icon {
    position: relative;
    width: 118px;
    height: 118px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 10px 32px rgba(120, 60, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.bipro-banner__icon--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #7b3ff2, #3a1a7a);
    font-size: 52px;
    color: #fdf4ff;
}

/* Conteúdo */
.bipro-banner__content {
    flex: 1;
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    min-width: 0;
}

.bipro-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--bipro-eyebrow);
    background: color-mix(in srgb, var(--bipro-eyebrow) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--bipro-eyebrow) 38%, transparent);
}

.bipro-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bipro-eyebrow);
    box-shadow: 0 0 8px var(--bipro-eyebrow);
    animation: bipro-blink 1.4s ease-in-out infinite;
}

@keyframes bipro-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.bipro-banner__title {
    position: relative;
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--bipro-title-color, #fff);
    padding-bottom: 12px;
}

.bipro-banner__underline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--bipro-accent);
    animation: bipro-grow .6s .2s ease both;
}

@keyframes bipro-grow { from { width: 0; opacity: 0; } to { width: 62px; opacity: 1; } }

.bipro-banner__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bipro-desc-color, #c6c6d4);
}

/* Pills */
.bipro-banner__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.bipro-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #e8e8f0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.bipro-pill--star { color: #ffd66b; }
.bipro-pill--dl   { color: #9fb4ff; }
.bipro-pill--free {
    color: #86efac;
    background: rgba(74, 222, 128, .12);
    border-color: rgba(74, 222, 128, .3);
}

/* Ações */
.bipro-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-top: 8px;
}

.bipro-banner__notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8a99;
}

/* =====================  BOTÃO ANIMADO  ===================== */
.bipro-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 12px;
    background: var(--bipro-btn-bg);
    color: var(--bipro-btn-text) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(79, 108, 255, .42);
    transition: transform .2s ease, box-shadow .3s ease;
    animation: bipro-btn-pulse 1.8s ease-in-out infinite;
    will-change: transform, box-shadow;
}

/* Pausa o pulso ao passar o mouse e dá um destaque maior */
.bipro-btn:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 34px rgba(79, 108, 255, .6);
}

.bipro-btn:active { transform: translateY(0) scale(.97); }

.bipro-btn__ic { flex: 0 0 auto; }
.bipro-btn__label { position: relative; z-index: 2; }

/* Brilho que percorre o botão */
.bipro-btn__shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: bipro-shine 2.8s ease-in-out infinite;
}

@keyframes bipro-shine {
    0%   { left: -120%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

@keyframes bipro-btn-pulse {
    0%, 100% { transform: translateY(0) scale(1);      box-shadow: 0 8px 22px rgba(79, 108, 255, .42); }
    50%      { transform: translateY(-2px) scale(1.035); box-shadow: 0 15px 32px rgba(79, 108, 255, .62); }
}

.bipro-btn--inline { animation: none; }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    .bipro-banner, .bipro-btn, .bipro-btn__shine, .bipro-banner__aura, .bipro-dot, .bipro-banner__underline {
        animation: none !important;
    }
}

/* =====================  RESPONSIVO  ===================== */
@media (max-width: 600px) {
    .bipro-banner { flex-direction: column; }
    .bipro-banner__media { flex: 0 0 auto; padding: 28px 0; }
    .bipro-banner__content { padding: 22px; text-align: left; }
    .bipro-banner__actions { gap: 10px; }
}

/* O banner é sempre escuro por padrão: textos e pills ficam sempre claros/legíveis.
   (Para um card claro, basta escolher a cor de fundo e as cores de texto no bloco.) */

/* =====================  EDITOR (Gutenberg)  ===================== */
.bipro-empty {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 24px;
    border: 1px dashed #c3c4c7;
    border-radius: 14px;
    background: #f6f7f7;
    color: #50575e;
    text-align: center;
}
.bipro-empty strong { font-size: 16px; color: #1d2327; }

/* Campos editáveis no editor mostram que dá pra clicar */
.bipro-editor .bipro-banner__eyebrow,
.bipro-editor .bipro-banner__title,
.bipro-editor .bipro-banner__desc,
.bipro-editor .bipro-btn__label { cursor: text; }
.bipro-editor .bipro-banner__title [contenteditable],
.bipro-editor .bipro-banner__desc[contenteditable],
.bipro-editor .bipro-banner__eyebrow [contenteditable],
.bipro-editor .bipro-btn__label[contenteditable] { outline: none; min-width: 8px; }
.bipro-editor .bipro-btn { cursor: text; }
.bipro-editor .bipro-banner__desc:empty,
.bipro-editor .bipro-banner__desc { min-height: 1.2em; }
.bipro-editor [data-rich-text-placeholder]::after { opacity: .55; }

/* Avisos */
.bipro-warning {
    text-align: center;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 8px;
    max-width: 720px;
    margin: 16px auto;
}
.bipro-unavailable {
    text-align: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 14px;
    border-radius: 10px;
    max-width: 720px;
    margin: 16px auto;
}

/* =========================================================
   CARD CLÁSSICO + BOTÕES DE LOJA (classes do plugin antigo)
========================================================= */
.app-buttons-container { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.provider_stats_wrapper { display: flex; flex-direction: column; align-items: center; padding: 20px; flex: 1 1 300px; max-width: 500px; }
.provider_stats { width: 100%; max-width: 500px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,.05); background: #fff; padding: 20px; }
.provider_logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.provider_logo img { width: 60px; height: 60px; border-radius: 12px; }
.provider_logo a { font-weight: 700; font-size: 22px; color: #1a202c; text-decoration: none; }
.provider_logo a:hover { color: #3182ce; }
.provider_overall { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 18px; background: #f5f5f5; padding: 15px 0; border-radius: 8px; margin-bottom: 15px; }
.star-rating { display: flex; align-items: center; justify-content: center; }
.star-rating .star { font-size: 16px; color: gold; margin-right: 2px; position: relative; }
.star-rating .star.empty { color: #ccc; }
.star-rating .star.half::before { content: '★'; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: gold; }
.download-count { font-size: 16px; color: #4a5568; margin-top: 5px; text-align: center; }
.provider_stats_row { width: 100%; display: flex; justify-content: space-between; margin: 10px 0; font-size: 16px; color: #4a5568; }
.clear { clear: both; }
.provider_visit { border-top: 1px solid #e5e5e5; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; padding: 15px 0; margin-top: 10px; }
a.visit { display: flex; align-items: center; padding: 12px 20px; background: var(--bipro-btn-bg); color: #fff !important; border-radius: 10px; font-size: 17px; font-weight: 600; margin: 8px; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .3s ease; }
a.visit:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.18); }
.platform-icon { width: 24px; height: 24px; margin-right: 10px; }

.loja-botoes-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0; }
.loja-botoes-wrap a { display: block; }
.loja-botoes-wrap img { max-width: 180px; height: auto; transition: transform .2s ease; }
.loja-botoes-wrap img:hover { transform: scale(1.05); }
@media (max-width: 360px) { .loja-botoes-wrap img { max-width: 140px; } }
