/* ============================================================================
   SEÇÃO DE COMENTÁRIOS MODERNIZADA
============================================================================ */
.modern_comments_section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* HEADER */
.modern_comments_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modern_comments_header_left {
    flex: 1;
}

.modern_comments_title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.modern_comments_rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern_comments_stars {
    display: flex;
    gap: 4px;
}

.modern_comment_star {
    color: #d1d5db;
}

.modern_comment_star.filled {
    color: #008c75;
}

.modern_comments_avg {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.modern_comments_count {
    font-size: 14px;
    color: #6b7280;
}

/* BOTÃO AVALIAR */
.modern_comments_btn_add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern_comments_btn_add:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* FILTROS */
.modern_comments_filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.modern_comments_filter_label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.modern_comments_filter_btn {
    padding: 8px 16px;
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern_comments_filter_btn:hover {
    border-color: #008c75;
    color: #008c75;
}

.modern_comments_filter_btn.active {
    background: #008c75;
    color: #ffffff;
    border-color: #008c75;
}

/* LISTA DE COMENTÁRIOS */
.modern_comments_list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* COMENTÁRIO VAZIO */
.modern_comments_empty {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.modern_comments_empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.modern_comments_empty p {
    font-size: 16px;
    margin: 0;
}

/* ITEM DO COMENTÁRIO */
.modern_comment_item {
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.modern_comment_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modern_comment_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modern_comment_user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.modern_comment_avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.modern_comment_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern_comment_user_info {
    flex: 1;
    min-width: 0;
}

/* ✅ NOME + BADGE + ESTRELAS NA MESMA LINHA */
.modern_comment_user_name_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.modern_comment_user_name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* BADGE PROPRIETÁRIO */
.modern_comment_owner_badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #14242f;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ✅ ESTRELAS NA MESMA LINHA */
.modern_comment_stars {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
}

.modern_comment_date {
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

.modern_comment_text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 12px 0;
}

/* AÇÕES DO COMENTÁRIO */
.modern_comment_actions {
    display: flex;
    gap: 16px;
}

.modern_comment_action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #008c75;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern_comment_action:hover {
    background: #f3f4f6;
    color: #10b981;
}

.modern_comment_action.liked {
    color: #008c75;
    cursor: default;
}

.modern_comment_action svg {
    flex-shrink: 0;
}

/* ✅ RESPOSTA - INDENTAÇÃO + BORDA VERDE */
.modern_comment_response {
    margin-top: 16px;
    margin-left: 40px; /* ✅ Indentação para a direita */
    padding: 16px;
    border: 1px solid #008c75;
    border-left: 3px solid #008c75;
    border-radius: 8px;
}

.modern_comment_response .modern_comment_avatar {
    width: 40px;
    height: 40px;
}

.modern_comment_response .modern_comment_user_name {
    font-size: 14px;
}

.modern_comment_response .modern_comment_text {
    font-size: 14px;
    margin: 8px 0 0 0;
    margin-left: 50px;
}

.modern_comment_response .modern_comment_stars svg {
    width: 14px;
    height: 14px;
}

/* FORMULÁRIO */
.modern_comment_form,
.modern_comment_response_form {
    margin-top: 16px;
}

.modern_form_field {
    margin-bottom: 20px;
}

.modern_form_field:last-child {
    margin-bottom: 0;
}

.modern_form_label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* ESTRELAS DO FORMULÁRIO */
.modern_form_stars {
    display: flex;
    gap: 8px;
}

.modern_form_star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #eeeeee;
    transition: all 0.2s ease;
}

.modern_form_star:hover {
    transform: scale(1.1);
}

.modern_form_star.active,
.modern_form_star.hover {
    color: #008c75;
}

/* TEXTAREA */
.modern_form_textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #374151;
    resize: vertical;
    transition: all 0.3s ease;
}

.modern_form_textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modern_form_hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.modern_char_count {
    font-weight: 600;
    color: #10b981;
}

/* BOTÕES DO FORMULÁRIO */
.modern_form_actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.modern_form_btn_cancel,
.modern_form_btn_submit {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern_form_btn_cancel {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.modern_form_btn_cancel:hover {
    background: #f3f4f6;
    color: #374151;
}

.modern_form_btn_submit {
    background: #10b981;
    color: white;
}

.modern_form_btn_submit:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modern_form_btn_submit:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

/* LOADING */
.modern_form_loading {
    display: block;
    margin: 16px auto 0;
    width: 32px;
    height: 32px;
}

/* MODAL */
.modern_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modern_modal_container {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modern_modal_title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modern_modal_close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern_modal_close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modern_modal_content {
    padding: 32px;
}


/* BOTÃO VER MAIS */
.modern_comments_load_more {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 24px;
}

.modern_comments_btn_load_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern_comments_btn_load_more:hover {
    background: #f9fafb;
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern_comments_remaining {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.modern_comment_item.hidden {
    display: none;
}


/* RESPONSIVO */
@media (max-width: 768px) {
    .modern_comments_section {
        padding: 20px;
    }

    .modern_comments_header {
        flex-direction: column;
        gap: 16px;
    }

    .modern_comments_btn_add {
        width: 100%;
        justify-content: center;
    }

    .modern_comment_header {
        flex-wrap: wrap;
    }

    .modern_comment_date {
        width: 100%;
        order: 3;
        margin-top: 8px;
    }

    .modern_comment_response {
        margin-left: 20px; /* Menos indentação no mobile */
    }

    .modern_form_actions {
        flex-direction: column;
    }

    .modern_modal_container {
        border-radius: 16px 16px 0 0;
    }
}
