/*
  PROPRIETARY CODE - vivahigienizado.com.br
  Carrossel 3D Cilíndrico de Depoimentos
*/

/* ========================================
   SEÇÃO DE DEPOIMENTOS
   ======================================== */

.testimonials {
    padding: 80px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.testimonials h2 {
    font-size: 2.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-neon-primary);
}

/* ========================================
   CARROSSEL 3D - ESTRUTURA
   ======================================== */

.carousel-3d-container {
    position: relative;
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.scene-3d {
    width: 100%;
    height: 733px;
    position: relative;
    perspective: 1500px;
    perspective-origin: 50% 50%;
}

.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   CÉLULAS DO CARROSSEL
   ======================================== */

.carousel__cell {
    position: absolute;
    width: 336px;
    height: 491px;
    left: 50%;
    top: 50%;
    margin-left: -168px;
    margin-top: -246px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   CARDS DE DEPOIMENTO
   ======================================== */

.testimonial-card {
    background: #206a8d;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    padding: 36px 28px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease;
    transform: scale(0.9);
    opacity: 0.68;
}

/* Card central recebe efeito especial */
.carousel__cell.is-selected .testimonial-card {
    background: #1D4F73;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(167, 227, 250, 0.5),
        inset 0 0 30px rgba(167, 227, 250, 0.1);
    border-color: rgba(167, 227, 250, 0.7);
    transform: scale(1.14);
    opacity: 1;
}

.carousel__cell.is-near .testimonial-card {
    transform: scale(1.15);
    opacity: 0.92;
}

/* ========================================
   HEADER DO CARD
   ======================================== */

.testimonial-header {
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel__cell.is-selected .testimonial-avatar {
    width: 110px;
    height: 110px;
    border-color: var(--color-primary-lighter);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(167, 227, 250, 0.6);
}

/* ========================================
   CORPO DO CARD
   ======================================== */

.testimonial-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel__cell.is-selected .testimonial-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 1);
}

/* ========================================
   FOOTER DO CARD
   ======================================== */

.testimonial-footer {
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.testimonial-message {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.04rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel__cell.is-selected .testimonial-message {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 1);
}

.testimonial-author {
    display: none;
}

.testimonial-rating {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    padding: 4px 8px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 0 4px;
}

.carousel__cell.is-selected .testimonial-rating {
    padding: 5px 10px;
    font-size: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTROLES DO CARROSSEL
   ======================================== */

.carousel-3d-controls {
    position: relative;
    text-align: center;
    margin-top: 40px;
    z-index: 100;
}

.carousel-3d-btn {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    font-size: 2.5rem;
    cursor: pointer;
    margin: 0 15px;
    box-shadow: 0 8px 20px rgba(32, 106, 141, 0.4);
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(32, 106, 141, 0.5),
        0 0 25px rgba(167, 227, 250, 0.5);
    background: linear-gradient(135deg, #1D4F73 0%, #206a8d 100%);
}

.carousel-3d-btn:active {
    transform: scale(0.95);
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 1024px) {
    .scene-3d {
        height: 655px;
        perspective: 1250px;
    }

    .carousel__cell {
        width: 308px;
        height: 410px;
        margin-left: -154px;
        margin-top: -205px;
    }

    .testimonial-card {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 12px;
    }

    .testimonials h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .scene-3d {
        height: 568px;
        perspective: 1050px;
    }

    .carousel__cell {
        width: 252px;
        height: 382px;
        margin-left: -126px;
        margin-top: -191px;
    }

    .testimonial-card {
        padding: 26px 20px;
    }

    .testimonial-avatar {
        width: 85px;
        height: 85px;
    }

    .carousel__cell.is-selected .testimonial-avatar {
        width: 95px;
        height: 95px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .carousel-3d-btn {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 50px 8px;
    }

    .scene-3d {
        height: 500px;
        perspective: 900px;
    }

    .carousel__cell {
        width: 210px;
        height: 346px;
        margin-left: -105px;
        margin-top: -173px;
    }

    .testimonial-card {
        padding: 22px 18px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .carousel__cell.is-selected .testimonial-avatar {
        width: 90px;
        height: 90px;
    }

    .testimonial-text {
        font-size: 0.92rem;
    }

    .testimonial-message {
        font-size: 0.80rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .carousel__cell.is-selected .testimonial-message {
        font-size: 0.86rem;
    }

    .testimonial-rating {
        font-size: 0.78rem;
        padding: 3px 6px;
    }

    .carousel__cell.is-selected .testimonial-rating {
        font-size: 0.82rem;
        padding: 4px 7px;
    }

    .carousel-3d-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}