/*
 * Single post specific styles
 */
.dtheme-article {
  margin-top: 20px;
}

.dtheme-single-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
}

.dtheme-single-sidebar .widget {
  border: 1px solid #e4e4e4;
  padding: 12px;
  margin-bottom: 16px;
  background: #ffffff;
}

@media (max-width: 960px) {
  .dtheme-single-row {
    grid-template-columns: 1fr;
  }

  .dtheme-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dtheme-single-row {
    grid-template-columns: 1fr;
  }

  .dtheme-article-hero img {
    height: 260px;
  }

  .dtheme-related-grid {
    grid-template-columns: 1fr;
  }
}

.dtheme-article-hero {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.dtheme-article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.dtheme-article-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dtheme-article-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
}

.dtheme-article-breadcrumb .sep {
  color: #9ca3af;
}

.dtheme-article-headline-strip {
  background: var(--dtheme-primary);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 6px 6px 0 0;
}

.dtheme-article-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
}

.dtheme-article-meta-bar {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px solid #ececec;
  border-radius: 0 0 6px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.dtheme-article-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
}

.dtheme-article-meta-left .sep {
  color: #9ca3af;
}

.dtheme-article-meta-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dtheme-article-content {
  margin-top: 16px;
  line-height: 1.6;
  font-size: 16px;
}

.dtheme-article img {
  max-width: 100%;
  height: auto;
}

.dtheme-share-label {
  font-weight: 600;
  color: #222222;
}

.dtheme-share-btn {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
}

.dtheme-share-btn.twitter { background: #1da1f2; }
.dtheme-share-btn.facebook { background: #1877f2; }
.dtheme-share-btn.whatsapp { background: #25d366; }
.dtheme-share-btn.reddit { background: #ff4500; }
.dtheme-share-btn.pinterest { background: #e60023; }

.dtheme-article-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dtheme-article-nav a {
  display: block;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 4px;
  font-weight: 600;
  color: #111111;
}

.dtheme-related {
  margin-top: 32px;
}

.dtheme-related h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.dtheme-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dtheme-related-card {
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.dtheme-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.dtheme-related-body {
  padding: 10px 12px 14px;
}

.dtheme-related-meta {
  font-size: 12px;
  color: #999999;
  margin-bottom: 6px;
}

.dtheme-related-body h3 {
  font-size: 15px;
  margin: 0;
  color: #111111;
}

.dtheme-comments {
  margin-top: 32px;
  border-top: 2px solid #ececec;
  padding-top: 24px;
}

.dtheme-comments .comment-form input,
.dtheme-comments .comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.dtheme-comments .comment-form input[type="submit"] {
  width: auto;
  cursor: pointer;
  background: var(--dtheme-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .dtheme-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dtheme-article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dtheme-article-hero img {
    height: 260px;
  }

  .dtheme-related-grid {
    grid-template-columns: 1fr;
  }
}
