/* 
 * OPSLance Blog Shared Styles 
 * Brand Colors:
 * Navy: #1C3041 | Navy Profundo: #14222F
 * Sage Green: #C4D6B0 | Sage Oscuro: #A9C28E
 * Fondo: #F4F5F3 | Texto: #1C3041 | Texto Tenue: #5C6B73
 */

:root {
  --color-navy: #1C3041;
  --color-navy-dark: #14222F;
  --color-sage: #C4D6B0;
  --color-sage-dark: #A9C28E;
  --color-bg: #F4F5F3;
  --color-text: #1C3041;
  --color-text-muted: #5C6B73;
  
  --font-heading: 'League Spartan', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

body.blog-page {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Typography Base */
.blog-page h1, 
.blog-page h2, 
.blog-page h3, 
.blog-page h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
}

/* 3D Hero Section */
.blog-hero {
  position: relative;
  width: 100%;
  min-height: 85vh; /* Responsive hero height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
}

.blog-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8; /* Let the background gradient bleed through slightly */
}

.blog-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-w: 800px;
  padding: 0 1rem;
  color: white;
  pointer-events: none; /* Let clicks pass through if we want canvas interaction, though text needs selection so we re-enable it on children */
}

.blog-hero-content * {
  pointer-events: auto;
}

.blog-badge {
  display: inline-block;
  background: rgba(196, 214, 176, 0.2);
  color: var(--color-sage);
  border: 1px solid rgba(196, 214, 176, 0.4);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.blog-page .blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.blog-hero-dek {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.blog-meta-divider {
  width: 4px;
  height: 4px;
  background: var(--color-sage);
  border-radius: 50%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-col;
  align-items: center;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Article Body Layout */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Drop Cap on first paragraph */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-left: 3px;
  color: var(--color-navy);
  font-weight: 800;
}

.article-body h2 {
  font-size: 2.25rem;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

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

.article-body strong {
  font-weight: 600;
  color: var(--color-navy-dark);
}

/* Pull-Quote */
.article-quote {
  margin: 3.5rem -2rem;
  padding: 2rem 3rem;
  background: white;
  border-left: 6px solid var(--color-sage);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .article-quote {
    margin: 2.5rem 0;
    padding: 1.5rem;
  }
}

.article-quote p {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--color-navy);
  font-weight: 600;
  margin: 0;
}

/* Check-List */
.article-checklist {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.article-checklist li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.article-checklist li:last-child {
  margin-bottom: 0;
}

.article-checklist li::before {
  content: '\f00c'; /* FontAwesome Check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--color-sage-dark);
  font-size: 1.2rem;
}

/* CTA Block at bottom */
.article-cta {
  margin-top: 5rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--color-sage);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}

.article-cta h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background: var(--color-sage);
  color: var(--color-navy);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 214, 176, 0.4);
}

.btn-cta:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  background: var(--color-sage);
  width: 0%;
  box-shadow: 0 0 10px var(--color-sage), 0 0 20px var(--color-sage);
  transition: width 0.1s ease-out;
  border-radius: 0 2px 2px 0;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
