/*
 * blog/blog.css — Estilos específicos do blog Teleplay
 * Depende de /includes/colors.css (define variáveis :root)
 * Tema escuro com destaques em amarelo/laranja.
 */

/* ── Base do Blog ────────────────────────────────────────────────────────── */
.blog-main { padding-top: 70px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, #0a0a0a 0%, #141414 40%, #0f0f0f 100%);
  border-bottom: 1px solid rgba(var(--yellow-rgb), .12);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--yellow-rgb),.06) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--yellow-rgb), .1);
  border: 1px solid rgba(var(--yellow-rgb), .25);
  color: var(--yellow);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-family: var(--font2);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.blog-hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  color: #888;
  font-size: .95rem;
  max-width: 520px;
}

/* ── Category Filter Tabs ─────────────────────────────────────────────────── */
.blog-cats-bar {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(var(--yellow-rgb), .08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-cats-bar::-webkit-scrollbar { display: none; }

.blog-cats-inner {
  display: flex;
  min-width: max-content;
  gap: 0;
}

.blog-cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 22px;
  color: #666;
  font-size: .82rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.blog-cat-tab:hover { color: #aaa; }
.blog-cat-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

.blog-cat-tab .cat-count {
  background: rgba(var(--yellow-rgb), .12);
  color: var(--yellow);
  padding: 2px 7px;
  border-radius: 50px;
  font-size: .7rem;
}

/* ── Post Grid ────────────────────────────────────────────────────────────── */
.blog-layout {
  padding: 52px 0 80px;
}

.blog-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ── Post Card ────────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--card);
  border: 1px solid rgba(var(--yellow-rgb), .08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--yellow-rgb), .2);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.blog-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

/* Placeholder quando não há imagem */
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
}

.blog-card-img-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: .5;
}

.blog-card-img-placeholder .ph-label {
  font-size: .7rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(var(--yellow-rgb), .2);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

.blog-card-time {
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(0,0,0,.65);
  color: #aaa;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: .7rem;
  backdrop-filter: blur(6px);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: #555;
  margin-bottom: 10px;
}

.blog-card-meta .sep { color: #333; }

.blog-card h3 {
  font-family: var(--font2);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--white);
}

.blog-card h3 a:hover { color: var(--yellow); }

.blog-card p {
  font-size: .83rem;
  color: #777;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.04);
}

.blog-read-more {
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.blog-read-more:hover { gap: 10px; }

/* ── Featured Card (primeiro post) ────────────────────────────────────────── */
.blog-card-featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .blog-card-featured {
    flex-direction: row;
  }

  .blog-card-featured .blog-card-img {
    flex: 0 0 48%;
    aspect-ratio: auto;
    min-height: 260px;
  }

  .blog-card-featured .blog-card-body {
    padding: 28px;
  }

  .blog-card-featured h3 {
    font-size: 1.3rem;
  }
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-widget {
  background: var(--card);
  border: 1px solid rgba(var(--yellow-rgb), .08);
  border-radius: 14px;
  padding: 22px;
}

.blog-widget-title {
  font-family: var(--font2);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--yellow-rgb), .1);
}

/* Sidebar WhatsApp */
.blog-widget-wa {
  background: linear-gradient(135deg, #0a2e1a, #0d3b20);
  border-color: rgba(37,211,102,.15);
  text-align: center;
}

.blog-widget-wa .blog-widget-title {
  color: #25d366;
  border-color: rgba(37,211,102,.15);
}

.blog-widget-wa p {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  line-height: 1.6;
}

.blog-widget-wa .btn-wa-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #000;
  padding: 11px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.blog-widget-wa .btn-wa-widget:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* Sidebar lista de posts */
.blog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.blog-popular-num {
  width: 26px; height: 26px;
  background: rgba(var(--yellow-rgb), .1);
  border: 1px solid rgba(var(--yellow-rgb), .2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.blog-popular-item a {
  font-size: .8rem;
  font-weight: 500;
  color: #888;
  line-height: 1.5;
  transition: color .2s;
}

.blog-popular-item a:hover { color: var(--yellow); }

/* Sidebar categorias */
.blog-cats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-cat-tag {
  padding: 5px 13px;
  border-radius: 50px;
  border: 1px solid rgba(var(--yellow-rgb), .15);
  color: #777;
  font-size: .75rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}

.blog-cat-tag:hover {
  background: rgba(var(--yellow-rgb), .1);
  border-color: rgba(var(--yellow-rgb), .3);
  color: var(--yellow);
}

/* ── Single Post Page ─────────────────────────────────────────────────────── */
.blog-post-header {
  background: linear-gradient(160deg, #050505 0%, #111 60%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(var(--yellow-rgb), .1);
  padding: 60px 0 72px;
  position: relative;
  overflow: hidden;
}

.blog-post-header::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(var(--yellow-rgb),.05) 0%, transparent 70%);
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: #555;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-breadcrumb a { color: #666; transition: color .2s; }
.blog-breadcrumb a:hover { color: var(--yellow); }
.blog-breadcrumb .sep { color: #333; font-size: .65rem; }

.blog-post-header .post-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--yellow-rgb), .1);
  border: 1px solid rgba(var(--yellow-rgb), .2);
  color: var(--yellow);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
}

.blog-post-header h1 {
  font-family: var(--font2);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 820px;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: .78rem;
  color: #555;
}

.blog-post-meta strong { color: #888; font-weight: 600; }
.blog-post-meta .sep { color: #2a2a2a; }
.blog-post-meta .read-time-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  padding: 4px 12px;
  border-radius: 50px;
  color: #666;
}

/* ── Post Content Area ────────────────────────────────────────────────────── */
.blog-post-layout {
  position: relative;
  margin-top: -36px;
  padding-bottom: 80px;
}

.blog-post-content-card {
  background: #111;
  border: 1px solid rgba(var(--yellow-rgb), .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

.blog-post-feat-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  background: #1a1a1a;
}

.blog-post-feat-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #141414, #1c1c1c);
  color: #333;
  font-size: 4rem;
}

.blog-post-feat-placeholder small {
  font-size: .75rem;
  color: #3a3a3a;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font);
}

.blog-post-body {
  padding: 36px 24px;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Article Typography ───────────────────────────────────────────────────── */
.blog-post-body h2 {
  font-family: var(--font2);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--yellow-rgb), .1);
}

.blog-post-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ddd;
  margin: 30px 0 12px;
}

.blog-post-body p {
  color: #aaa;
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.blog-post-body strong { color: var(--white); }

.blog-post-body a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body ul, .blog-post-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.blog-post-body li {
  color: #aaa;
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.blog-post-body ul li { list-style: disc; }
.blog-post-body ol li { list-style: decimal; }
.blog-post-body li::marker { color: var(--yellow); }

/* ── Info/Tip Boxes ───────────────────────────────────────────────────────── */
.tip-box {
  border-left: 3px solid var(--yellow);
  background: rgba(var(--yellow-rgb), .05);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.tip-box.success {
  border-color: #25d366;
  background: rgba(37,211,102,.05);
}

.tip-box.info {
  border-color: #3b82f6;
  background: rgba(59,130,246,.05);
}

.tip-box.warning {
  border-color: var(--orange);
  background: rgba(var(--orange-rgb), .06);
}

.tip-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 7px;
}

.tip-box.success .tip-box-title { color: #25d366; }
.tip-box.info .tip-box-title { color: #60a5fa; }
.tip-box.warning .tip-box-title { color: var(--orange); }

.tip-box p {
  margin: 0 !important;
  font-size: .85rem !important;
  line-height: 1.65 !important;
}

/* ── Step-by-Step ─────────────────────────────────────────────────────────── */
.steps-block {
  margin: 32px 0 40px;
}

.step {
  margin-bottom: 40px;
  background: #161616;
  border: 1px solid rgba(var(--yellow-rgb), .09);
  border-radius: 14px;
  padding: 24px 28px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: #FFD200;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.4;
}

.step-text {
  font-size: .92rem;
  color: #bbb;
  line-height: 1.8;
  margin: 0;
}

.step-img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, .55);
  object-fit: cover;
}

/* ── Table of Contents ────────────────────────────────────────────────────── */
.toc-box {
  background: #161616;
  border: 1px solid rgba(var(--yellow-rgb), .1);
  border-radius: 12px;
  padding: 20px;
  margin: 28px 0;
}

.toc-box-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.toc-box ol {
  padding-left: 18px;
  margin: 0;
}

.toc-box li {
  margin-bottom: 6px;
  list-style: decimal;
  color: #555;
}

.toc-box li a {
  font-size: .83rem;
  color: #666;
  text-decoration: none !important;
  transition: color .2s;
}

.toc-box li a:hover { color: var(--yellow); }

/* ── In-article CTA WhatsApp ──────────────────────────────────────────────── */
.article-cta-wa {
  background: linear-gradient(135deg, #061a0e, #0a2e1a);
  border: 1px solid rgba(37,211,102,.15);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-wa h3 {
  font-family: var(--font2) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  margin: 0 0 8px !important;
  border: none !important;
  padding: 0 !important;
}

.article-cta-wa p {
  color: rgba(255,255,255,.55) !important;
  font-size: .85rem !important;
  margin-bottom: 20px !important;
}

.btn-wa-article {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #000;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 800;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-wa-article:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

/* ── Author Box ───────────────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #161616;
  border: 1px solid rgba(var(--yellow-rgb), .08);
  border-radius: 14px;
  padding: 22px;
  margin-top: 48px;
}

.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.author-info .author-role {
  font-size: .75rem;
  color: var(--yellow);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.author-info p {
  font-size: .8rem !important;
  color: #666 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* ── Related Posts ────────────────────────────────────────────────────────── */
.blog-related {
  background: #0a0a0a;
  border-top: 1px solid rgba(var(--yellow-rgb), .06);
  padding: 56px 0;
}

.blog-related-title {
  font-family: var(--font2);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(var(--yellow-rgb), .12);
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}

.page-btn:hover, .page-btn.active {
  background: rgba(var(--yellow-rgb), .12);
  border-color: rgba(var(--yellow-rgb), .3);
  color: var(--yellow);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blog-grid-wrapper { grid-template-columns: 1fr 300px; }
  .blog-sidebar { position: sticky; top: 90px; }
  .blog-related-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-post-body { padding: 48px; }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
