/* =============================================
   COMMENT SECTION - GREENGARDEN THEME
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Be+Vietnam+Pro:wght@300;400;500;600&display=swap');

/* === WRAPPER === */
.comment-content.widget_b {
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 0 auto;
    padding: 0;
}

/* === NO COMMENTS === */
.comment-content .alert-warning {
    background: #f0f7f0;
    border: 1.5px dashed #a8c8a0;
    color: #5a7a5a;
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* === COMMENTS WRAPPER === */
.comments-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid #e4ede4;
    box-shadow: 0 4px 24px rgba(80, 120, 80, 0.07);
    margin-bottom: 28px;
}

/* === SINGLE COMMENT ITEM (nếu có) === */
.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eef5ee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6aad6a, #3d7a3d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body .comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #2d5a2d;
    margin-bottom: 4px;
}

.comment-body .comment-date {
    font-size: 12px;
    color: #94a794;
    margin-bottom: 8px;
}

.comment-body .comment-text {
    font-size: 14.5px;
    color: #4a4a4a;
    line-height: 1.7;
}

/* === COMMENT FORM SECTION === */
.comments-form-wrapper {
    background: linear-gradient(145deg, #f7fbf7, #eef6ee);
    border-radius: 20px;
    padding: 32px 36px 36px;
    border: 1px solid #d6ebd6;
    position: relative;
    overflow: hidden;
}

.comments-form-wrapper::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(100, 180, 100, 0.12), transparent 70%);
    pointer-events: none;
}

/* === TITLE === */
#add-comment-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #2a5a2a !important;
    margin-bottom: 24px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #c5dfc5 !important;
    letter-spacing: -0.01em;
    position: relative;
}

#add-comment-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #4a9a4a;
    border-radius: 2px;
}

/* === INPUTS === */
.comments-form-wrapper .form-control {
    border: 1.5px solid #cce0cc;
    border-radius: 12px;
    padding: 13px 18px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    color: #2d4a2d;
    background: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(60, 100, 60, 0.04);
    width: 100%;
    outline: none;
}

.comments-form-wrapper .form-control::placeholder {
    color: #a0b8a0;
    font-weight: 300;
}

.comments-form-wrapper .form-control:focus {
    border-color: #5aaa5a;
    box-shadow: 0 0 0 3px rgba(90, 170, 90, 0.14), 0 2px 8px rgba(60, 100, 60, 0.06);
    background: #fff;
    transform: translateY(-1px);
}

.comments-form-wrapper textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.comments-form-wrapper .form-group {
    margin-bottom: 16px !important;
}

/* === BUTTON === */
#button-comment {
    background: linear-gradient(135deg, #4a9a4a 0%, #2d7a2d 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(45, 122, 45, 0.30);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#button-comment i.fa {
    font-size: 13px;
    transition: transform 0.3s ease;
}

#button-comment:hover {
    background: linear-gradient(135deg, #3d8a3d 0%, #256025 100%);
    box-shadow: 0 8px 24px rgba(45, 122, 45, 0.38);
    transform: translateY(-2px) scale(1.03);
}

#button-comment:hover i.fa {
    transform: translateX(3px);
}

#button-comment:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(45, 122, 45, 0.25);
}

/* === ALERT MESSAGES === */
.comment-content .alert-success {
    background: #e8f5e8;
    border: none;
    border-left: 4px solid #4caf50;
    border-radius: 10px;
    padding: 14px 20px;
    color: #2d5a2d;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease;
}

.comment-content .alert-danger {
    background: #fdf0f0;
    border: none;
    border-left: 4px solid #e57373;
    border-radius: 10px;
    padding: 14px 20px;
    color: #7a2d2d;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === BORDER TOP SECTION === */
.border-top.pt-3 {
    border-top: 1px solid #dceadc !important;
    padding-top: 28px !important;
    margin-top: 28px !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .comments-form-wrapper {
        padding: 24px 20px 28px;
    }

    .comments-wrapper {
        padding: 20px;
    }

    #add-comment-title {
        font-size: 20px !important;
    }

    #button-comment {
        width: 100%;
        justify-content: center;
    }
}