/* ==========================================================================
   Apple Web Design System Blog Style for DAS
   Author: Antigravity AI
   ========================================================================== */

/* Blog Header */
.blog-header {
  position: relative;
  margin-top: 72px !important;
}

.blog-header-bg {
  background-color: var(--colors-surface-tile-1);
  color: var(--colors-body-on-dark);
  padding: 64px 24px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--colors-body-muted);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 24px;
  color: #ffffff;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--colors-body-muted);
  margin-top: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  font-size: 16px;
}

/* Blog Content */
.blog-content {
  padding: 64px 24px;
  background-color: var(--colors-canvas);
  color: var(--colors-ink);
}

.blog-featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--rounded-lg);
  box-shadow: var(--product-shadow);
  margin-bottom: 40px;
}

/* Article Body */
.blog-article {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--colors-ink);
}

.blog-intro {
  font-size: 21px;
  line-height: 1.38;
  font-weight: 600;
  color: var(--colors-primary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--colors-hairline);
}

.blog-article p {
  margin-bottom: 24px;
  text-align: justify;
}

.blog-subheading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--colors-hairline);
}

/* Lists */
.blog-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 32px;
}

.blog-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 17px;
}

.blog-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--colors-primary);
  font-weight: bold;
  font-size: 18px;
}

.blog-numbered {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 32px;
}

.blog-numbered li {
  margin-bottom: 12px;
  line-height: 1.47;
}

/* Quote */
.blog-quote {
  margin: 40px 0;
  padding: 24px;
  border-left: 4px solid var(--colors-primary);
  background-color: var(--colors-canvas-parchment);
  border-radius: var(--rounded-sm);
  font-style: italic;
  color: var(--colors-ink-muted-80);
}

.blog-quote blockquote {
  margin: 0;
  font-weight: 400;
}

/* Author Bio */
.author-bio {
  background-color: var(--colors-canvas-parchment);
  padding: 32px;
  border-radius: var(--rounded-lg);
  margin-top: 64px;
  border: 1px solid var(--colors-hairline);
}

.author-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--colors-hairline);
}

.author-bio h5 {
  color: var(--colors-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 4px;
}

/* Related Posts */
.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--colors-hairline);
}

.related-posts h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-bottom: 32px;
}

.related-post-link {
  text-decoration: none !important;
  color: inherit;
}

.related-post-link .card {
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
}

.related-post-link:hover .card {
  transform: translateY(-4px);
}

.related-post-link .card-img-top {
  height: 180px;
  object-fit: cover;
}

.related-post-link .card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.24;
  color: var(--colors-ink);
  margin-bottom: 8px;
}

.related-post-link .card-text {
  font-size: 14px;
  color: var(--colors-ink-muted-80);
}

/* CTA Section */
.cta-section {
  text-align: center;
  background-color: var(--colors-surface-tile-1) !important;
  color: var(--colors-body-on-dark) !important;
  padding: 48px 32px !important;
  border-radius: var(--rounded-lg) !important;
  margin-top: 64px;
}

.cta-section h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--colors-body-muted);
  margin-bottom: 24px;
}

/* Standard Gutenberg overrides inside blog content */
.blog-article h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--colors-hairline);
}

.blog-article h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-article ul:not(.blog-list),
.blog-article ol:not(.blog-list) {
  margin-bottom: 32px;
  padding-left: 20px;
}

.blog-article ul:not(.blog-list) li,
.blog-article ol:not(.blog-list) li {
  margin-bottom: 12px;
  line-height: 1.47;
}

.blog-article blockquote {
  margin: 40px 0;
  padding: 24px;
  border-left: 4px solid var(--colors-primary);
  background-color: var(--colors-canvas-parchment);
  border-radius: var(--rounded-sm);
  font-style: italic;
  color: var(--colors-ink-muted-80);
}

.blog-article blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rounded-lg);
  box-shadow: var(--product-shadow);
}

/* Print Overrides */
@media print {
  .breadcrumb-link,
  .related-posts,
  .cta-section,
  .floating-whatsapp,
  header,
  footer {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .blog-title {
    font-size: 28px;
  }

  .blog-header-bg {
    padding: 40px 16px;
  }

  .blog-content {
    padding: 40px 16px;
  }

  .author-bio {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    margin: 0 auto 16px;
  }
}
