/* ==========================================================================
   TURBO GRANA - ARTICLE & CONTENT STYLES (E-E-A-T & YMYL COMPLIANT)
   Modelado no estilo Publisher / Dinheiro Bem Cuidado
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 1rem 0 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--emerald-green);
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Article Container */
.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

/* Article Header */
.article-header {
  margin-bottom: 1.75rem;
}

.article-category-badge {
  margin-bottom: 0.75rem;
}

.article-headline {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--emerald-green);
}

.author-name-text {
  font-weight: 700;
  color: var(--primary-navy);
}

.author-role-text {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}

.article-dates {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reading-time-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-body);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Social Share Bar */
.social-share-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem 0;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.share-whatsapp { background-color: #25D366; }
.share-telegram { background-color: #0088cc; }
.share-twitter { background-color: #0f1419; }
.share-facebook { background-color: #1877F2; }
.share-copy { background-color: #475569; }

/* Featured Image */
.article-featured-media {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.article-featured-media img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.media-caption {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 0.4rem 0.2rem;
  text-align: right;
}

/* Table of Contents */
.toc-container {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--emerald-green);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list a {
  color: var(--text-main);
  font-size: 0.875rem;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--emerald-green);
  padding-left: 0.35rem;
}

/* Rich Content Body */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 2.25rem 0 1rem 0;
  line-height: 1.35;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin: 1.75rem 0 0.85rem 0;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.article-content ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--primary-navy);
  font-weight: 600;
}

.article-content a {
  color: var(--primary-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.article-content a:hover {
  color: var(--primary-accent-hover);
}

/* Callout Boxes */
.callout-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout-box .callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.callout-info {
  background: #f0f9ff;
  border-left: 4px solid var(--primary-accent);
  color: #0369a1;
}

.callout-tip {
  background: var(--emerald-bg);
  border-left: 4px solid var(--emerald-green);
  color: #065f46;
}

.callout-warning {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber-gold);
  color: #92400e;
}

/* Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.financial-table th {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}

.financial-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.financial-table tr:last-child td {
  border-bottom: none;
}

.financial-table tr:nth-child(even) {
  background: #f8fafc;
}

/* Pros & Cons Box */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.pros-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cons-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pros-card h4 {
  color: #166534;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cons-card h4 {
  color: #991b1b;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Author Box (Crucial for E-E-A-T & Google AdSense) */
.author-box-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0 2rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-box-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--emerald-green);
  flex-shrink: 0;
}

.author-box-content {
  flex-grow: 1;
}

.author-box-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.author-box-role {
  font-size: 0.8rem;
  color: var(--emerald-green);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.author-box-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* Post Navigation (Prev / Next) */
.post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.post-nav-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
}

.post-nav-card:hover {
  background: #ffffff;
  border-color: var(--emerald-green);
  box-shadow: var(--shadow-sm);
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* In-Article Calculator / Conversion CTA */
.article-tool-cta {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.article-tool-cta-text h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-tool-cta-text p {
  color: #a7f3d0;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.article-tool-cta-btn {
  flex-shrink: 0;
  background: #ffffff;
  color: #065f46;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.article-tool-cta-btn:hover {
  background: #f0fdf4;
  color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .article-tool-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  .article-tool-cta-text h4 {
    justify-content: center;
  }
  .article-tool-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-main-card {
    padding: 1.25rem;
  }
  .article-headline {
    font-size: 1.5rem;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .author-box-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-nav-links {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
