/* ==========================================================
   🖋️ BLOG DETAILS ELITE ENGINE — blog-details.css (v4.0)
   - Architecture: Editorial Fluidity (EF) & Bento Grid
   - Theme: Divine Saffron (Sacred Mandala Background)
   - Optimization: Hardware-Accelerated (GPU) Motion
========================================================== */

/* --- 1. THE SACRED GROUND (PAGE BACKGROUND) --- */
body {
  margin: 0;
  padding: 0;
  /* 💎 THE PATTERN: Divine Saffron Mesh with Mandala Rays */
  background-color: #fffbeb; /* Warm Temple Cream */
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(245, 158, 11, 0.08) 0%,
      transparent 60%
    ),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      transparent 15deg,
      rgba(245, 158, 11, 0.04) 15deg,
      rgba(245, 158, 11, 0.04) 16deg
    );
  background-attachment: fixed;
  background-size: 100% 100%;
  color: #1e293b;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* --- 2. HERO SECTION (CINEMATIC SAFFRON) --- */
.article-hero {
  position: relative;
  height: clamp(550px, 75vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  isolation: isolate;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Transitions from Navy/Saffron depth into the Page Cream */
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.5) 60%,
    #fffbeb 100%
  );
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  padding: 0 2rem;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- 3. TYPOGRAPHY & META --- */
.hero-category {
  display: inline-block;
  background-color: #f59e0b; /* Saffron Accent */
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  text-shadow: 0 10px 40px rgb(235, 230, 230);
  text-wrap: balance;
}

.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

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

/* --- 4. BREADCRUMBS --- */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: #f59e0b;
  text-decoration: none;
}

/* --- 5. MAIN CONTAINER (FLOATING ELEVATION) --- */
.article-container {
  max-width: 1320px;
  margin: -8rem auto 0; /* Premium Depth Overlap */
  padding: 4rem;
  background: rgba(255, 255, 255, 0.98); /* Near-solid glass for readability */
  backdrop-filter: blur(10px);
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(67, 20, 7, 0.08);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Layout for Sidebar (TOC) + Body */
@media (min-width: 1024px) {
  .article-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* --- 6. CONTENT STYLING (EDITORIAL MODE) --- */
.article-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #334155;
}

.lead-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 3rem;
  text-wrap: pretty;
}

.lead-text::first-letter {
  font-size: 5rem;
  line-height: 0.75;
  font-weight: 900;
  float: left;
  margin-right: 1.2rem;
  color: #f59e0b; /* Drop Cap Saffron */
}

.article-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #0f172a;
  margin-top: 4rem;
  margin-bottom: 2rem;
  border-left: 8px solid #f59e0b;
  padding-left: 2rem;
  font-weight: 800;
}

.article-body h3 {
  font-size: 1.75rem;
  margin-top: 3rem;
  color: #1e293b;
  font-weight: 700;
}

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

.article-body img {
  width: 100%;
  border-radius: 24px;
  margin: 3rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --- 7. FEATURE BOXES (SAFFRON & LUXURY) --- */
.highlight-box {
  background-color: #fffbeb; /* Matches Spiritual Shade */
  border-left: 6px solid #10b981;
  padding: 2.5rem;
  margin: 3.5rem 0;
  border-radius: 0 24px 24px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.highlight-box.luxury-box {
  background-color: #fffdf5;
  border-left-color: #f59e0b;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.1);
}

.highlight-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #92400e;
}

/* --- 8. IMAGE GALLERY (BENTO GRID) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
  height: 350px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- 9. COMPARISON TABLE (ELITE) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 4rem 0;
}

.comparison-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  padding: 3rem;
  border-radius: 24px;
  transition: border-color 0.3s ease;
}

.comparison-card:hover {
  border-color: #f59e0b;
}

/* --- 10. STICKY TABLE OF CONTENTS --- */
.toc-container {
  background: #fffdf5;
  border: 1px solid #fef3c7;
  border-radius: 24px;
  padding: 2.5rem;
  position: sticky;
  top: 120px; /* Sticks on desktop scroll */
}

.toc-title {
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f59e0b;
}

.toc-list {
  list-style: none;
  padding: 0;
}
.toc-list li {
  margin-bottom: 1rem;
}
.toc-list a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  transition: 0.3s;
  display: block;
}
.toc-list a:hover {
  color: #f59e0b;
  transform: translateX(8px);
}

/* --- 11. CTA & NEWSLETTER (KINETIC SAFFRON) --- */
.cta-box {
  background: #fffbeb;
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 5rem;
  border: 2px dashed #fcd34d;
}

.newsletter-card {
  background: linear-gradient(135deg, #0f172a 0%, #f59e0b 50%, #7c2d12 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  border-radius: 40px;
  padding: 5rem 3rem;
  color: #fff;
}

/* --- 12. MASTER RESPONSIVE COMPATIBILITY --- */
@media (max-width: 1024px) {
  .article-container {
    margin: -4rem 1.5rem 0;
    padding: 2.5rem;
  }
  .gallery-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .toc-container {
    position: static;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .article-hero {
    height: 60vh;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .article-container {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .lead-text {
    font-size: 1.15rem;
  }
  .lead-text::first-letter {
    font-size: 3.5rem;
  }
}

/* --- 13. GPU ENGINE --- */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
