/* ============================================= */
/* PAGE-SPECIFIC: Articles Pages                */
/* Purpose: Styles for articles listing and     */
/*          individual article pages            */
/* ============================================= */

/* ============================================= */
/* HERO VARIANTS - Articles Pages               */
/* ============================================= */

/* Standard Hero for Articles - Full Height */
.hero {
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero .hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  padding-top: 10ch;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero .hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

/* Hero Buttons Container */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #fff;
}

.hero-actions .button-blue,
.hero-actions .button-secondary {
  min-width: 200px;
}

/* Compact Hero Variant - Articles Listing Page */
.hero--compact {
  min-height: 50vh;
}

.hero--compact .hero-content {
  max-width: 700px;
}

.hero--compact h1 {
  font-size: 2.5rem;
}

/* Mobile - Hero */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-actions .button-blue,
  .hero-actions .button-secondary {
    width: 100%;
  }
  
  .hero--compact {
    min-height: 40vh;
  }
  
  .hero--compact h1 {
    font-size: 2rem;
  }
}

/* ============================================= */
/* ARTICLES LISTING PAGE                        */
/* ============================================= */

.articles-list {
  display: grid;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Article Card */
.article-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Article Card Media */
.article-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.article-card:hover .article-card__media img {
  transform: scale(1.05);
}

/* Article Card Content */
.article-card__content {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
}

.article-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.article-card__title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.article-card__meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.article-card__excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-card__actions {
  margin-top: auto;
}

.article-read-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.article-read-link:hover {
  color: var(--primary-dark);
}

/* Mobile Layout - Articles Listing */
@media (max-width: 768px) {
  .article-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .article-card__media {
    height: 200px;
  }
  
  .article-card__content {
    padding: 1.5rem;
  }
  
  .article-card__title {
    font-size: 1.25rem;
  }
}

/* ============================================= */
/* INDIVIDUAL ARTICLE PAGE                      */
/* ============================================= */

/* Article Container */
.article {
  max-width: 800px;
  margin: 0 auto;
}

/* Article Content - Main Text */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Article Typography */
.article-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* First paragraph - slightly larger */
.article-content > p:first-child {
  font-size: 1.25rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Lists in Articles */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Links in Article Content */
.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

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

/* Blockquotes */
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-light);
  font-style: italic;
  color: var(--text-light);
}

/* Images in Articles */
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}

/* Article Navigation */
.article-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-nav .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile - Article Content */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
  }
  
  .article-content > p:first-child {
    font-size: 1.125rem;
  }
  
  .article-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }
  
  .article-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
  }
  
  .article-content ul,
  .article-content ol {
    padding-left: 1.5rem;
  }
  
  .article-content blockquote {
    padding: 1rem 1.5rem;
  }
}

/* ============================================= */
/* ACCESSIBILITY ENHANCEMENTS                   */
/* ============================================= */

/* Focus Styles for Article Links */
.article-card__title a:focus,
.article-read-link:focus,
.article-content a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip Link (if needed) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================= */
/* PRINT STYLES - Article Pages                 */
/* ============================================= */

@media print {
  .hero,
  .article-nav,
  #header,
  #footer,
  #pricing-cta {
    display: none;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.6;
    color: black;
  }
  
  .article-content h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }
  
  .article-content h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }
  
  .article-content a {
    color: black;
    text-decoration: underline;
  }
  
  .article-content a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* ============================================= */
/* NOTES & DOCUMENTATION                        */
/* ============================================= */

/*
USAGE:
- Articles listing page: body class not required (default layout)
- Individual article page: body class not required (default layout)
- Both page types use this CSS file

STRUCTURE:
- Hero variants (compact for listing)
- Articles listing (grid of cards)
- Article cards (with hover effects)
- Individual article content (optimized typography)
- Article navigation
- Print styles (for article printing)

ACCESSIBILITY:
- Focus indicators on all interactive elements
- Skip link support
- Proper heading hierarchy maintained
- WCAG AA contrast ratios
- Screen reader friendly markup

PERFORMANCE:
- Minimal CSS transitions
- Efficient selectors
- No render-blocking styles
- Print styles optimized
*/
