/* گرید پست‌های وبلاگ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: #101010 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card .cat-label {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-card h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card .excerpt {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.9;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* صفحه‌ی جزئیات پست */
.post-detail-header {
  margin-bottom: 24px;
}

.post-detail-header .cat-label {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-detail-header h1 {
  color: #fff;
  font-size: 26px;
  margin: 10px 0 14px;
  line-height: 1.7;
}

.post-detail-thumb {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--black2);
  border: 1px solid rgba(212, 175, 55, 0.18);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.post-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  color: #d6d0c4;
  line-height: 2.1;
  font-size: 15px;
  max-width: 800px;
}

/* استایل خروجی HTML ویرایشگر Quill */
.rich-content h1,
.rich-content h2,
.rich-content h3 {
  color: #fff;
  margin: 28px 0 14px;
  line-height: 1.7;
}

.rich-content p {
  margin: 0 0 16px;
}

.rich-content a {
  color: var(--gold);
  text-decoration: underline;
}

.rich-content strong {
  color: #fff;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 16px;
  padding-right: 24px;
}

.rich-content li {
  margin-bottom: 8px;
}

.rich-content blockquote {
  border-right: 3px solid var(--gold);
  padding: 4px 18px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
}

.rich-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}

/* بخش نظرات */
.comments-section {
  max-width: 800px;
  margin-top: 50px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 30px;
}

.comments-section h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 22px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-body .comment-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.comment-body .comment-date {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.comment-body .comment-text {
  color: #d6d0c4;
  font-size: 13px;
  line-height: 1.9;
}

.comment-form {
  margin-top: 26px;
}

.comment-form textarea {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-login-cta {
  background: var(--black2);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.comment-login-cta a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}
