/* ========== Comments: containers ========== */
.gh-comments-card {
  /* background: #111216; */
  border: 1px solid #232327;
  border-radius: 12px;
  overflow: hidden;
}

.gh-comments-header {
  /* background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0)); */
  border-bottom: 1px solid #1f1f22;
}

/* Each comment row as a mini "item" with subtle hover */
.gh-comment-row {
  border-top: 1px solid #1b1b1f;
}
.gh-comment-row:first-child {
  border-top: none;
}
.gh-comment-row:hover {
  background: rgba(255,255,255,0.02);
}

/* Text + author */
.gh-author-link {
  color: #ffd740;              /* your green accent */
  font-weight: 500;
}
.gh-author-link:hover { text-decoration: underline; }

.gh-comment-text {
  color: #c7c7c9;
  line-height: 1.35;
  margin-top: 2px;
}

/* Delete button */
.gh-delete-btn {
  color: #e35a5a !important;
  padding: 0;
}
.gh-delete-btn:hover { opacity: 0.9; }

/* Comment form card (above list) */
.gh-comment-form-card {
  /* background: #151517; */
  border: 1px solid #232327;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

/* Dark input */
.gh-input-dark {
  background: #101012 !important;
  color: #e9e9ea !important;
  border: 1px solid #2a2a2f !important;
  box-shadow: none !important;
  resize: vertical;
}
.gh-input-dark::placeholder { color: #7d7d85; }
.gh-input-dark:focus {
  /* border-color: #ffd740 !important;         yellow focus ring */
  outline: 0;
}

/* Make the card containing the post + comments look cohesive on dark */
.gh-post-card,
.gh-comment-form-card,
.gh-comments-card {
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}




/* Scope everything to the delete comment modal */
#commentDeleteModal .modal-content {
  /* background-color: #101014;       dark background (GH style) */
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;                  /* text color */
}

#commentDeleteModal .modal-header,
#commentDeleteModal .modal-body,
#commentDeleteModal .modal-footer {
  background-color: transparent;
  color: #c7c7c9;
  border: none;
}

#commentDeleteModal .modal-title {
  color: #c7c7c9;                  /* YOUR GOLD COLOR */
}

/* Close button */
#commentDeleteModal .btn-close {
  filter: invert(1);               /* makes it white on dark bg */
}

/* Cancel button */
#commentDeleteModal .btn-outline-secondary {
  border-color: #FFDF00;
  color: #FFDF00;
}

#commentDeleteModal .btn-outline-secondary:hover {
  background-color: #FFDF00;
  color: #000;
}

/* Delete button */
#commentDeleteModal .btn-danger {
  background-color: #d9534f;       /* Bootstrap red, optional */
  border-color: #d9534f;
}

#commentDeleteModal .btn-danger:hover {
  background-color: #c9302c;
  border-color: #ac2925;
}



/* =========================
   Mobile readability upgrades
   ========================= */
@media (max-width: 767.98px) {

  /* Base text: slightly larger + higher contrast */
  .post-card,
  .comment-card,
  .comments-card {
    font-size: 0.98rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
  }

  /* Post body / content text */
  .post-card p,
  .post-card .post-body,
  .post-card .post-text {
    font-size: 1rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.90);
  }

  /* Secondary/meta text (time, “posted by”, etc.) */
  .post-card .text-secondary,
  .comment-card .text-secondary,
  .comment-meta,
  .comment-time {
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 0.85rem;
  }

  /* Headings like "Comments (2)" */
  .comments-title,
  .comments-card h3,
  .comments-card h4 {
    font-size: 1.05rem;
    letter-spacing: 0.2px;
  }
}


@media (max-width: 767.98px) {
  .comment-time,
  .comment-meta time,
  .comment-meta .timesince {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5rem; /* adjust if needed */
    display: inline-block;
    vertical-align: middle;
  }
}


@media (max-width: 767.98px) {
  .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .comment-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0; /* allows truncation */
  }

  .comment-username {
    font-weight: 700;
    color: #FFDF00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
  }

  .comment-header-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
  }

  .comment-delete {
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
  }
}


@media (max-width: 767.98px) {
  .comment-form {
    display: flex;
    gap: 0.6rem;
  }

  .comment-form input[type="text"],
  .comment-form textarea {
    min-height: 46px;
    font-size: 1rem;
  }

  .comment-form button {
    min-height: 46px;
    padding: 0 1rem;
    font-weight: 700;
  }
}


/* =========================
   Post width control
   ========================= */

/* Desktop: keep your current nice centered width */
@media (min-width: 769px) {
  .gh-post-container {
    max-width: 100%;
  }
}

/* Tablet: slightly wider */


/* Mobile: FULL WIDTH (this fixes your issue) */
@media (max-width: 767.98px) {
  .gh-post-container {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}