/* Makale detay — makale-detay.html mockup */
.article-detail-page {
  --art-brand: #E6511D;
  --art-line: #e6e9f0;
  --art-muted: #667085;
  --art-blue: #2563eb;
  --al-brand: #E6511D;
  --al-line: #e6e9f0;
  --al-card: #fff;
  --al-soft: #eef1f6;
}

.dark .article-detail-page {
  --art-line: #374151;
  --art-muted: #9ca3af;
  --al-line: #374151;
  --al-card: #1f2937;
  --al-soft: #374151;
}

.article-detail-page .art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
}

.article-detail-page .art-shell {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.06);
}

.dark .article-detail-page .art-shell {
  background: rgb(31 41 55);
  border-color: rgb(55 65 81);
}

.article-detail-page .art-hero-img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  display: block;
}

.article-detail-page .art-head {
  padding: 28px 32px 18px;
}

.article-detail-page .art-breadcrumb-wrap {
  margin-bottom: 16px;
}

.article-detail-page .art-breadcrumb-wrap nav[aria-label="breadcrumb"] ol {
  margin: 0;
  padding: 0;
}

.article-detail-page .art-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 9px;
  background: #fff2ec;
  color: var(--art-brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.dark .article-detail-page .art-badge {
  background: rgba(230, 81, 29, 0.15);
}

.article-detail-page .art-title {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  font-weight: 800;
}

.article-detail-page .art-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  color: var(--art-muted);
  font-size: 13px;
}

.article-detail-page .art-meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.article-detail-page .art-meta-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.article-detail-page .art-meta-actions .article-actions {
  position: static;
  pointer-events: auto;
}

.article-detail-page .art-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.article-detail-page .art-meta-author:hover strong {
  color: var(--art-brand);
}

.article-detail-page .art-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffe7dd;
}

.article-detail-page .art-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #c2410c;
}

.article-detail-page .art-avatar-initial-lg {
  width: 96px;
  height: 96px;
  font-size: 28px;
  margin-bottom: 12px;
}

.article-detail-page .art-meta-author strong {
  display: block;
  color: #1f2937;
  font-size: 13px;
}

.dark .article-detail-page .art-meta-author strong {
  color: #f3f4f6;
}

.article-detail-page .art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-detail-page .art-toc {
  margin: 24px 32px 0;
  background: linear-gradient(135deg, #f7f8ff 0%, #fff 100%);
  border: 1px solid #dfe4f2;
  border-radius: 14px;
  padding: 20px 22px;
}

.dark .article-detail-page .art-toc {
  background: linear-gradient(135deg, rgb(30 41 59) 0%, rgb(31 41 55) 100%);
  border-color: rgb(55 65 81);
}

.article-detail-page .art-toc h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.article-detail-page .art-toc ol {
  margin: 0;
  padding-left: 22px;
  line-height: 2;
}

.article-detail-page .art-toc a {
  color: inherit;
  text-decoration: none;
}

.article-detail-page .art-toc a:hover {
  color: var(--art-brand);
}

.article-detail-page .art-content {
  padding: 28px 32px 40px;
}

.article-detail-page .article-body p {
  margin: 0 0 1.15em;
}

.article-detail-page .article-body p:last-child {
  margin-bottom: 0;
}

.article-detail-page .art-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 26px;
}

.article-detail-page .art-side-card {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
  padding: 22px;
}

.dark .article-detail-page .art-side-card {
  background: rgb(31 41 55);
  border-color: rgb(55 65 81);
}

.article-detail-page .art-author-card {
  text-align: center;
}

.article-detail-page .art-author-card img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
}

.article-detail-page .art-author-role {
  color: var(--art-muted);
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 14px;
}

.article-detail-page .art-author-bio {
  color: #475467;
  line-height: 1.6;
  margin: 0 auto 16px;
  font-size: 14px;
  max-width: 240px;
}

.dark .article-detail-page .art-mini-post img {
  background: #374151;
}

.dark .article-detail-page .art-mini-post h4 {
  color: #f9fafb;
}

.dark .article-detail-page .art-side-title {
  color: #f9fafb;
}

.dark .article-detail-page .art-author-role {
  color: #9ca3af;
}

.dark .article-detail-page .art-author-bio {
  color: #d1d5db;
}

.article-detail-page .art-social-mini {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-bottom: 18px;
}

.article-detail-page .art-social-mini a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--art-blue);
}

.article-detail-page .art-outline-btn {
  height: 44px;
  border: 1px solid #ffd2c1;
  border-radius: 10px;
  color: var(--art-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  background: #fff;
  text-decoration: none;
}

.article-detail-page .art-outline-btn-authors {
  border-color: #ffd2c1;
  color: var(--art-brand);
  font-weight: 800;
}

.article-detail-page .art-outline-btn-authors:hover {
  border-color: var(--art-brand);
  background: #fff7f3;
}

.dark .article-detail-page .art-outline-btn-authors {
  border-color: rgba(249, 115, 22, 0.45);
  color: #fb923c;
  background: transparent;
}

.dark .article-detail-page .art-outline-btn-authors:hover {
  background: rgba(249, 115, 22, 0.12);
}

.article-detail-page .art-outline-btn-authors.mt-3 {
  margin-top: 12px;
}

.dark .article-detail-page .art-outline-btn {
  background: transparent;
}

.article-detail-page .art-side-title {
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 700;
}

.article-detail-page .art-mini-list {
  display: grid;
  gap: 14px;
}

.article-detail-page .art-mini-post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.article-detail-page .art-mini-post img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1f6;
}

.article-detail-page .art-mini-post h4 {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.article-detail-page .art-mini-post span {
  font-size: 12px;
  color: var(--art-muted);
}

.article-detail-page .art-newsletter {
  text-align: center;
  background: linear-gradient(135deg, #fbfbff 0%, #fff7f2 100%);
}

.dark .article-detail-page .art-newsletter {
  background: linear-gradient(135deg, rgb(30 41 59) 0%, rgb(55 48 40) 100%);
}

.article-detail-page .art-mail-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--art-blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.article-detail-page .art-newsletter-message {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.article-detail-page .art-newsletter-message.is-success {
  color: #16a34a;
}

.article-detail-page .art-newsletter-message.is-error {
  color: #dc2626;
}

.dark .article-detail-page .art-newsletter-message.is-success {
  color: #4ade80;
}

.dark .article-detail-page .art-newsletter-message.is-error {
  color: #f87171;
}

.article-detail-page .art-related {
  margin-top: 32px;
  border-top: 1px solid var(--art-line);
  padding-top: 26px;
}

.article-detail-page .art-related .blog-article-list {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .article-detail-page .art-layout {
    grid-template-columns: 1fr;
  }
  .article-detail-page .art-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .article-detail-page .art-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .article-detail-page .art-head,
  .article-detail-page .art-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-detail-page .art-toc {
    margin-left: 20px;
    margin-right: 20px;
  }
  .article-detail-page .art-meta-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .article-detail-page .art-sidebar {
    grid-template-columns: 1fr;
  }
  .article-detail-page .art-newsletter {
    grid-column: auto;
  }
}
