/* ============================================================
   AQUA VITOR — Blog · v1.0
   Artigos + índice do blog
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(219, 238, 252, 0.75);
  margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--aqua-300); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Hero do artigo ---------- */
.article-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 70% 18%, rgba(14, 165, 233, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 100%, rgba(6, 182, 212, 0.18), transparent 65%),
    linear-gradient(150deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  overflow: hidden;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 38%, rgba(160, 235, 255, 0.06) 44%, transparent 50%),
    linear-gradient(115deg, transparent 60%, rgba(160, 235, 255, 0.05) 66%, transparent 72%);
  animation: rays 10s ease-in-out infinite alternate;
}
.article-hero .container { position: relative; z-index: 2; max-width: 860px; }

.article-hero .section-tag {
  color: var(--aqua-300);
  background: rgba(103, 232, 249, 0.12);
  margin-bottom: 1rem;
}
.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.article-hero .lead {
  color: rgba(219, 238, 252, 0.85);
  font-size: 1.08rem;
  max-width: 46rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(219, 238, 252, 0.7);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-meta svg { width: 15px; height: 15px; color: var(--aqua-300); }

/* ---------- Corpo do artigo ---------- */
.article-body {
  max-width: 780px;
  margin: -2.5rem auto 0;
  padding: 0 1.25rem 3rem;
  position: relative;
  z-index: 2;
}
.article-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(8, 44, 79, 0.06);
}

.article-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 2.4rem 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--aqua-400);
}
.article-content h2:first-of-type { margin-top: 0.5rem; }
.article-content h3 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }
.article-content p { color: var(--ink-700); margin-bottom: 1rem; font-size: 1.02rem; }
.article-content ul, .article-content ol {
  margin: 0 0 1.2rem 1.2rem;
  color: var(--ink-700);
  display: grid;
  gap: 0.5rem;
  font-size: 1.02rem;
}
.article-content ul { list-style: none; }
.article-content ul li { position: relative; padding-left: 1.4rem; }
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aqua-400);
}
.article-content ol { list-style: decimal; padding-left: 0.6rem; }
.article-content strong { color: var(--ink-900); }
.article-content a { color: var(--azure-600); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(14, 165, 233, 0.35); }
.article-content a:hover { text-decoration-color: var(--azure-600); }

/* Caixa de dica */
.tip {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.09), rgba(6, 182, 212, 0.09));
  border: 1px solid rgba(2, 132, 199, 0.28);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: 0.97rem;
  color: var(--ink-700);
}
.tip strong { color: var(--azure-600); }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; }
.faq h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.faq details {
  background: var(--white);
  border: 1px solid rgba(8, 44, 79, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(2, 132, 199, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--azure-600);
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a {
  padding: 0 1.3rem 1.1rem;
  color: var(--ink-700);
  font-size: 0.98rem;
}

/* ---------- Autor + CTA + relacionados ---------- */
.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--foam);
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 44, 79, 0.07);
}
.article-author .avatar {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure-500), var(--aqua-400));
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 800;
}
.article-author p { font-size: 0.92rem; color: var(--ink-700); }
.article-author strong { color: var(--ink-900); }

.article-cta {
  margin-top: 2.4rem;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.article-cta h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.35rem; }
.article-cta p { color: rgba(219, 238, 252, 0.78); font-size: 0.95rem; }

.related { margin-top: 3rem; }
.related h2 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.related-card {
  background: var(--white);
  border: 1px solid rgba(8, 44, 79, 0.08);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card .rc-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-600);
}
.related-card h3 { font-size: 1rem; margin: 0.5rem 0; line-height: 1.35; }
.related-card small { color: var(--ink-500); font-size: 0.8rem; }

/* ---------- Índice do blog ---------- */
.blog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
.blog-search {
  flex: 1 1 260px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1.5px solid rgba(8, 44, 79, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
}
.blog-search svg { width: 18px; height: 18px; color: var(--ink-500); flex: none; }
.blog-search input {
  border: none;
  outline: none;
  font: inherit;
  width: 100%;
  color: var(--ink-900);
  background: transparent;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; }
.cat-chips button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--white);
  border: 1.5px solid rgba(8, 44, 79, 0.1);
  transition: all 0.2s ease;
}
.cat-chips button:hover { border-color: var(--aqua-400); color: var(--azure-600); }
.cat-chips button.active {
  background: linear-gradient(135deg, var(--azure-600), var(--aqua-500));
  color: var(--white);
  border-color: transparent;
}

.blog-cat-title {
  font-size: 1.35rem;
  margin: 2.6rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.blog-cat-title::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.35), transparent);
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.blog-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(8, 44, 79, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card .bc-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-600);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 0.6rem; }
.blog-card p { color: var(--ink-500); font-size: 0.92rem; flex: 1; }
.blog-card .bc-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-500);
  display: flex;
  gap: 1rem;
}
.blog-empty { text-align: center; color: var(--ink-500); padding: 2.5rem 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
}
