/* ============================================================
   DietPrime — Blog (listagem, artigo e chamada do NutriFinder)
   ============================================================ */
.bv {
    --green: #10b981; --green-dark: #059669; --green-deeper: #047857;
    --green-light: #ecfdf5; --green-muted: #d1fae5;
    --text: #0f172a; --text-muted: #475569; --border: #e2e8f0; --bg-subtle: #f8fafc;
}
.bv .pnav .container, .bv--list .container { max-width: 1280px; }
.bv--list { background: #f8fafc; }

.bv-topbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem .6rem; padding: .5rem 16px; background: linear-gradient(90deg, #047857, #059669); color: #fff; font-size: .84rem; font-weight: 500; text-align: center; }
.bv-topbar__tag { padding: .1rem .55rem; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bv-topbar a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Topo */
.bv-hero { padding: 4.5rem 0; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 80% 20%, rgba(16,185,129,.08), transparent 60%), radial-gradient(circle at 10% 80%, rgba(245,158,11,.05), transparent 50%); }
.bv-hero__grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 3rem; align-items: center; }
.bv-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(209,250,229,.7); color: #047857; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bv-hero h1 { margin: 1.4rem 0; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: #0f172a; }
.bv-gradient-text { background: linear-gradient(135deg, #059669, #10b981 50%, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bv-hero__lead { max-width: 640px; font-size: 1.1rem; line-height: 1.65; color: #475569; }
.bv-hero__label { display: block; margin: 1.6rem 0 .75rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.bv-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bv-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; color: #334155; transition: border-color .15s, background .15s; }
.bv-chip svg { color: #059669; }
.bv-chip:hover { border-color: #10b981; background: #ecfdf5; }
.bv-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .78rem; font-weight: 500; color: #64748b; }
.bv-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.bv-proof svg { color: #10b981; }

/* Simulador */
.bv-calc { position: relative; padding: 2rem; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.06); scroll-margin-top: 90px; }
.bv-calc__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.bv-calc__head span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #059669; }
.bv-calc__head h2 { font-size: 1.12rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.bv-calc__head i { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #ecfdf5; color: #059669; }
.bv-calc form { display: flex; flex-direction: column; gap: .85rem; }
.bv-calc label, .bv-dialog label { display: block; font-size: .75rem; font-weight: 600; color: #334155; }
.bv-calc input, .bv-calc select, .bv-dialog input, .bv-dialog select { width: 100%; margin-top: .25rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; font: inherit; font-size: .86rem; font-weight: 500; color: #0f172a; }
.bv-calc input:focus, .bv-calc select:focus, .bv-dialog input:focus, .bv-dialog select:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.bv-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.bv-calc button { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem; border: 0; border-radius: 12px; background: #059669; color: #fff; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.bv-calc button:hover { background: #047857; }
.bv-calc__result { margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 16px; background: #f8fafc; }
.bv-calc__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
.bv-calc__kcal { font-size: .78rem; font-weight: 600; color: #64748b; }
.bv-calc__kcal strong { font-size: 1.55rem; font-weight: 800; color: #059669; }
.bv-calc__macros { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); text-align: center; }
.bv-calc__macros span { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; color: #94a3b8; }
.bv-calc__macros strong { font-size: .82rem; color: #1e293b; }
.bv-calc__result p { margin-top: .7rem; font-size: .74rem; line-height: 1.5; color: #64748b; }
.bv-calc__result a { color: #047857; font-weight: 700; text-decoration: underline; }

/* Artigo em destaque */
.bv-featured-wrap { padding: 3rem 0; background: #fff; border-bottom: 1px solid var(--border); }
.bv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.bv-section-head h2 { display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #059669; }
.bv-section-head h2 i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.bv-section-head a { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; color: #64748b; }
.bv-section-head a:hover { color: #059669; }
.bv-featured { position: relative; display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); overflow: hidden; border-radius: 24px; background: #0f172a; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.bv-featured__cover { display: flex; align-items: center; justify-content: center; min-height: 420px; background: linear-gradient(135deg, #059669, #064e3b); }
.bv-featured__cover img { width: 100%; height: 100%; object-fit: contain; }
.bv-featured__cover .bv-card__placeholder { color: rgba(255,255,255,.75); background: none; }
.bv-featured__body { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; color: #fff; }
.bv-featured__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.bv-featured__cat { padding: .25rem .75rem; border: 1px solid rgba(16,185,129,.3); border-radius: 999px; background: rgba(16,185,129,.2); color: #34d399; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bv-featured h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.bv-featured h3 a::after { content: ""; position: absolute; inset: 0; }
.bv-featured:hover h3 a { color: #34d399; }
.bv-featured__body p { margin-top: 1rem; font-size: .9rem; line-height: 1.65; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bv-featured__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-top: 1.4rem; border-top: 1px solid #1e293b; font-size: .76rem; color: #94a3b8; }
.bv-featured__author { display: flex; align-items: center; gap: .6rem; }
.bv-featured__author span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #059669; color: #fff; font-weight: 800; }
.bv-featured__author strong { color: #e2e8f0; }
.bv-featured .bv-share { color: #94a3b8; }
.bv-featured .bv-share:hover { color: #fbbf24; }

/* Filtros */
.bv-content { padding: 3.5rem 0; scroll-margin-top: 70px; }
.bv-compact { padding: 2.5rem 0 0; }
.bv-compact a { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #059669; }
.bv-compact h1 { margin-top: .5rem; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #0f172a; overflow-wrap: anywhere; }
.bv-compact small { font-size: .95rem; font-weight: 500; color: #64748b; letter-spacing: 0; }
.bv-compact + .bv-content { padding-top: 1.8rem; }
.bv-filter { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.bv-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.bv-tabs a { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; padding: .5rem 1rem; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: .76rem; font-weight: 700; transition: background .15s; }
.bv-tabs a:hover { background: #e2e8f0; }
.bv-tabs a.active { background: #0f172a; color: #fff; }
.bv-filter__form { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.bv-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.bv-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.bv-search input { width: 100%; padding: .55rem .9rem .55rem 2.2rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: .82rem; font-weight: 500; }
.bv-search input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.bv-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 500; color: #64748b; }
.bv-sort select { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: .76rem; font-weight: 600; color: #334155; }

/* Grade e cards */
.bv-layout { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: 2rem; align-items: start; }
.bv-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.bv-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bv-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.05); transition: box-shadow .3s, transform .3s; }
.bv-card:hover { transform: translateY(-4px); box-shadow: 0 20px 35px -10px rgba(16,185,129,.12); }
.bv-card__cover { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: #ecfdf5; }
.bv-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bv-card:hover .bv-card__cover img { transform: scale(1.05); }
.bv-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #059669; }
.bv-card__cat { position: absolute; top: .75rem; left: .75rem; max-width: calc(100% - 1.5rem); padding: .22rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: .69rem; font-weight: 700; color: #1e293b; }
.bv-card__body { flex: 1; padding: 1.25rem; }
.bv-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; font-size: .69rem; font-weight: 600; color: #059669; }
.bv-card__meta span:not(.bv-card__read) { color: #cbd5e1; }
.bv-card__read { display: inline-flex; align-items: center; gap: .25rem; color: #94a3b8; }
.bv-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.bv-card:hover h3 { color: #059669; }
.bv-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bv-card__body p { margin-top: .5rem; font-size: .78rem; line-height: 1.6; color: #64748b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.25rem; border-top: 1px solid #f1f5f9; background: rgba(248,250,252,.6); font-size: .69rem; }
.bv-card__author { font-weight: 700; color: #334155; }
.bv-card__actions { display: flex; align-items: center; gap: .7rem; color: #94a3b8; }
.bv-card__actions > span { display: inline-flex; align-items: center; gap: .25rem; }
.bv-share { position: relative; z-index: 2; display: inline-flex; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; transition: color .15s; }
.bv-share:hover { color: #059669; }
.bv-more { margin-top: 2.5rem; text-align: center; }
.bv-more a { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 2rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #334155; font-size: .86rem; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: border-color .15s, color .15s; }
.bv-more a:hover { border-color: #10b981; color: #059669; }
.bv-more a.is-loading { opacity: .6; pointer-events: none; }
.bv-empty { padding: 3rem 1rem; border: 1px solid var(--border); border-radius: 24px; background: #fff; text-align: center; color: #cbd5e1; }
.bv-empty svg { display: inline-block; }
.bv-empty h3 { margin-top: .6rem; color: #334155; font-weight: 700; }
.bv-empty p { margin-top: .25rem; font-size: .8rem; color: #64748b; }

/* Lateral */
.bv-side { display: flex; flex-direction: column; gap: 2rem; }
.bv-tools { padding: 1.5rem; border-radius: 24px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); scroll-margin-top: 90px; }
.bv-tools__tag { display: inline-block; margin-bottom: .75rem; padding: .22rem .6rem; border-radius: 999px; background: rgba(16,185,129,.1); color: #34d399; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.bv-tools h3 { margin-bottom: .4rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.bv-tools p { margin-bottom: 1.2rem; font-size: .76rem; line-height: 1.6; color: #cbd5e1; }
.bv-tools button { display: flex; align-items: center; gap: .7rem; width: 100%; margin-top: .7rem; padding: .7rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.05); color: #f1f5f9; font: inherit; font-size: .76rem; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s; }
.bv-tools button:hover { background: rgba(255,255,255,.1); }
.bv-tools button > svg { margin-left: auto; flex: 0 0 auto; color: #94a3b8; }
.bv-tools button i { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 8px; }
.bv-tools .is-green { background: rgba(16,185,129,.2); color: #34d399; }
.bv-tools .is-amber { background: rgba(245,158,11,.2); color: #fbbf24; }
.bv-tools .is-blue { background: rgba(59,130,246,.2); color: #60a5fa; }
.bv-popular { padding: 1.5rem; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bv-popular h3 { padding-bottom: .5rem; border-bottom: 1px solid #f1f5f9; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #0f172a; }
.bv-popular a { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.bv-popular b { font-size: 1.25rem; font-weight: 800; color: #cbd5e1; transition: color .15s; }
.bv-popular a:hover b, .bv-popular a:hover span { color: #059669; }
.bv-popular span { font-size: .76rem; font-weight: 700; line-height: 1.4; color: #1e293b; }
.bv-popular small { display: block; font-size: .64rem; font-weight: 500; color: #94a3b8; }
.bv-promo { padding: 1.5rem; border-radius: 24px; background: linear-gradient(135deg, #059669, #047857); color: #fff; text-align: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.bv-promo i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto .75rem; border-radius: 16px; background: rgba(255,255,255,.2); }
.bv-promo h3 { font-size: 1.12rem; font-weight: 700; }
.bv-promo p { margin: .25rem 0 1rem; font-size: .76rem; line-height: 1.55; color: #d1fae5; }
.bv-promo a { display: block; padding: .65rem; border-radius: 12px; background: #fff; color: #047857; font-size: .76rem; font-weight: 700; }
.bv-promo a:hover { background: #ecfdf5; }

/* Chamada do NutriFinder */

/* Rodapé */
.bv .pfooter { background: #020617; border-top: 1px solid #1e293b; }
.bv .pfooter .container { max-width: 1280px; }
.bv .pfooter-col-title { color: #e2e8f0; }
.bv .pfooter-links a:hover { color: #34d399; }
.bv-social { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.bv-social:hover { color: #34d399; }
.bv-footer-note { font-size: .76rem; line-height: 1.6; color: #64748b; }
.bv-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; color: #64748b; text-align: left; }
.bv-footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.bv-footer-legal a:hover { color: #cbd5e1; }

.bv .article-sidebar { padding-top: 3rem; }

/* Calculadoras e avisos */
.bv-dialog { width: min(420px, calc(100% - 32px)); margin: auto; padding: 1.5rem; border: 0; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); color: #0f172a; }
.bv-dialog::backdrop { background: rgba(15,23,42,.6); }
.bv-dialog form { display: flex; flex-direction: column; gap: .85rem; }
.bv-dialog label[hidden] { display: none; }
.bv-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bv-dialog__head h2 { font-size: 1.1rem; font-weight: 800; }
.bv-dialog__head button { display: flex; padding: .25rem; border: 0; background: none; color: #64748b; cursor: pointer; }
.bv-dialog__submit { padding: .75rem; border: 0; border-radius: 12px; background: #059669; color: #fff; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.bv-dialog__submit:hover { background: #047857; }
.bv-dialog__result { padding: .9rem; border-radius: 14px; background: #ecfdf5; text-align: center; }
.bv-dialog__result strong { display: block; font-size: 1.4rem; font-weight: 800; color: #047857; }
.bv-dialog__result span { font-size: .78rem; color: #475569; }
.bv-dialog__note { font-size: .7rem; line-height: 1.5; color: #94a3b8; }
.bv-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: calc(100% - 40px); padding: .75rem 1rem; border: 1px solid #334155; border-radius: 16px; background: #0f172a; color: #fff; font-size: .78rem; font-weight: 500; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.bv-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .bv-hero { padding: 3rem 0; }
    .bv-hero__grid, .bv-layout, .bv-featured { grid-template-columns: minmax(0,1fr); }
    .bv-featured__cover { min-height: 0; aspect-ratio: 1200 / 630; }
    .bv-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bv .article-sidebar { padding-top: 0; }
}
@media (max-width: 768px) {
    .bv .pfooter-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .bv--list .container, .bv .related .container, .bv .pfooter .container { padding-left: 16px; padding-right: 16px; }
    .bv-grid, .bv-grid--3 { grid-template-columns: minmax(0,1fr); }
    .bv-calc { padding: 1.4rem; }
    .bv-featured__body { padding: 1.5rem; }
    .bv-search { max-width: none; flex-basis: 100%; }
    .bv-footer-bottom { justify-content: center; text-align: center; }
}
