﻿/* =============================================
   FITSCALEZ - Blog & Article Stylesheet
   Enhanced Typography, Reading UX & Layouts
   ============================================= */

.article-header {
  padding: 140px 0 50px;
  background: radial-gradient(circle at 50% 10%, rgba(108, 99, 255, 0.15), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-header .breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-header .breadcrumb a {
  color: var(--text-muted);
}

.article-header .breadcrumb a:hover {
  color: var(--primary-light);
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--primary-light);
}

.article-read-time {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 900px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

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

.article-date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Article Body Layout */
.article-layout {
  padding: 60px 0 100px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
  align-items: start;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d1d5db;
}

.article-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  margin: 45px 0 18px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f3f4f6;
  margin: 30px 0 14px;
  line-height: 1.4;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content li {
  line-height: 1.7;
}

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

/* Key Takeaway / Highlight Box */
.takeaway-box {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(67, 233, 123, 0.08));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 35px 0;
}

.takeaway-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.takeaway-box p:last-child {
  margin-bottom: 0;
}

/* Pricing / Comparison Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.article-table th {
  background: var(--card2);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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

.article-table tr:hover td {
  background: rgba(108, 99, 255, 0.04);
}

.highlight-row td {
  color: var(--white);
  font-weight: 600;
  background: rgba(108, 99, 255, 0.08);
}

/* Inline Article CTA */
.inline-cta-card {
  background: radial-gradient(circle at 90% 10%, rgba(255, 101, 132, 0.15), transparent 60%), linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(21, 24, 33, 0.95));
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 45px 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.inline-cta-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.inline-cta-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.inline-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sidebar Styles */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
  transition: var(--transition);
}

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

.author-bio-card {
  text-align: center;
}

.author-bio-card .author-avatar {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.author-bio-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 12px 0 16px;
}

/* Bottom Author Box & Share */
.article-footer-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.share-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Related Posts Section */
.related-posts-section {
  padding: 60px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
