/*
 * Professional Comments Section CSS
 * MediCare Pro v3.0 - Mobile Responsive
 */

/* ========================================
   COMMENTS SECTION
======================================== */
.comments-area {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(127, 169, 155, 0.1);
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-secondary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-title::before {
    content: '\f27a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(127, 169, 155, 0.3);
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

/* ========================================
   COMMENT LIST
======================================== */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(127, 169, 155, 0.15);
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.comment-author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.comment-author-name:hover {
    color: var(--color-primary);
}

.comment-date {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--color-primary);
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-reply-link::before {
    content: '\f3e5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.comment-reply-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(-5px);
}

/* Nested Comments */
.children {
    list-style: none;
    margin: 20px 0 0 40px;
    padding: 0;
}

/* ========================================
   COMMENT FORM - PROFESSIONAL
======================================== */
.comment-respond {
    margin-top: 40px;
    padding: 35px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--color-secondary);
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-reply-title::before {
    content: '\f304';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(127, 169, 155, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
    margin: 0;
}

.submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 169, 155, 0.3);
}

.submit::after {
    content: '\f1d8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(127, 169, 155, 0.4);
}

.submit:active {
    transform: translateY(-1px);
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media screen and (max-width: 768px) {
    .comments-area {
        padding: 25px 20px;
        margin-top: 40px;
        border-radius: 16px;
    }

    .comments-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        gap: 10px;
    }

    .comments-title::before {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .comment {
        padding: 18px;
        margin-bottom: 20px;
    }

    .comment-body {
        flex-direction: column;
        gap: 15px;
    }

    .comment-author {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .comment-author img {
        width: 50px;
        height: 50px;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comment-author-name {
        font-size: 16px;
    }

    .comment-date {
        font-size: 12px;
    }

    .comment-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .comment-reply-link {
        padding: 7px 16px;
        font-size: 13px;
    }

    .children {
        margin-left: 20px;
    }

    .comment-respond {
        padding: 25px 18px;
        border-radius: 12px;
    }

    .comment-reply-title {
        font-size: 20px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .comment-reply-title::before {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .comment-form {
        gap: 15px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .comment-form textarea {
        min-height: 120px;
    }

    .submit {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .comments-area {
        padding: 20px 15px;
    }

    .comments-title {
        font-size: 20px;
    }

    .comment {
        padding: 15px;
    }

    .comment-author img {
        width: 45px;
        height: 45px;
    }

    .children {
        margin-left: 15px;
    }

    .comment-respond {
        padding: 20px 15px;
    }
}

/* ========================================
   NO COMMENTS MESSAGE
======================================== */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    font-size: 16px;
}

.no-comments::before {
    content: '\f4ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    display: block;
    font-size: 60px;
    color: var(--color-border);
    margin-bottom: 20px;
}