/* Módulo artigos — páginas editoriais por cerveja. CSS próprio (sem Tailwind). */

.art-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }

/* ── índice ── */
.art-index-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.art-index-head h1 { font-family: var(--font-serif, Georgia, serif); color: var(--rbb-petrol, #2d4839); font-size: 30px; }
.art-index-head .art-count { color: #6b7280; font-size: 13px; }
.art-search { display: flex; gap: 8px; }
.art-search input { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; min-width: 220px; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.art-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); }
.art-card__img { aspect-ratio: 1/1; background: #f3f4f6 center/contain no-repeat; }
.art-card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.art-card__nome { font-weight: 700; font-size: 15px; color: #1f2937; line-height: 1.25; }
.art-card__meta { font-size: 12px; color: #6b7280; }
.art-card__badge { align-self: flex-start; margin-top: 6px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.art-empty { color: #9ca3af; text-align: center; padding: 50px 0; }

/* ── página do artigo ── */
.art-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; margin-bottom: 28px; }
.art-hero__img { width: 100%; border-radius: 14px; background: #f3f4f6; object-fit: contain; box-shadow: var(--shadow-card, 0 4px 16px rgba(0,0,0,.08)); }
.art-hero__title { font-family: var(--font-serif, Georgia, serif); color: var(--rbb-petrol, #2d4839); font-size: 32px; line-height: 1.12; margin-bottom: 6px; }
.art-hero__sub { color: #6b7280; font-size: 14px; margin-bottom: 14px; }
.art-hero__frase { font-size: 18px; font-style: italic; color: #374151; line-height: 1.4; margin-bottom: 16px; }
.art-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.art-stat { display: flex; flex-direction: column; }
.art-stat b { font-size: 18px; color: #1f2937; }
.art-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; }
.art-badge-estilo { display: inline-block; background: var(--rbb-petrol, #2d4839); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }

.art-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.art-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: #475569; }

.art-media { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.art-media a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 1px solid #e5e7eb; color: #1f2937; background: #fff; }
.art-media a:hover { background: #f9fafb; }

/* seções do corpo */
.art-section { margin: 26px 0; }
.art-section h2 { font-family: var(--font-serif, Georgia, serif); color: var(--rbb-petrol, #2d4839); font-size: 22px; margin-bottom: 10px; border-bottom: 1px solid #eef0f2; padding-bottom: 6px; }
.art-prose { font-size: 16px; line-height: 1.7; color: #374151; }
.art-prose p { margin-bottom: 12px; }

.art-sensorial { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.art-sensorial div { background: #fafbfc; border: 1px solid #eef0f2; border-radius: 10px; padding: 12px 14px; }
.art-sensorial b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; margin-bottom: 4px; }
.art-sensorial p { font-size: 15px; color: #374151; line-height: 1.5; }

.art-harmon { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.art-harmon li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: #fff; border: 1px solid #eef0f2; border-radius: 10px; padding: 12px 14px; }
.art-harmon__prato { font-weight: 700; color: #1f2937; }
.art-harmon__porque { color: #6b7280; font-size: 14px; }
.art-harmon__extra { flex-basis: 100%; color: #6b7280; font-size: 13px; margin-top: 4px; }

/* harmonização com foto do prato (gpt-image-2) */
.art-harmon li { align-items: flex-start; }
.art-harmon__foto { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: #f3f4f6; }
.art-harmon__txt { flex: 1; min-width: 0; }
.art-harmon__admin { margin-top: 8px; }
.art-btn--sm { padding: 4px 10px; font-size: 12px; }
.art-admin-hint { font-size: 12px; color: #9ca3af; margin-top: 10px; }

/* barris */
.art-barris { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.art-barril { background: #fff; border: 1px solid #eef0f2; border-radius: 10px; padding: 12px 14px; }
.art-barril b { color: #1f2937; }
.art-barril p { color: #6b7280; font-size: 14px; margin: 6px 0 0; }
.art-barril__func { font-style: italic; color: #9ca3af; }

/* fontes + extras editoriais */
.art-fontes ul { padding-left: 18px; }
.art-fontes li { font-size: 14px; margin-bottom: 6px; }
.art-fontes a { color: #2563eb; }
.art-extras { background: #fbfaf7; border: 1px dashed #e0cfa0; border-radius: 12px; padding: 16px 18px; }

/* selo de versão do prompt */
.art-vbadge { font-size: 12px; color: #6b7280; }
.art-vbadge--old { color: #b45309; font-weight: 700; }

/* botão "gerar com pesquisa web" — distinto do gerar rápido */
.art-btn--web { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.art-btn--web:hover { filter: brightness(1.12); }

.art-servico { display: flex; gap: 24px; flex-wrap: wrap; }
.art-servico div b { display: block; font-size: 12px; text-transform: uppercase; color: #9ca3af; }
.art-servico div span { font-size: 16px; color: #1f2937; }

/* ── barra de admin / geração ── */
.art-admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 14px; margin-bottom: 22px; }
.art-admin-bar .art-admin-note { color: #6b7280; font-size: 13px; margin-right: auto; }
.art-btn { padding: 9px 15px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--rbb-petrol, #2d4839); color: #fff; text-decoration: none; display: inline-block; }
.art-btn:hover { background: #24382c; }
.art-btn--ghost { background: #eef2f7; color: #374151; }
.art-btn--ghost:hover { background: #e2e8f0; }
.art-btn--warn { background: #fef3c7; color: #92400e; }

.art-flash { padding: 12px 16px; margin-bottom: 14px; border-radius: 8px; }
.art-flash--success { background: #d4f1dd; color: #1e6b3a; }
.art-flash--error { background: #f8d6d2; color: #8a2a1f; }

/* ── editor ── */
.art-form { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.art-form label { font-weight: 600; font-size: 13px; color: #374151; display: block; margin-bottom: 4px; }
.art-form input, .art-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit; }
.art-form textarea { min-height: 80px; resize: vertical; }
.art-form .art-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-form small { color: #9ca3af; }

/* ── leitura RBB (bloco assinatura) ── */
.art-take { background: var(--rbb-petrol, #2d4839); color: #fff; border-radius: 14px; padding: 20px 22px; margin: 22px 0; }
.art-take__label { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--rbb-gold, #c9a24b); margin-bottom: 6px; }
.art-take p { font-size: 18px; line-height: 1.5; font-family: var(--font-serif, Georgia, serif); }

.art-chip--warn { background: #fef3c7; color: #92400e; }
.art-chip--ok { background: #d4f1dd; color: #1e6b3a; }

/* ── evolução no copo ── */
.art-evol { list-style: none; display: flex; flex-direction: column; gap: 0; border-left: 2px solid #e5e7eb; margin-left: 8px; }
.art-evol li { position: relative; padding: 0 0 18px 22px; }
.art-evol li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--rbb-gold, #c9a24b); }
.art-evol__janela { display: block; font-weight: 700; color: #1f2937; }
.art-evol__texto { color: #6b7280; font-size: 15px; }

/* ── para quem é ── */
.art-paraquem { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-paraquem > div { border-radius: 10px; padding: 14px 16px; }
.art-paraquem__sim { background: #f0fdf4; border: 1px solid #bbf7d0; }
.art-paraquem__nao { background: #fef2f2; border: 1px solid #fecaca; }
.art-paraquem b { display: block; margin-bottom: 8px; font-size: 13px; }
.art-paraquem ul { margin: 0; padding-left: 18px; }
.art-paraquem li { font-size: 14px; color: #374151; margin-bottom: 4px; }

/* ── linha do tempo / ficha ── */
.art-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.art-linha > div { background: #fafbfc; border: 1px solid #eef0f2; border-radius: 10px; padding: 12px 14px; }
.art-linha b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; margin-bottom: 3px; }
.art-linha span { font-size: 15px; color: #1f2937; }

/* ── página pública (rbb.beer/a/<id>) ── */
.art-public { padding-top: 12px; }
.art-ritual { margin: 30px 0; background: var(--rbb-cream-soft, #faf7f0); border-radius: 14px; padding: 22px; text-align: center; }
.art-ritual h2 { font-family: var(--font-serif, Georgia, serif); color: var(--rbb-petrol, #2d4839); font-size: 20px; margin-bottom: 8px; }
.art-ritual p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.art-cta { text-align: center; margin: 28px 0 8px; }

.art-relacionados { margin: 34px 0; }
.art-relacionados h2 { font-family: var(--font-serif, Georgia, serif); color: var(--rbb-petrol, #2d4839); font-size: 20px; margin-bottom: 14px; }
.art-cta__msg { color: #6b7280; font-size: 15px; margin-bottom: 12px; }
.art-tagline { text-align: center; font-family: var(--font-serif, Georgia, serif); color: #9ca3af; letter-spacing: .04em; margin: 26px 0 10px; }

@media (max-width: 700px) {
  .art-hero { grid-template-columns: 1fr; }
  .art-hero__img { max-width: 220px; }
  .art-form .art-row2 { grid-template-columns: 1fr; }
  .art-paraquem { grid-template-columns: 1fr; }
  .art-take p { font-size: 16px; }
}
