/**
 * Comments Styles
 *
 * @package TBC_News
 */

/* ===================================
   COMMENTS AREA
   =================================== */

.comments-area {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--tbc-text);
    margin-bottom: 32px;
}

/* ===================================
   COMMENT LIST
   =================================== */

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-list .children {
    list-style: none;
    margin: 24px 0 0 40px;
    padding: 0;
}

.comment-body {
    position: relative;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-size: 16px;
    font-weight: 700;
    color: var(--tbc-text);
    font-style: normal;
}

.comment-author .fn a {
    color: var(--tbc-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author .fn a:hover {
    color: var(--tbc-secondary);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 13px;
    color: #767676;
    margin-bottom: 16px;
}

.comment-metadata a {
    color: #767676;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-metadata a:hover {
    color: var(--tbc-text);
}

.comment-metadata .edit-link {
    margin-left: 12px;
}

.comment-metadata .edit-link::before {
    content: "•";
    margin-right: 8px;
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #3F3F42;
    margin-bottom: 16px;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 12px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    color: var(--tbc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--tbc-text);
    color: #ffffff;
    border-color: var(--tbc-text);
}

/* Comment awaiting moderation */
.comment-awaiting-moderation {
    display: block;
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 14px;
    color: #856404;
    margin-bottom: 16px;
}

/* ===================================
   COMMENT NAVIGATION
   =================================== */

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-navigation a {
    color: var(--tbc-secondary);
    text-decoration: none;
    font-weight: 600;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* ===================================
   COMMENT FORM
   =================================== */

.comment-respond {
    margin-top: 48px;
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--tbc-text);
    margin-bottom: 24px;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: 600;
}

.comment-reply-title small a {
    color: var(--tbc-secondary);
    text-decoration: none;
    margin-left: 8px;
}

.comment-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tbc-text);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--tbc-secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
}

.comment-form-cookies-consent label {
    font-weight: 400;
    font-size: 13px;
    color: #5a5a5a;
}

.form-submit {
    margin-bottom: 0;
}

.submit-button,
.comment-form input[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    background: var(--tbc-text);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover,
.comment-form input[type="submit"]:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Logged in text */
.logged-in-as {
    font-size: 14px;
    color: #5a5a5a;
    margin-bottom: 20px;
}

.logged-in-as a {
    color: var(--tbc-secondary);
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* ===================================
   NO COMMENTS MESSAGE
   =================================== */

.no-comments {
    padding: 32px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #767676;
    font-size: 15px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-list .comment {
        padding: 20px 16px;
    }
    
    .comment-form {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .comment-list .children {
        margin-left: 0;
    }
    
    .comments-title {
        font-size: 24px;
    }
}