/* ============================================
   BAZM-E-BME - Blog Detail Styles
   ============================================ */

/* ============================================
   ARTICLE HEADER SECTION
   ============================================ */
.article-header-section {
  position: relative;
  background: var(--gradient-navy);
  padding: 140px 24px 80px;
  overflow: hidden;
}

.article-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header-gradient {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(201, 162, 39, 0.15), transparent);
  opacity: 0.5;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--gray-400);
  position: relative;
  z-index: 2;
}

.article-breadcrumb a {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--gold);
}

.article-breadcrumb i {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.article-breadcrumb span {
  color: var(--gold-light);
}

.article-header-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.article-tags-top {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 6px 16px;
  background: rgba(201, 162, 39, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 32px;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.author-info-detail {
  display: flex;
  flex-direction: column;
}

.author-name-large {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.author-position-small {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.article-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.article-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.article-stat-item i {
  color: var(--gold);
}

.article-share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ============================================
   ARTICLE CONTENT SECTION
   ============================================ */
.article-content-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Main Article Content */
.article-main-content {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article-featured-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 60px;
  color: var(--gray-700);
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  margin: 48px 0 24px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 36px 0 20px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
  margin: 24px 0;
  padding-left: 32px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 20px 32px;
  margin: 32px 0;
  background: var(--gray-50);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--gray-600);
}

.article-body img {
  width: 100%;
  border-radius: 16px;
  margin: 32px 0;
}

.article-body a {
  color: var(--gold-dark);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-body a:hover {
  color: var(--navy);
}

/* Article Footer */
.article-footer {
  padding: 40px 60px;
  border-top: 2px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.article-footer-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tags-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-tag {
  padding: 6px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-tag:hover {
  background: var(--navy);
  color: var(--white);
}

.article-footer-share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-share-buttons {
  display: flex;
  gap: 10px;
}

.footer-share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 10px;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.footer-share-btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 24px;
  padding: 40px 60px;
  margin: 0 60px 60px;
  background: var(--gray-50);
  border-radius: 20px;
  border: 2px solid var(--gray-200);
}

.author-bio-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  flex-shrink: 0;
}

.author-bio-content {
  flex: 1;
}

.author-bio-name {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.author-bio-position {
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.author-bio-description {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.author-bio-social {
  display: flex;
  gap: 10px;
}

.author-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 8px;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.author-social-link:hover {
  background: var(--navy);
  color: var(--white);
}

/* Article Navigation */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 60px 60px;
}

.article-nav-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.article-nav-btn:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-nav-btn i {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

/* ============================================
   SIDEBAR
   ============================================ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

.sidebar-card-title i {
  color: var(--gold);
}

/* Table of Contents */
.toc-card {
  position: sticky;
  top: 120px;
}

.table-of-contents {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-link {
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 0.95rem;
  border-left: 3px solid var(--gray-200);
  transition: all 0.3s ease;
}

.toc-link:hover {
  color: var(--navy);
  border-left-color: var(--gold);
  background: var(--gray-50);
  padding-left: 20px;
}

.toc-link.active {
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--gold);
  background: var(--gray-50);
}

/* Related Articles */
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.related-article-item:hover {
  background: var(--gray-100);
  transform: translateX(4px);
}

.related-article-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.related-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-article-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.related-article-title {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--gradient-navy);
  text-align: center;
}

.newsletter-widget-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 auto 20px;
}

.newsletter-widget-title {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.newsletter-widget-text {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-widget-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-widget-form input {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-widget-form input::placeholder {
  color: var(--gray-400);
}

.newsletter-widget-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-widget-form button {
  padding: 14px;
  background: var(--gradient-gold);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-widget-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud-item {
  padding: 8px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-cloud-item:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   MORE ARTICLES SECTION
   ============================================ */
.more-articles-section {
  padding: 80px 0;
  background: var(--white);
}

.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-head-inline h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--navy);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.view-all-link:hover {
  gap: 12px;
  color: var(--navy);
}

.more-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.more-article-card {
  background: var(--gray-50);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.more-article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

.more-article-image {
  height: 200px;
  overflow: hidden;
}

.more-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.more-article-card:hover .more-article-image img {
  transform: scale(1.08);
}

.more-article-content {
  padding: 24px;
}

.more-article-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  display: block;
}

.more-article-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.more-article-title a {
  color: inherit;
  transition: color 0.3s ease;
}

.more-article-title a:hover {
  color: var(--gold-dark);
}

.more-article-excerpt {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.more-article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.more-article-link:hover {
  gap: 10px;
  color: var(--navy);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    grid-row: 2;
  }

  .toc-card {
    position: relative;
    top: 0;
  }

  .more-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-header-section {
    padding: 120px 16px 60px;
  }

  .article-main-title {
    font-size: 2rem;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-featured-image {
    height: 300px;
  }

  .article-body {
    padding: 40px 24px;
  }

  .article-footer {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .author-bio-card {
    flex-direction: column;
    text-align: center;
    margin: 0 24px 40px;
    padding: 32px 24px;
  }

  .author-bio-avatar {
    margin: 0 auto;
  }

  .author-bio-social {
    justify-content: center;
  }

  .article-navigation {
    grid-template-columns: 1fr;
    padding: 0 24px 40px;
  }

  .more-articles-grid {
    grid-template-columns: 1fr;
  }

  .section-head-inline h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .article-main-title {
    font-size: 1.6rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .sidebar-card {
    padding: 24px;
  }
}