/**
 * Static Content Styles
 * 
 * Styles for static HTML content that search engines can crawl
 * before React hydrates the application.
 */

/* ==========================================================================
   Base & Reset
   ========================================================================== */

.static-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hide static content once React hydrates */
#root:not(:empty) .static-content {
  display: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.heading-1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #1a1a2e;
}

.heading-2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #1a1a2e;
}

.heading-3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.625rem;
  color: #1a1a2e;
}

.text {
  color: #4a5568;
  margin-bottom: 1rem;
}

.text-large {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 44rem;
  margin: 0 auto 1.5rem;
}

.text-center {
  text-align: center;
}

.text-small {
  font-size: 0.875rem;
  color: #718096;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 56rem;
  margin: 0 auto;
}

.container-wide {
  max-width: 72rem;
  margin: 0 auto;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.static-header {
  text-align: center;
  padding: 3.75rem 0;
}

.header-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: #f0f4ff;
  border: 1px solid #0052ff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0052ff;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 4rem 0 3rem;
}

.hero-content {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: #0052ff;
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background-color 0.2s;
}

.hero-cta:hover {
  background-color: #0040cc;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.hero-feature-icon {
  width: 1rem;
  height: 1rem;
  color: #0052ff;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f7fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.steps {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .heading-1 {
    font-size: 3rem;
  }
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #0052ff;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.step-description {
  color: #4a5568;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.benefits {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #0052ff;
}

.benefit-title {
  font-weight: 600;
  color: #1a1a2e;
}

.benefit-text {
  color: #4a5568;
}

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

.faq {
  max-width: 50rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: #1a1a2e;
}

.faq-answer {
  color: #4a5568;
  line-height: 1.7;
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.25rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #0052ff;
}

.blog-card-excerpt {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0052ff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

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

.article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
}

.article-content {
  line-height: 1.8;
  color: #2d3748;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

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

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

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
}

.footer-text {
  color: #718096;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  color: #4a5568;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-link:hover {
  color: #0052ff;
  text-decoration: underline;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #0052ff;
  color: white;
  border-radius: 9999px;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid #e2e8f0;
  color: #4a5568;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-link {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #0052ff;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #a0aec0;
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: #1a1a2e;
  font-weight: 500;
}

/* ==========================================================================
   Reading Time
   ========================================================================== */

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #718096;
  font-size: 0.75rem;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.related-posts .heading-2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-post-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.related-post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}

.related-post-content {
  padding: 1rem;
}

.related-post-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.related-post-content h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.related-post-content h3 a:hover {
  color: #0052ff;
}

.related-post-content p {
  font-size: 0.8125rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Article Footer & Tags
   ========================================================================== */

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   Pillar Pages
   ========================================================================== */

.pillar-header {
  text-align: center;
  padding: 3rem 0;
  max-width: 48rem;
  margin: 0 auto;
}

.pillar-content {
  max-width: 56rem;
  margin: 0 auto;
}

.cta-section {
  text-align: center;
  padding: 2rem 0;
}

.related-resources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.pillar-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pillar-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-link {
  display: block;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pillar-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #0052ff;
}

.pillar-link h4 {
  color: #0052ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar-link p {
  color: #4a5568;
  font-size: 0.875rem;
  margin: 0;
}
