/* Carrossel de Feedbacks - Ella 3.0 - Swiper Implementation */

/* Container principal do carrossel */
#feedbacks {
    .feedbacks-carousel {
        position: relative;
        padding: 30px 60px;
        margin: 0 auto;
        max-width: 1200px;
        overflow: visible;
        background: transparent;
        z-index: 1;
    }

    /* Container pai do carrossel */
    .ella-feedback {
        background: transparent !important;
        overflow: visible !important;
    }

    /* Container do Bootstrap */
    .container {
        background: transparent !important;
        overflow: visible !important;
    }

    /* Row do Bootstrap */
    .row {
        background: transparent !important;
        overflow: visible !important;
    }

    /* Coluna do Bootstrap */
    .col-12 {
        overflow: visible !important;
    }

    /* Swiper container */
    .swiper {
        width: 100%;
        height: 100%;
        padding: 0 20px;
        background: transparent;
    }

    /* Swiper slides */
    .swiper-slide {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }

    /* Card de feedback */
    .feedback-card {
        background: white;
        border: 2px solid #e7e7e7;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
        backface-visibility: hidden;
        transform: translateZ(0);
        width: 100%;
        height: 100%;
    }

    .feedback-card:hover {
        transform: none;
    }

    /* Seção superior com foto e estrelas */
    .feedback-top {
        padding: 30px 20px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .feedback-profile {
        flex: 0 0 auto;
    }

    .feedback-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #f8f9fa;
    }

    .feedback-avatar-placeholder {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e9ecef, #dee2e6);
        border: 3px solid #f8f9fa;
    }

    /* Avatar com iniciais */
    .feedback-avatar-initials {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0d47a1, #1976d2);
        border: 3px solid #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        font-weight: 600;
        font-family: 'Arial', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
        transition: all 0.3s ease;
    }

    .feedback-avatar-initials:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
    }

    .feedback-stars {
        display: flex;
        gap: 2px;
    }

    .feedback-star {
        font-size: 20px;
        line-height: 1;
    }

    .feedback-star.star-filled {
        color: #ffc107;
        text-shadow: 0 0 2px rgba(255, 193, 7, 0.3);
    }

    .feedback-star.star-empty {
        color: #ccc;
    }

    /* Seção do conteúdo */
    .feedback-content {
        padding: 0 25px 25px;
        text-align: left;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-height: 120px;
    }

    .feedback-text {
        font-size: 16px;
        line-height: 1.6;
        color: #333;
        margin: 0;
        font-style: italic;
        font-family: 'Georgia', serif;
    }

    /* Seção inferior com nome */
    .feedback-bottom {
        background-color: #0d47a1;
        padding: 15px 25px;
        text-align: left;
    }

    .feedback-author {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        font-family: 'Arial', sans-serif;
    }

    /* Controles de navegação Swiper (desktop) */
    .swiper-button-prev,
    .swiper-button-next {
        width: 35px !important;
        height: 35px !important;
        background-color: #ffc107 !important;
        border-radius: 50%;
        color: white !important;
        transition: all 0.3s ease;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999 !important;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background-color: #e6a800 !important;
        transform: scale(1.1);
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 18px !important;
        font-weight: bold;
    }

    /* Esconde os controles padrão do Swiper no mobile */
    @media (max-width: 767.98px) {
        .swiper-button-prev,
        .swiper-button-next {
            display: none !important;
        }
    }

    /* Indicadores para mobile */
    .carousel-indicators {
        position: relative;
        bottom: -30px;
        margin: 0;
        justify-content: center;
        display: flex;
        gap: 8px;
    }

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background-color: #ffc107;
        opacity: 0.6;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-indicators button.active {
        background-color: #0d47a1;
        opacity: 1;
        transform: scale(1.2);
    }

    /* Responsividade */
    @media (max-width: 767.98px) {
        .feedbacks-carousel {
            padding: 25px 20px;
            border-radius: 15px;
        }
        
        .swiper {
            padding: 0 10px;
        }
        
        .feedback-card {
            max-width: 100%;
        }
        
        .feedback-top {
            padding: 25px 20px 20px;
        }
        
        .feedback-avatar,
        .feedback-avatar-placeholder,
        .feedback-avatar-initials {
            width: 50px;
            height: 50px;
        }
        
        .feedback-avatar-initials {
            font-size: 16px;
        }
        
        .feedback-stars {
            gap: 1px;
        }
        
        .feedback-star {
            font-size: 18px;
        }
        
        .feedback-content {
            padding: 0 20px 20px;
            min-height: 100px;
        }
        
        .feedback-text {
            font-size: 15px;
        }
        
        .feedback-bottom {
            padding: 12px 20px;
        }
        
        .feedback-author {
            font-size: 16px;
        }
    }

    /* Ajustes para telas muito pequenas */
    @media (max-width: 575.98px) {
        .feedbacks-carousel {
            padding: 20px 15px;
            border-radius: 10px;
        }
        
        .feedback-card {
            margin: 0 5px;
        }
        
        .feedback-top {
            padding: 20px 15px 15px;
        }
        
        .feedback-content {
            padding: 0 15px 15px;
        }
        
        .feedback-bottom {
            padding: 10px 15px;
        }
    }

    /* Acessibilidade */
    .swiper-button-prev:focus,
    .swiper-button-next:focus,
    .carousel-indicators button:focus {
        outline: 2px solid #0d47a1;
        outline-offset: 2px;
    }

    /* Animações */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .feedback-card {
        animation: fadeInUp 0.6s ease-out;
    }
}