/* ==========================================================================
   VISHAL DECOR IDEAS — ARTICLE & EDITORIAL STYLING
   Created & Managed by Hidden Routes (https://hiddenroutes.in/)
   Architectural Blueprints, Clean Typography & Rich Visual Callouts
   ========================================================================== */

.editorial-article-page {
  background-color: var(--bg-primary);
}

/* 1. Article Hero Header & Breadcrumbs */
.article-hero-header {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(200, 116, 66, 0.05) 0%, rgba(250, 247, 242, 0) 100%);
  border-bottom: 1px solid var(--border-light);
}

.article-hero-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.editorial-breadcrumbs a {
  color: var(--text-secondary);
}

.editorial-breadcrumbs a:hover {
  color: var(--accent-terracotta);
}

.breadcrumb-separator {
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.parent-hub-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.parent-hub-banner:hover {
  background: var(--accent-terracotta-light);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta-dark);
}

.parent-hub-banner i {
  color: var(--accent-terracotta);
}

.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.article-read-time, .article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-main-title {
  font-size: 2.85rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 980px;
}

.article-lead-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 880px;
  margin-bottom: 0;
}

/* 2. Article Layout (Main Column + Sticky TOC Sidebar) */
.article-layout-container {
  max-width: var(--container-wide);
  margin: 3.5rem auto 6rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.sticky-toc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.toc-header i {
  color: var(--accent-terracotta);
}

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

.toc-list a {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-secondary);
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  color: var(--accent-terracotta);
  background: var(--bg-primary);
}

.toc-list a.active {
  color: var(--accent-terracotta-dark);
  font-weight: 700;
  background: var(--accent-terracotta-light);
}

.article-main-content {
  min-width: 0;
  max-width: var(--container-article);
}

/* 3. Featured Image & Captions */
.article-featured-hero {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
}

.article-featured-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  line-height: 1.5;
}

figcaption i {
  color: var(--accent-terracotta);
  margin-right: 0.35rem;
}

/* 4. Quick Answer & At A Glance Callout Boxes */
.quick-answer-card {
  background: #FFFFFF;
  border-left: 5px solid var(--accent-terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.quick-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terracotta-dark);
  margin-bottom: 0.75rem;
}

.quick-answer-badge i {
  color: var(--accent-terracotta);
}

.quick-answer-text {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.at-a-glance-card {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.at-a-glance-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.at-a-glance-card h2 i {
  color: var(--accent-terracotta);
}

.glance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glance-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.glance-list li i {
  color: var(--accent-sage);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* 5. Architectural Diagram Figure */
.article-diagram-card {
  margin: 3rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.article-diagram-card img {
  width: 100%;
  height: auto;
  background: #fff;
  padding: 1.5rem;
}

/* 6. Main Section Content & Typography */
.article-section {
  margin-bottom: 3.5rem;
}

.article-section h2 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-section h2 i {
  color: var(--accent-terracotta);
  font-size: 1.4rem;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.section-body p {
  margin-bottom: 1.35rem;
}

.section-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.section-body ul, .section-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.section-body li {
  line-height: 1.6;
}

/* 7. Decision Matrix Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

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

.editorial-table th {
  background: var(--bg-muted);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

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

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

.editorial-table tbody tr:nth-child(even) {
  background: var(--bg-primary);
}

.editorial-table tbody tr:hover {
  background: var(--accent-terracotta-light);
}

/* 8. Real-World Constraints Grid */
.constraints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.constraint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.constraint-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FDF2E9;
  color: #D35400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.constraint-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.constraint-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.45;
}

/* 9. Step-by-Step Blueprint Timeline */
.blueprint-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blueprint-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: transform var(--transition-fast);
}

.blueprint-step:hover {
  transform: translateX(4px);
  border-color: var(--accent-terracotta);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-terracotta);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step-details p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* 10. Common Mistakes & Countermeasures */
.mistakes-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.mistake-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mistake-header {
  padding: 1.25rem 1.5rem;
  background: #FFF9F8;
  border-bottom: 1px solid #F8D7DA;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mistake-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #C0392B;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mistake-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.mistake-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.mistake-problem {
  color: var(--text-secondary);
}

.mistake-solution {
  color: var(--accent-sage);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.mistake-solution i {
  margin-top: 0.2rem;
}

/* 11. Interactive Checklist */
.interactive-checklist-card, .checklist-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.checklist-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sage);
  background: var(--accent-sage-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.checklist-counter, .checklist-progress-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checklist-progress-bar, .checklist-progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.checklist-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-sage);
  transition: width 0.3s ease;
}

.checklist-items, .checklist-items-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.checklist-item:hover {
  background: var(--bg-primary);
}

.checklist-item input[type="checkbox"], .checkbox-custom {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-terracotta);
  cursor: pointer;
}

.checklist-text, .item-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.checklist-item.completed .checklist-text,
.checklist-item.completed .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* 12. Accessible FAQ Accordions */
.faqs-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon, .faq-chevron {
  font-size: 0.9rem;
  color: var(--accent-terracotta);
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 13. Related Expert Guides Grid */
.related-guides-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

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

.related-guide-card, .related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.related-guide-card:hover, .related-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-md);
}

.related-img-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-muted);
}

.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-category, .related-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.35rem;
}

.related-guide-card h3, .related-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  flex-grow: 1;
}

.related-card-read, .related-read-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* 14. Hub Directory Subpages Section */
.hub-subpages-section {
  margin: 3rem 0 4rem;
  padding: 2.5rem;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.hub-subpages-header {
  margin-bottom: 2rem;
}

.hub-subpages-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hub-subpages-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hub-subpages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hub-subpage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.hub-subpage-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-md);
}

.hub-subpage-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hub-subpage-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.hub-subpage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--accent-terracotta-dark);
  font-weight: 700;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE ARTICLE LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
  .article-layout-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .article-sidebar {
    display: none; /* Hide sticky sidebar on tablet/mobile to keep reading flow clean */
  }
  .related-guides-grid, .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-main-title {
    font-size: 2.1rem;
  }
  .article-lead-desc {
    font-size: 1.05rem;
  }
  .constraints-grid {
    grid-template-columns: 1fr;
  }
  .hub-subpages-grid {
    grid-template-columns: 1fr;
  }
  .related-guides-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .hub-subpages-section {
    padding: 1.5rem;
  }
}
