/* ==========================================================
   🌸 LAFZIA READING PAGE STYLES — FINAL POLISHED
   ========================================================== */

.read-page {
  background-color: #fffdf8;
  color: #3a2d23;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.7;
}

.read-page .container {
  max-width: 1080px;
}

/* ---------------- TAGS ---------------- */

.read-tags {
  margin-bottom: 0.6rem;
}

.tag-btn {
  display: inline-block;
  border: 1px solid #c8bba3;
  border-radius: 20px;
  padding: 4px 14px;
  margin-right: 6px;
  font-size: 0.8rem;
  background: #fffaf5;
  color: #6b4e2f;
  font-style: italic;
}

.tag-btn-small {
  font-size: 0.7rem;
  padding: 3px 10px;
}

/* ---------------- TITLE & AUTHOR ---------------- */

.submission-title {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.35;
  color: #d64b3b;
  margin: 0.4rem 0 0.6rem;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d7c7a3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.author-meta {
  font-size: 0.85rem;
  color: #8a7a66;
}

.author-name {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
}

.author-meta .sep {
  margin: 0 6px;
}

/* ---------------- SUBJECT IMAGE ---------------- */

.subject-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.6rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* ---------------- CONTENT ---------------- */

.read-divider {
  border: none;
  border-top: 1px solid #eee0c8;
  margin: 1.4rem 0;
}

.submission-body {
  font-size: 1.02rem;
  line-height: 1.85;
  text-align: justify;
  margin-bottom: 2.5rem;
}

/* ---------------- SIDEBAR ---------------- */

.related-box {
  background: #fdf8f3;
  border: 1px solid #e7d9c8;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.2rem;
}

.related-heading-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.6rem;
}

.more-text {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4b3a2a;
}

.related-row {
  padding: 6px 0;
}

.related-title {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d64b3b;
  text-decoration: none;
}

.related-title:hover {
  text-decoration: underline;
}

/* ---------------- COMMENTS ---------------- */

.comments-section {
  margin-top: 3rem;
  max-width: 720px;
  width: 100%;
  clear: both;
}

.comments-heading {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* New comment input */
.comment-input {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}

.comment-input form {
  flex: 1;
}

.comment-input input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d7c7a3;
  padding: 8px 4px;
  font-size: 0.95rem;
  background: transparent;
}

.comment-input input:focus {
  outline: none;
  border-color: #d64b3b;
}

.comment-actions {
  margin-top: 6px;
  text-align: right;
}

.comment-actions button {
  border: none;
  background: #d64b3b;
  color: #fff;
  border-radius: 18px;
  padding: 4px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Comment item */
.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1.6rem;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  font-size: 0.85rem;
  color: #6d5c4b;
}

.comment-meta span {
  margin-left: 6px;
}

.comment-text {
  font-size: 0.95rem;
  margin: 4px 0 6px;
}

.comment-footer {
  font-size: 0.8rem;
}

.comment-footer a {
  margin-right: 12px;
  text-decoration: none;
  color: #777;
}

.comment-footer a:hover {
  color: #d64b3b;
}

/* Replies */
.comment-item.reply {
  margin-left: 3rem;
  padding-left: 1rem;
  border-left: 2px solid #eee0c8;
}

.reply-form {
  margin-top: 6px;
}

.reply-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d7c7a3;
  background: transparent;
  font-size: 0.9rem;
  padding: 4px;
}

.reply-form button {
  margin-top: 4px;
  border: none;
  background: #d64b3b;
  color: #fff;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ---------------- MORE FROM AUTHOR ---------------- */

.author-more-editorial {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #eee0c8;
}

.author-more-heading {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.author-post-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid #eadfce;
}
.author-post-text {
    flex: 1;
}

.author-post-date {
  font-size: 0.8rem;
  color: #9c7c5c;
}

.author-post-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.3rem;
    color: #2c2c2c;
    text-decoration: none;
}
.author-post-title:hover {
    text-decoration: underline;
}
.author-post-excerpt {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: #555;
}

.author-post-image img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}
/* STRICTLY limit comment avatars */
.comments-section .comment-avatar {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.like-btn {
  color: #777;
  font-size: 0.8rem;
}

.like-btn.liked {
  color: #d64b3b;
  font-weight: 600;
}

.like-count {
  margin-left: 2px;
}
.comment-mod {
  display: inline-flex;
  gap: 8px;
  margin-left: 10px;
}

.comment-mod button {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: #999;
  cursor: pointer;
}

.comment-mod .danger {
  color: #c0392b;
}

.comment-hidden {
  font-style: italic;
  font-size: 0.85rem;
  color: #999;
}

.comments-empty {
    padding: 2rem 1rem;
    border: 1px dashed #e2d6c5;
    border-radius: 10px;
    background: #fffaf3;
    margin: 1.5rem 0;
    text-align: center;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b4b2a;
}

.empty-sub {
    font-size: 0.95rem;
    color: #7a6a58;
    margin-top: 4px;
}
.response-count {
    font-size: 0.9rem;
    color: #8a7a66;
    margin-top: 6px;
}
.login-note {
    font-size: 0.95rem;
    color: #7b6a55;
    background: #fffaf3;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.author-header {
    background: linear-gradient(120deg, #fdeee4, #fff7f2);
    padding: 4rem 0 3.5rem;
}

.author-page-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.author-tagline {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: #7a5c44;
}
.author-page-name {
    font-size: 2rem;
    font-weight: 600;
}

.author-bio {
    font-size: 16px;
    color: #555;
    max-width: 500px;
}

.author-hero {
    background: #fde7d9;
    min-height: 240px;              /* strip ki height */
    display: flex;
    align-items: center;            /* 👈 VERTICALLY CENTER */
}
.author-header-inner {
    display: flex;
    align-items: center;   /* image + text ek line me center */
    gap: 2.5rem;
    padding: 0 2rem;
}
.author-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.author-info h1 {
    font-size: 2.3rem;
    margin: 0 0 0.2rem 0;   /* bottom breathing space */
    font-weight: 600;
    color: #3a2d23;
    line-height: 1.2;
}
.author-meta h1 {
    font-size: 42px;
    margin-bottom: 10px;
}
.author-posts {
    padding: 3rem 0;
}
.author-posts-heading {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}
.section-title {
    font-size: 28px;
    margin-bottom: 40px;
}

.author-post-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.author-post-item h3 {
    margin: 10px 0;
}

.author-post-item a {
    color: #222;
    text-decoration: none;
}

.author-post-item a:hover {
    color: #c14d2a;
}
.post-meta {
    font-size: 13px;
    color: #999;
}
.author-info {
   display: flex;
    flex-direction: column;
    justify-content: center; /* vertical alignment with image */
    padding-left: 6rem;    /* subtle left spacing */
}
/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 991px) {
  .subject-img {
    height: 220px;
  }
}

@media (max-width: 575px) {
  .submission-title {
    font-size: 1.6rem;
  }

  .comment-item.reply {
    margin-left: 1.5rem;
  }
}
