/* =========================================================
   POWERLIFTING.COM - CONTENT AND COMMENTS CSS
   Load on posts, article archives, search results, and pages
   that display the standard comment system.
   ========================================================= */

/* =========================================================
   POST DISPLAY
   ========================================================= */

.jeg_share_top_container,
.single-post .thumbnail-container.animate-lazy,
.jeg_post_category {
    display: none !important;
}

.jeg_post_meta .jeg_meta_author,
.jeg_post_meta .jeg_meta_date {
    text-transform: capitalize;
}

/* =========================================================
   ARTICLE IMAGES AND CAPTIONS
   ========================================================= */

.entry-content .wp-block-image {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

.entry-content .wp-block-image figure {
    margin-bottom: 0 !important;
}

.entry-content .wp-block-image figure.aligncenter {
    float: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

.entry-content .wp-block-image figure.aligncenter img {
    display: block !important;
    float: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.entry-content .wp-block-image figcaption {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.jeg_custom_content_wrapper .entry-content .content-inner figure.is-resized picture {
    display: inline-block;
    width: 350px;
    max-width: 100%;
}

.jeg_custom_content_wrapper .entry-content .content-inner figure.is-resized img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   COMMENT FORM ORDER AND VALIDATION
   ========================================================= */

#commentform {
    display: flex;
    flex-direction: column;
}

#commentform .td-form-author {
    order: 1;
}

#commentform .td-form-comment {
    order: 2;
}

#commentform .comment-form-cookies-consent {
    order: 3;
}

#commentform .form-submit {
    order: 4;
}

.comment-moderation-notice {
    margin: 10px 0 12px;
    padding: 12px 14px;
    color: #3a2f00;
    background: rgba(255, 235, 130, 0.65);
    border-left: 4px solid rgba(240, 173, 78, 0.9);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes td-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.td-shake {
    animation: td-shake 0.35s ease-in-out;
}

.td-input-error {
    border-color: #c0392b !important;
}

.comment-inline-error {
    margin-top: 6px;
    color: #c0392b;
    font-size: 13px;
}

/* =========================================================
   COMMENT THREADS AND META
   ========================================================= */

.comment-list > li.depth-1 {
    margin-left: 0 !important;
}

.comment-list ul.children {
    margin-left: 75px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.avatar-50.photo {
    display: inline-block;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

cite,
cite a {
    font-weight: 700;
}

.comment-link time[pubdate] {
    color: var(--pl-muted-dark, #555);
    font-size: 0.85em;
}

/* =========================================================
   LOGGED-OUT COMMENT PROMPT
   ========================================================= */

.td-comment-loggedout-box {
    margin-top: 20px;
    padding: 20px;
    color: inherit;
    background: var(--pl-dark-surface, #1a1a1a);
    border: 1px solid var(--pl-border-light, #ddd);
    border-radius: 8px;
    text-align: left;
}

.td-comment-loggedout-box .comment-login-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.td-comment-loggedout-box .td-comment-button {
    display: inline-block;
    padding: 10px 20px;
    color: var(--pl-white, #fff);
    background: var(--pl-blue-medium, #334aff);
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

.td-comment-loggedout-box .td-comment-button:hover {
    background: var(--pl-blue-dark, #1a2fcc);
}

.td-login-comment {
    color: var(--pl-blue-medium, #334aff);
    font-size: 18px;
    font-weight: 700;
}

/* =========================================================
   NESTED COMMENT REPLIES
   ========================================================= */

/* Top-level comments remain flush left */
.comment-list > li.depth-1 {
    margin-left: 0 !important;
}

/* Replies receive a visible indent */
.comment-list ul.children {
    margin-left: 75px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

/* Use a smaller but still visible indent on mobile */
@media (max-width: 767px) {
    .comment-list ul.children {
        margin-left: 30px !important;
    }
}
