
/*
|--------------------------------------------------------------------------
| BibleLink tooltip — live light and dark theme
|--------------------------------------------------------------------------
|
| The plugin's default tooltip class is reference-tooltip.
| These rules allow the tooltip to follow the website theme instantly
| without reloading the article or rerunning the external plugin.
|
*/

html[data-bible-link-theme="light"]
.reference-tooltip {
    color-scheme: light;
    border-color: #d7d7d7 !important;
    background-color: #ffffff !important;
    color: #c6c6c6 !important;
    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.16) !important;
}

html[data-bible-link-theme="dark"]
.reference-tooltip {
    color-scheme: dark;
    border-color: #4a4a4a !important;
    background-color: #333333 !important;
    color: #f3f3f3 !important;
    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.45) !important;
}

/*
 * Ensure ordinary tooltip text follows the active theme,
 * including content inserted by BibleLink after an API request.
 */

html[data-bible-link-theme="light"]
.reference-tooltip p,
html[data-bible-link-theme="light"]
.reference-tooltip span,
html[data-bible-link-theme="light"]
.reference-tooltip div,
html[data-bible-link-theme="light"]
.reference-tooltip strong,
html[data-bible-link-theme="light"]
.reference-tooltip em,
html[data-bible-link-theme="light"]
.reference-tooltip small,
html[data-bible-link-theme="light"]
.reference-tooltip button {
    color: #222222 !important;
}

html[data-bible-link-theme="dark"]
.reference-tooltip p,
html[data-bible-link-theme="dark"]
.reference-tooltip span,
html[data-bible-link-theme="dark"]
.reference-tooltip div,
html[data-bible-link-theme="dark"]
.reference-tooltip strong,
html[data-bible-link-theme="dark"]
.reference-tooltip em,
html[data-bible-link-theme="dark"]
.reference-tooltip small,
html[data-bible-link-theme="dark"]
.reference-tooltip button {
    color: #f3f3f3 !important;
}

/*
 * Keep BibleLink actions and links in the Word Intelligence green.
 */

html[data-bible-link-theme="light"]
.reference-tooltip a,
html[data-bible-link-theme="dark"]
.reference-tooltip a {
    color: #6fc01e !important;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.image-download {
  background: var(--bg-color);
  border-radius: 10px;
  align-items: center;
  gap: 20px;
}

.cover-image {
  flex: 1;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.image-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.download-image, .share-image {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

/* .download-image, .share-image a { 
  padding: 10px 20px;
} */


.download-image {
  background: var(--button-color);
  color: white;
  padding: 9px 10px;
  text-decoration: none;
}

.share-image {
  color: var(--text-color);
  border: 1px solid #8b8b8b9a;
  padding: 9px 19px;
}

.share-image a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0px;
}

.svg-icon {
  color: var(--text-color-inverse);
}

.pagination-article {
  margin: 17px 0 0 0;
  justify-content: space-between;
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.dark-mode .pagination-article {
  border-color: #444;
}


.pagination {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.pagination-scroll-left, .pagination-scroll-right {
  padding: 10px 20px;
  border: none;
  background: var(--card-bg);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.pagination-scroll-right {
      padding: 10px 27.5px;
}

.pagination-scroll-left:disabled, .pagination-scroll-right:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dark mode styles */
.dark-mode .image-download {
  background: var(--bg-color);
}

.dark-mode .download-image {
  background: #fff;
  color: #000;
}

.dark-mode .share-image {
  background: #44444400;
}

.dark-mode .share-image a {
  color: white;
}

.dark-mode .pagination-scroll-left,
.dark-mode .pagination-scroll-right {
  color: white;
}

.dark-mode .pagination {
  border-color: #444;
}

.verify-to-comment,
.login-to-comment {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
}

.verify-to-comment h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.verify-to-comment p,
.login-to-comment p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.verify-email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 17px;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.verify-email-button:hover {
    background: #f9a825;
    color: #111111;
}

.login-to-comment a {
    color: #ffb534;
    font-weight: 600;
}

.dark-mode .verify-to-comment,
.dark-mode .login-to-comment {
    border-color: #444444;
    background: var(--bg-color);
}

.dark-mode .verify-email-button {
    background: #f5f5f5;
    color: #111111;
}

/*
|--------------------------------------------------------------------------
| Redesigned comments
|--------------------------------------------------------------------------
*/

.comment-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| Empty comment list
|--------------------------------------------------------------------------
|
| The textarea itself now carries the invitation to make
| the first comment, so no empty-state display space is needed.
|
*/

.comment-list--empty {
    margin-top: 0;
    padding-bottom: 0;
}

.comment-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 12px;
    padding: 2rem 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(170, 170, 170, 0.424);
}

.comment-card--pending {
    border: 1px solid #9acaa4;
    border-radius: 12px;
    background: var(--bg-primary);
}

.comment-avatar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1;

    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8e8e8;
    color: #333333;
    font-size: 1rem;
    font-weight: 750;
    text-transform: uppercase;
}

.comment-avatar__initial {
    position: relative;
    z-index: 0;
}

.comment-avatar img {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: block;
    width: 100%;
    height: 100%;

    border-radius: inherit;

    object-fit: cover;
    object-position: center;

    background: #e8e8e8;
}

.comment-card__body {
    display: contents;
}

.comment-card__header {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.comment-author {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.comment-author strong {
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.comment-author span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.comment-card__text {
    grid-column: 1 / -1;
    margin: 0;

    color: var(--text-primary);
    font-size: 0.96rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    /* white-space: nowrap; */
}

.comment-pending-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2ffda;
    color: #26841a;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.comment-moderation-note {
    grid-column: 1 / -1;

    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
    padding: 11px 13px;
    border-radius: 8px;
    background: #e2ffda;
    color: #2b6537;
    font-size: 0.75rem;
    line-height: 1.45;
}

.comment-moderation-note i {
    margin-top: 2px;
}

/*
|--------------------------------------------------------------------------
| Pending-comment owner controls
|--------------------------------------------------------------------------
*/

.comment-owner-actions,
.comment-inline-edit-form,
.comment-action-feedback {
    grid-column: 1 / -1;
}

.comment-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 2px;
}

.comment-owner-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
}

.comment-owner-button:hover {
    border-color: #777777;
    background: rgba(100, 100, 100, 0.08);
}

.comment-owner-button--danger {
    border-color: #d9a1a1;
    color: #a52a2a;
}

.comment-owner-button--danger:hover {
    border-color: #b42318;
    background: #fff1f1;
    color: #8c1d1d;
}

.comment-owner-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.comment-inline-edit-form[hidden],
.comment-action-feedback[hidden] {
    display: none !important;
}

.comment-inline-edit-form {
    padding: 15px;
    border: 1px solid #b8d3bd;
    border-radius: 9px;
    background: #f7fbf8;
}

.comment-inline-edit-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #bcbcbc;
    border-radius: 7px;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
}

.comment-inline-edit-textarea:focus {
    border-color: #569363;
    box-shadow: 0 0 0 3px rgba(86, 147, 99, 0.15);
}

.comment-inline-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 11px;
}

.comment-inline-save-button,
.comment-inline-cancel-button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
}

.comment-inline-save-button {
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
}

.comment-inline-save-button:hover {
    border-color: #ffb534;
    background: #f9a825;
    color: #111111;
}

.comment-inline-cancel-button {
    border: 1px solid #cccccc;
    background: transparent;
    color: var(--text-primary);
}

.comment-inline-save-button:disabled,
.comment-inline-cancel-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.comment-action-feedback {
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.comment-action-feedback.is-error {
    border: 1px solid #d99a9a;
    background: #fff1f1;
    color: #8c1d1d;
}

.comment-action-feedback.is-success {
    border: 1px solid #86b98f;
    background: #edf8ef;
    color: #245d2e;
}

/* Dark mode */
.dark-mode .comment-owner-button {
    border-color: #555555;
}

.dark-mode .comment-owner-button:hover {
    background: rgba(255, 255, 255, 0.07);
}

.dark-mode .comment-owner-button--danger {
    border-color: #8f4747;
    color: #ffb9b9;
}

.dark-mode .comment-owner-button--danger:hover {
    background: #3d1c1c;
    color: #ffd2d2;
}

.dark-mode .comment-inline-edit-form {
    border-color: #477b51;
    background: #0d140e;
}

.dark-mode .comment-inline-edit-textarea {
    border-color: #555555;
}

.dark-mode .comment-action-feedback.is-error {
    border-color: #8f4747;
    background: #3d1c1c;
    color: #ffd2d2;
}

.dark-mode .comment-action-feedback.is-success {
    border-color: #497d52;
    background: #193720;
    color: #c9f3cf;
}

@media (max-width: 600px) {
    .comment-owner-actions,
    .comment-inline-edit-actions {
        width: 100%;
    }

    .comment-owner-button,
    .comment-inline-save-button,
    .comment-inline-cancel-button {
        flex: 1 1 auto;
    }
}

.comment-like-button {
    display: inline-flex;
    min-width: 42px;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.comment-like-button:hover:not(:disabled) {
    border-color: #dc6b75;
    color: #f02828;
}

.comment-like-button.is-liked {
    border-color: #dc6b75;
    background: #fff2f3;
    color: #f02828;
}

.comment-like-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.comment-like-button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.65;
}

.comment-like-count {
    min-width: 8px;
    font-family: 'Inter';
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-replies {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    margin-top: 4px;
    border-left: 2px solid #e4e4e4;
}

.comment-card--reply {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
    border-radius: 9px;
    background: var(--card-bg);
}

.comment-avatar--reply {
    width: 40px;
    height: 40px;
    font-size: 0.86rem;
}

.comment-empty-state {
    padding: 45px 20px;
    border: 1px dashed #cccccc;
    border-radius: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.comment-empty-state i {
    margin-bottom: 12px;
    font-size: 2rem;
}

.comment-empty-state h3 {
    margin: 0 0 7px;
    color: var(--text-primary);
}

.comment-empty-state p {
    margin: 0;
}

/* Dark mode */
.dark-mode .comment-card {
    border-color: #3f3f3f;
}

.dark-mode .comment-card--pending {
    border-color: #477b51;
}

.dark-mode .comment-avatar {
    background: #393939;
    color: #f3f3f3;
}

.dark-mode .comment-pending-badge {
    background: #275332;
    color: #d5f3db;
}

.dark-mode .comment-moderation-note {
    background: #22492b;
    color: #d0efd6;
}

.dark-mode .comment-like-button {
    border-color: #4c4c4c;
}

.dark-mode .comment-like-button.is-liked {
    border-color: #9f4c55;
    background: #402125;
    color: #ffb3ba;
}

.dark-mode .comment-replies {
    border-left-color: #454545;
}

@media (max-width: 600px) {
    .comment-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.86rem;
    }

    .comment-card__header {
        gap: 10px;
    }

    .fa-regular, .far {
      font-weight: 400;
      font-size: medium;
    }
    

    .comment-replies {
        padding-left: 10px;
    }

    .comment-card--reply {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 12px;
    }

    .comment-avatar--reply {
        width: 34px;
        height: 34px;
        font-size: 0.76rem;
    }

    .comment-card__text {
        font-size: 0.92rem;
    }
}

.comment-feedback {
  display: none;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.comment-feedback.is-visible {
  display: block;
}

.comment-feedback.is-success {
  border: 1px solid #86b98f;
  background: #edf8ef;
  color: #245d2e;
}

.comment-feedback.is-error {
  border: 1px solid #d99a9a;
  background: #fff1f1;
  color: #8c1d1d;
}

.dark-mode .comment-feedback.is-success {
  border-color: #497d52;
  background: #193720;
  color: #c9f3cf;
}

.dark-mode .comment-feedback.is-error {
  border-color: #8f4747;
  background: #3d1c1c;
  color: #ffd2d2;
}

/*
|--------------------------------------------------------------------------
| Comment textarea — dark mode
|--------------------------------------------------------------------------
*/

.dark-mode #comment-text,
.dark-mode .comment-inline-edit-textarea {
    border-color: #555555;
    background-color: #111111;
    color: #f5f5f5;
    caret-color: #f5f5f5;
}

.dark-mode #comment-text::placeholder,
.dark-mode .comment-inline-edit-textarea::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

.dark-mode #comment-text:focus,
.dark-mode .comment-inline-edit-textarea:focus {
    border-color: #888888;
    background-color: #1f1f1f;
    color: #bbbbbb;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    outline: none;
}