/* ============================================
   VIDA ELABORADA — Blog & Post styles
   Editorial typography. Cinematic feel.
   ============================================ */

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 31, 26, 0.85) 0%, rgba(20, 51, 43, 0.75) 100%),
    url('../img/electricity-ignites-vibrant-fantasy-exploding-abstract-galaxy-wallpaper-generated-by-ai.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 160px 0 100px;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(48, 186, 131, 0.25), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(20, 51, 43, 0.4), transparent 60%);
  pointer-events: none;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 31, 26, 0.5) 100%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.blog-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 24px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
}

.blog-hero p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  font-weight: 300;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-listing {
  padding: 120px 0 140px;
  background: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.blog-card-date {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 400;
}

.blog-card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 14px;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.blog-card:hover h2 {
  color: var(--color-primary);
}

.blog-card-body > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease;
  align-self: flex-start;
}

.blog-card:hover .blog-card-link {
  gap: 14px;
}

.blog-card-link svg {
  transition: transform 0.3s ease;
}

/* ============================================
   POST HERO
   ============================================ */
.post-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(15, 31, 26, 0.88) 0%, rgba(20, 51, 43, 0.78) 100%),
    url('../img/a6009ec12e79701d21e359bf0c66c003-300x208.jpg') center/cover no-repeat;
  padding: 160px 0 80px;
  overflow: hidden;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(48, 186, 131, 0.2), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(20, 51, 43, 0.5), transparent 60%);
  pointer-events: none;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 31, 26, 0.6) 100%);
  pointer-events: none;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}

.post-back:hover {
  color: var(--color-white);
  border-color: var(--color-primary);
  background: rgba(48, 186, 131, 0.12);
  transform: translateX(-3px);
}

.post-back svg {
  transition: transform 0.3s ease;
}

.post-back:hover svg {
  transform: translateX(-2px);
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
}

.post-hero-meta .blog-card-tag {
  background: rgba(48, 186, 131, 0.18);
  color: var(--color-primary);
  border: 1px solid rgba(48, 186, 131, 0.3);
}

.post-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

/* ============================================
   POST SECTION & LAYOUT
   ============================================ */
.post-section {
  padding: 100px 0 120px;
  background: var(--color-bg);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 80px;
  align-items: start;
}

/* ============================================
   POST CONTENT (article)
   ============================================ */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  min-width: 0;
}

.post-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.post-content > p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-text);
}

.post-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-dark);
  font-weight: 400;
}

.post-content > p strong {
  color: var(--color-dark);
  font-weight: 600;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin: 56px 0 24px;
  scroll-margin-top: 100px;
}

.post-content h2:first-of-type {
  margin-top: 32px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
  margin: 40px 0 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 32px 0;
  padding-left: 0;
  list-style: none;
}

.post-content ul li,
.post-content ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.post-content ol {
  counter-reset: post-counter;
}

.post-content ol li {
  counter-increment: post-counter;
}

.post-content ol li::before {
  content: counter(post-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-primary);
  line-height: 1.75;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(48, 186, 131, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.post-content a:hover {
  text-decoration-color: var(--color-primary);
}

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 8px 0 8px 32px;
  margin: 40px 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--color-dark);
}

/* ============================================
   POST TOC (Table of Contents)
   ============================================ */
.post-toc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin: 48px 0;
  box-shadow: var(--shadow-sm);
}

.post-toc h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-toc h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
}

.post-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: toc-counter;
}

.post-toc ol li {
  counter-increment: toc-counter;
  padding-left: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(212, 221, 217, 0.5);
}

.post-toc ol li::before {
  display: none;
}

.post-toc ol li:last-child {
  border-bottom: none;
}

.post-toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.post-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.post-toc ol li a:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

/* ============================================
   POST FAQ
   ============================================ */
.post-faq {
  margin: 64px 0 48px;
  padding: 48px;
  background: var(--color-dark-card);
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.post-faq h2 {
  color: var(--color-white) !important;
  font-size: clamp(26px, 2.8vw, 32px) !important;
  margin: 0 0 32px !important;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.3s ease;
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  padding: 24px 40px 24px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 300;
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 186, 131, 0.4);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item p {
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================
   POST SHARE
   ============================================ */
.post-share {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-share > span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.post-share-buttons,
.sidebar-share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn-facebook:hover {
  background: #1877f2;
  color: var(--color-white);
  border-color: #1877f2;
}

.share-btn-whatsapp:hover {
  background: #25d366;
  color: var(--color-white);
  border-color: #25d366;
}

/* ============================================
   POST SIDEBAR
   ============================================ */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-author,
.sidebar-share,
.sidebar-related {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

.sidebar-author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--color-primary-light);
}

.sidebar-author h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.sidebar-author p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-light);
  text-align: left;
}

.sidebar-share h4,
.sidebar-related h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-share h4::after,
.sidebar-related h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.sidebar-related-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.3s ease;
}

.sidebar-related-card:last-of-type {
  border-bottom: none;
}

.sidebar-related-card:hover {
  padding-left: 6px;
}

.sidebar-related-card img {
  width: 80px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sidebar-related-card span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-dark);
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-related-card:hover span {
  color: var(--color-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .post-sidebar {
    position: static;
  }

  .blog-listing {
    padding: 80px 0 100px;
  }

  .post-section {
    padding: 70px 0 90px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 380px;
    padding: 130px 0 70px;
    background-attachment: scroll;
  }

  .blog-hero h1 {
    font-size: clamp(38px, 9vw, 56px);
  }

  .post-hero {
    min-height: 380px;
    padding: 130px 0 60px;
  }

  .post-hero h1 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .blog-listing {
    padding: 60px 0 80px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-card-body {
    padding: 24px 24px 28px;
  }

  .blog-card h2 {
    font-size: 20px;
  }

  .post-section {
    padding: 50px 0 70px;
  }

  .post-content {
    font-size: 16px;
  }

  .post-content > p {
    font-size: 16px;
  }

  .post-content > p:first-of-type {
    font-size: 17px;
  }

  .post-featured-img {
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }

  .post-toc {
    padding: 24px 24px;
    margin: 36px 0;
  }

  .post-toc h3 {
    font-size: 18px;
  }

  .post-faq {
    padding: 32px 24px;
    margin: 48px 0 32px;
  }

  .faq-item summary {
    font-size: 16px;
    padding: 20px 36px 20px 0;
  }

  .sidebar-author,
  .sidebar-share,
  .sidebar-related {
    padding: 24px;
  }

  .post-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .blog-hero h1,
  .post-hero h1 {
    letter-spacing: -0.01em;
  }

  .post-content blockquote {
    font-size: 19px;
    padding-left: 20px;
  }
}
