/**
 * Cohen House Blog Article Styles
 * Phase 5 — SEO Blog Content Hub
 * 
 * Usage: All blog guide articles
 * Version: 1.0.0
 * Last Updated: 2026-01-12
 * 
 * Architecture:
 * - Mobile-first responsive design
 * - Performance optimized (deferred loading)
 * - Consistent with ARMAGEDDON templates
 * - WCAG 2.1 AA compliant
 */

/* ==========================================================================
   Article Container
   ========================================================================== */

.ch-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2c3e50;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .ch-article {
    padding: 3rem 2rem;
  }
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.ch-article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e8e8e8;
}

.ch-article-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3498db;
  margin-bottom: 1rem;
}

.ch-article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
  .ch-article-title {
    font-size: 2.5rem;
  }
}

.ch-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-top: 1rem;
}

.ch-article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ch-article-updated {
  font-weight: 600;
  color: #27ae60;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.ch-article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

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

.ch-article-content a {
  color: #3498db;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ch-article-content a:hover {
  color: #2980b9;
}

/* ==========================================================================
   Typography — Headings
   ========================================================================== */

.ch-article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 3rem 0 1.5rem 0;
  line-height: 1.3;
  scroll-margin-top: 2rem;
}

.ch-article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.ch-article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #34495e;
  margin: 1.5rem 0 0.75rem 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

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

.ch-article-content li {
  margin-bottom: 0.75rem;
}

.ch-article-content ul li {
  list-style-type: disc;
}

.ch-article-content ol li {
  list-style-type: decimal;
}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

.ch-article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #3498db;
  background: #f8f9fa;
  font-style: italic;
  color: #495057;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.ch-article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.ch-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ch-article-content th,
.ch-article-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #dee2e6;
}

.ch-article-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.ch-article-content tbody tr:nth-child(even) {
  background: #f8f9fa;
}

/* ==========================================================================
   Highlight Boxes
   ========================================================================== */

.ch-highlight {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  background: #e8f4f8;
  border-left: 4px solid #3498db;
}

.ch-highlight-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ch-highlight-warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.ch-highlight-success {
  background: #d4edda;
  border-left-color: #28a745;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.ch-article-faq {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e8e8e8;
}

.ch-article-faq-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.ch-article-faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.ch-article-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ch-article-faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.ch-article-faq-answer {
  color: #495057;
  line-height: 1.7;
}

.ch-article-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Internal Links Section
   ========================================================================== */

.ch-article-links {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.ch-article-links-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.ch-article-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ch-article-links-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ch-article-links-item {
  margin: 0;
}

.ch-article-links-item a {
  display: block;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  text-decoration: none;
  color: #3498db;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e8e8e8;
}

.ch-article-links-item a:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.ch-article-cta {
  margin: 4rem 0 2rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
}

.ch-article-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.ch-article-cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.ch-article-cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: #667eea;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ch-article-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #5568d3;
}

/* ==========================================================================
   Facts Block (Hidden - for LLM)
   ========================================================================== */

.ch-llm-facts {
  display: none;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.ch-article-breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  color: #7f8c8d;
}

.ch-article-breadcrumbs a {
  color: #3498db;
  text-decoration: none;
}

.ch-article-breadcrumbs a:hover {
  text-decoration: underline;
}

.ch-article-breadcrumbs span {
  margin: 0 0.5rem;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .ch-article-cta,
  .ch-article-links,
  .ch-llm-facts {
    display: none !important;
  }
  
  .ch-article {
    max-width: 100%;
    padding: 0;
  }
  
  .ch-article-content a {
    color: #000;
    text-decoration: none;
  }
  
  .ch-article-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.ch-article a:focus,
.ch-article-cta-button:focus,
.ch-article-links-item a:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Skip to content link */
.ch-skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.ch-skip-to-content:focus {
  left: 0;
  top: 0;
  padding: 1rem;
  background: #3498db;
  color: white;
  text-decoration: none;
}
