/* ==========================================================================
   CONVERTA.ONLINE — EDITORIAL & ARTICLE DETAIL STYLES
   Optimized for E-E-A-T Authority, Readability & AdSense Integration
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--brand-gradient);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Article Hero Header */
.article-header {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  max-width: var(--max-w-article);
  margin: 0 auto;
  text-align: left;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumb-sep {
  opacity: 0.5;
}

.article-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Author & Meta Pill */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-img-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-light);
}

.author-meta-info {
  display: flex;
  flex-direction: column;
}

.author-meta-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.author-meta-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Article Hero Image */
.article-featured-image {
  width: 100%;
  max-width: var(--max-w-article);
  margin: 0 auto 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

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

.image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
}

/* Table of Contents (TOC) */
.toc-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

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

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

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-left: 0.5rem;
}

.toc-item a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-item a:hover {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.toc-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 20px;
}

/* Main Article Content & Typography */
.article-content {
  max-width: var(--max-w-article);
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

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

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-content ul, .article-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.35rem;
}

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

/* Key Takeaways Callout */
.callout-takeaways {
  background: var(--brand-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.takeaways-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-takeaways ul {
  margin-bottom: 0;
}

/* Quote & Editorial Callouts */
.editorial-quote {
  border-left: 4px solid var(--brand-accent);
  background: var(--bg-subtle);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.quote-author {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-top: 0.75rem;
}

/* Data Table in Articles */
.table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--bg-surface);
}

.data-table th {
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-subtle);
}

/* FAQ Accordion Section */
.faq-section {
  margin: 4rem 0;
  padding-top: 2rem;
  border-top: 2px dashed var(--border-subtle);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  display: none;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Social Share Sticky / Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.share-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  color: var(--text-primary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-whatsapp {
  background: #25d366;
  color: white;
}

.share-linkedin {
  background: #0077b5;
  color: white;
}

.share-twitter {
  background: #0f1419;
  color: white;
}

.share-copy {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Detailed Author Box (E-E-A-T) */
.author-box-full {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin: 3.5rem 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .author-box-full {
    flex-direction: column;
    gap: 1.25rem;
  }
}

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

.author-box-body h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.author-box-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.author-box-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}
