/* ========================================
   RAVENCOREX BLOG STYLES
   ======================================== */

/* CSS Variables - Matching main site typography */
:root {
  --_typography---font-styles--body: Roboto, sans-serif;
  --_typography---font-styles--heading: Quicksand, sans-serif;
}

/* Base Typography */
body {
  font-family: var(--_typography---font-styles--body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--_typography---font-styles--heading);
}

/* Blog Index Hero - Matching site's section styling */
.blog-index-hero {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  padding: 6rem 0 4rem;
  text-align: center;
}

.blog-index-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-index-title {
  font-family: var(--_typography---font-styles--heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-index-subtitle {
  font-family: var(--_typography---font-styles--body);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #e5e7eb;
  line-height: 1.6;
  margin: 0;
}

/* Blog Content Section */
.blog-index-content {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--_typography---font-styles--heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: #1a2332;
}

/* Featured Article Card */
.blog-featured-section {
  margin-bottom: 4rem;
}

.blog-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-family: var(--_typography---font-styles--body);
}

.blog-card-category {
  color: #3b82f6;
  font-weight: 500;
}

.blog-card-title {
  font-family: var(--_typography---font-styles--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: #1a2332;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #3b82f6;
}

.blog-card-excerpt {
  font-family: var(--_typography---font-styles--body);
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

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

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--_typography---font-styles--body);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

/* Articles Grid */
.blog-all-articles {
  margin-top: 4rem;
}

.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.blog-card .blog-card-image-placeholder {
  min-height: 200px;
}

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

.blog-card .blog-card-title {
  font-size: 1.25rem;
}

.blog-card-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px dashed #d1d5db;
}

.blog-card-coming-soon .blog-card-content {
  text-align: center;
  padding: 3rem 2rem;
}

.blog-card-coming-soon .blog-card-title {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.blog-card-coming-soon .blog-card-excerpt {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-index-hero {
    padding: 4rem 0 3rem;
  }
}

@media (max-width: 767px) {
  .blog-articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-index-hero {
    padding: 3rem 0 2rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }
}

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  color: #ffffff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.blog-breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #93c5fd;
}

.blog-breadcrumb span {
  color: #ffffff;
}

.blog-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.blog-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.blog-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: #d1d5db;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Content */
.blog-content {
  background: #ffffff;
  padding: 4rem 0;
}

.container-medium {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Blog Sections */
.blog-section {
  margin-bottom: 4rem;
}

.blog-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  line-height: 1.3;
}

.blog-section h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #2d3e50;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.blog-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.blog-section p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
}

.blog-section ul,
.blog-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-section li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 0.75rem;
}

.blog-section li strong {
  color: #1a2332;
}

/* Intro Paragraph */
.blog-intro {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.blog-intro strong {
  color: #1a2332;
  font-weight: 600;
}

/* Quote */
.blog-quote {
  background: #f9fafb;
  border-left: 4px solid #60a5fa;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1.125rem;
  font-style: italic;
  color: #374151;
  border-radius: 0 8px 8px 0;
}

.blog-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 600;
}

/* Code Blocks */
pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

p code,
li code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Architecture Diagram */
.blog-architecture {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}

.blog-architecture pre {
  background: #0f172a;
  margin: 0;
}

/* Results Cards */
.blog-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.result-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-detail {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* Framework Steps */
.framework-steps {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.framework-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.framework-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #3b82f6;
  color: #ffffff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Tips Section */
.blog-tips {
  background: #f8fafc;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
}

.tip-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.tip-content h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #1a2332;
  font-size: 1.125rem;
}

.tip-content p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.tip-content pre {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}

/* News List */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  background: #f9fafb;
  border-left: 3px solid #3b82f6;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.news-list li strong {
  display: block;
  color: #1a2332;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.news-list a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.news-list a:hover {
  color: #2563eb;
}

/* Inline CTAs */
.blog-cta-inline {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #60a5fa;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.blog-cta-inline p {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
}

.blog-cta-inline .button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.blog-cta-inline .button:hover {
  background: #2563eb;
}

/* Final CTA Section */
.blog-cta-final {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  color: #ffffff;
  padding: 4rem 3rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 4rem;
}

.blog-cta-final h2 {
  color: #ffffff;
  margin-top: 0;
}

.blog-cta-final p {
  color: #e5e7eb;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-actions .button {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: all 0.2s;
}

.cta-actions .button.is-primary {
  background: #3b82f6;
  color: #ffffff;
}

.cta-actions .button.is-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.cta-actions .button.is-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cta-actions .button.is-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Author Card */
.author-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  text-align: left;
  margin-bottom: 2rem;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #60a5fa;
  object-fit: cover;
}

.author-info h4 {
  color: #ffffff;
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.author-info p {
  color: #d1d5db;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.author-bio {
  margin: 1rem 0 !important;
  font-size: 1rem !important;
}

.author-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.author-links a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.author-links a:hover {
  color: #93c5fd;
}

.blog-footer-tagline {
  font-size: 1rem;
  color: #d1d5db;
  font-style: italic;
}

.blog-footer-tagline strong {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero {
    padding: 4rem 0 3rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1.125rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-content {
    padding: 2rem 0;
  }

  .blog-section {
    margin-bottom: 2.5rem;
  }

  .container-medium {
    padding: 0 1rem;
  }

  .blog-results {
    grid-template-columns: 1fr;
  }

  .tip-card {
    flex-direction: column;
    gap: 1rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-links {
    justify-content: center;
  }

  .blog-cta-final {
    padding: 3rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .blog-hero,
  .blog-cta-inline,
  .blog-cta-final,
  footer {
    display: none;
  }

  .blog-content {
    padding: 0;
  }

  .blog-section {
    page-break-inside: avoid;
  }
}
