
/* ========================================
   HAPPILY CLUB JOURNAL
   COMMENTS DESIGN
======================================== */

.hc-comments {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 25px 0 0;
    border-top: 1px solid #e9e5dc;
    color: #252420;
    font-family: "gt_walsheim_proregular", sans-serif;
}

.hc-comments *,
.hc-comments *::before,
.hc-comments *::after {
    box-sizing: border-box;
}

.hc-comments-heading {
    margin: 0 0 32px;
}

.hc-comments-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #e75442;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hc-comments-eyebrow-line {
    display: inline-block;
    width: 25px;
    height: 1px;
    flex: 0 0 25px;
    background: #e75442;
}

.hc-comments-title {
    margin: 0;
    padding: 0;
    color: #252420;
    font-family: "Sofia Pro", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.6px;
    text-transform: none;
}

.hc-comments-description {
    margin: 12px 0 0;
    color: #77736c;
    font-size: 15px;
    line-height: 1.75;
}

/* Comment list */

.hc-comment-list,
.hc-comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-comment-list > li {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    background: none;
}

.hc-comment-list .children {
    margin: 22px 0 0 24px;
    padding: 0 0 0 22px;
    border-left: 1px solid #e9e5dc;
}

.hc-comment-list .children > li {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    background: none;
}

.hc-comment-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e9e5dc;
    border-radius: 4px;
    background: #fff;
}

.hc-comment-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 50%;
    background: #f8f7f1;
}

.hc-comment-avatar img,
.hc-comment-avatar .avatar {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

.hc-comment-main {
    min-width: 0;
    flex: 1;
}

.hc-comment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin: 0 0 12px;
}

.hc-comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-comment-author-name,
.hc-comment-author-name a {
    color: #252420;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hc-comment-author-name a:hover {
    color: #e75442;
}

.hc-comment-admin {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 2px;
    background: #f8f7f1;
    color: #d94d3d;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hc-comment-date {
    color: #8a867e;
    font-size: 12px;
    line-height: 1.7;
}

.hc-comment-text {
    color: #56534d;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.hc-comment-text > *:first-child {
    margin-top: 0;
}

.hc-comment-text > *:last-child {
    margin-bottom: 0;
}

.hc-comment-text p {
    margin: 0 0 12px;
    padding: 0;
    color: inherit;
    font: inherit;
}

.hc-comment-text a {
    color: #d94d3d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-comment-text a:hover {
    color: #252420;
}

.hc-comment-text img {
    max-width: 100%;
    height: auto;
}

.hc-comment-pending {
    margin: 12px 0 0;
    color: #9a6b22;
    font-size: 13px;
    line-height: 1.6;
}

/* Reply link */

.hc-comment-actions {
    margin: 14px 0 0;
}

.hc-comment-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d94d3d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hc-comment-actions .comment-reply-link::after {
    content: "\2192";
    transition: transform 0.25s ease;
}

.hc-comment-actions .comment-reply-link:hover {
    color: #252420;
}

.hc-comment-actions .comment-reply-link:hover::after {
    transform: translateX(3px);
}

/* Comment form */

.hc-comment-form-wrap {
	margin: 15px 0 30px 0;
    padding: 35px;
    border: 1px solid #e9e5dc;
    border-radius: 4px;
    background: #f8f7f1;
}

.hc-comment-form-heading {
    margin-bottom: 28px;
}

.hc-comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

.hc-comment-form .comment-form-author,
.hc-comment-form .comment-form-email,
.hc-comment-form .comment-form-comment,
.hc-comment-form .form-submit {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hc-comment-form .comment-form-author,
.hc-comment-form .comment-form-email {
    display: none;
}

.hc-comment-form .hc-form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.hc-comment-form .hc-form-field-half {
    width: calc(50% - 10px);
}

.hc-comment-form .hc-form-field-full {
    width: 100%;
}

.hc-comment-form label {
    display: block;
    margin: 0;
    color: #252420;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.hc-comment-form label span {
    color: #e75442;
}

.hc-comment-form input,
.hc-comment-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 15px;
    border: 1px solid #ded9cf;
    border-radius: 3px;
    outline: none;
    background: #fff;
    color: #252420;
    font-family: "gt_walsheim_proregular", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hc-comment-form input {
    min-height: 49px;
}

.hc-comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.hc-comment-form input::placeholder,
.hc-comment-form textarea::placeholder {
    color: #9a968e;
    opacity: 1;
}

.hc-comment-form input:focus,
.hc-comment-form textarea:focus {
    border-color: #e75442;
    box-shadow: 0 0 0 3px rgba(231, 84, 66, 0.09);
}

.hc-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: #68645d;
    font-size: 12px;
    line-height: 1.7;
}

.hc-comment-form .comment-form-cookies-consent input {
    width: 15px;
    min-width: 15px;
    height: 15px;
    min-height: 15px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: #e75442;
}

.hc-comment-form .comment-form-cookies-consent label {
    color: #68645d;
    font-size: 12px;
    font-weight: 400;
}

.hc-comment-form .form-submit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
}

.hc-comment-form .hc-comment-submit {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 13px 22px;
    border: 1px solid #e75442;
    border-radius: 3px;
    background: #e75442;
    color: #fff;
    font-family: "gt_walsheim_proregular", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hc-comment-form .hc-comment-submit::after {
    content: "\2192";
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.hc-comment-form .hc-comment-submit:hover {
    border-color: #252420;
    background: #252420;
    color: #fff;
}

.hc-comment-form .hc-comment-submit:hover::after {
    transform: translateX(4px);
}

.hc-comment-form .logged-in-as {
    width: 100%;
    margin: 0;
    color: #68645d;
    font-size: 13px;
    line-height: 1.7;
}

.hc-comment-form .logged-in-as a {
    color: #d94d3d;
    text-decoration: none;
}

.hc-comment-form .logged-in-as a:hover {
    color: #252420;
}

.hc-comment-form .required-field-message,
.hc-comment-form .comment-notes {
    width: 100%;
    margin: 0;
    color: #77736c;
    font-size: 12px;
    line-height: 1.7;
}

.hc-comment-form .comment-form-url {
    display: none;
}

/* WordPress notices and pagination */

.hc-comments .comment-respond {
    width: 100%;
}

.hc-comments .comment-reply-title {
    margin: 0;
    color: #252420;
    font-family: "Sofia Pro", sans-serif;
    font-size: 25px;
    font-weight: 600;
}

.hc-comments .comment-reply-title small {
    margin-left: 8px;
    font-family: "gt_walsheim_proregular", sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.hc-comments .comment-reply-title small a {
    color: #d94d3d;
    text-decoration: none;
}

.hc-comments .comment-reply-title small a:hover {
    color: #252420;
}

.hc-comments .comment-navigation,
.hc-comments .comments-pagination {
    margin: 25px 0;
    font-size: 13px;
}

.hc-comments .comments-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-comments .comments-pagination a,
.hc-comments .comments-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #e9e5dc;
    color: #252420;
    text-decoration: none;
}

.hc-comments .comments-pagination a:hover,
.hc-comments .comments-pagination .current {
    border-color: #e75442;
    background: #e75442;
    color: #fff;
}

.hc-comments .hc-comments-closed {
    color: #77736c;
    font-size: 14px;
    line-height: 1.7;
}


/* Tablet */

@media (max-width: 768px) { 

    .hc-comment-form-wrap {
        padding: 28px;
    }

    .hc-comment-list .children {
        margin-left: 12px;
        padding-left: 15px;
    }
}

/* Mobile */

@media (max-width: 600px) { 

    .hc-comments-heading {
        margin-bottom: 25px;
    }

    .hc-comments-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hc-comments-description {
        font-size: 14px;
    }

    .hc-comment-card {
        gap: 12px;
        padding: 16px;
    }

    .hc-comment-avatar,
    .hc-comment-avatar img,
    .hc-comment-avatar .avatar {
        width: 40px;
        height: 40px;
    }

    .hc-comment-avatar {
        flex-basis: 40px;
    }

    .hc-comment-top {
        flex-direction: column;
        gap: 3px;
    }

    .hc-comment-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .hc-comment-list .children {
        margin-top: 15px;
        margin-left: 5px;
        padding-left: 12px;
    }

    .hc-comment-form-wrap {
        margin-top: 40px;
        padding: 22px 18px;
    }

    .hc-comment-form {
        gap: 17px;
    }

    .hc-comment-form .hc-form-field-half {
        width: 100%;
    }

    .hc-comment-form input {
        min-height: 47px;
    }

    .hc-comment-form textarea {
        min-height: 140px;
    }

    .hc-comment-form .hc-comment-submit {
        width: 100%;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-comments *,
    .hc-comments *::before,
    .hc-comments *::after {
        transition: none !important;
        animation: none !important;
    }
}
