/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */

/* ---------- Comment avatar ---------- */
.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

.comment-author.vcard {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Flash message ---------- */
.comment-flash {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.comment-flash.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: #ef4444;
}

/* ---------- Comment form improvements ---------- */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.comment-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

.comment-form .form-submit input.submit {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}

.comment-form .form-submit input.submit:hover {
  background: #a93226;
}

/* ---------- Content HTML rendered from TinyMCE ---------- */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.article-content h2 { font-size: 24px; margin: 24px 0 12px; }
.article-content h3 { font-size: 20px; margin: 20px 0 10px; }
.article-content h4 { font-size: 18px; margin: 18px 0 8px; }
.article-content p  { margin: 14px 0; }
.article-content ul,
.article-content ol { padding-left: 24px; margin: 14px 0; }
.article-content li { margin-bottom: 6px; }
.article-content a  { color: #c0392b; }
.article-content blockquote {
  border-left: 4px solid #c0392b;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f8fafc;
  color: #475569;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.article-content table th,
.article-content table td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
}
.article-content table th {
  background: #f8fafc;
}

/* ---------- iframe (YouTube embeds) responsive ---------- */
.article-content iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}