/* ========================================
   ESTILOS AVANÇADOS DA SEÇÃO DE AVALIAÇÕES
   Sistema de slider dinâmico com dados do banco
   ======================================== */

/* Seção principal de depoimentos */
.depoimentos {
    background: var(--bg-primary);
    padding: 60px 20px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Título da seção */
.depoimento-titulo {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px var(--shadow-light);
}

.depoimento-titulo .fa-star {
    color: var(--accent-gold);
    animation: pulseEstrela 2s ease-in-out infinite;
}

@keyframes pulseEstrela {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Container do slider */
.depoimento-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 1;
    overflow: visible !important;
    min-height: 350px !important;
}

/* Track do slider */
.depoimento-track {
    display: block;
    width: 100% !important;
    min-height: 350px !important;
    position: relative;
    perspective: 1000px;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Card de avaliação */
.depoimento-card {
    position: absolute;
    width: 90%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px var(--shadow-card);
    border: 1px solid var(--border-color);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: auto;
    margin: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(100%) scale(0.8);
}

.depoimento-card.active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) translateX(0) scale(1) !important;
    pointer-events: auto;
    z-index: 100 !important;
    display: block !important;
}

.depoimento-card.prev {
    opacity: 0.3;
    transform: translate(-50%, -50%) translateX(-120%) scale(0.75);
    z-index: 1;
}

.depoimento-card.next {
    opacity: 0.3;
    transform: translate(-50%, -50%) translateX(120%) scale(0.75);
    z-index: 1;
}

/* Header do card */
.depoimento-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.depoimento-usuario {
    display: flex;
    align-items: center;
    gap: 15px;
}

.depoimento-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.depoimento-foto-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-warm) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    border: 3px solid var(--accent-dark);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.depoimento-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.depoimento-nome {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.depoimento-estrelas {
    display: flex;
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.depoimento-data {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: normal;
    font-style: italic;
    margin-top: 2px;
}

.depoimento-data i {
    color: var(--accent-gold);
}

/* Corpo do card */
.depoimento-corpo {
    margin-bottom: 20px;
}

.depoimento-comentario {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0 10px;
}

/* Footer do card (info do item) */
.depoimento-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px dashed var(--accent-gold);
}

.depoimento-item-info,
.depoimento-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.depoimento-item-info i,
.depoimento-item-meta i {
    color: var(--accent-gold);
    font-size: 0.85rem;
    min-width: 16px;
}

.item-titulo {
    font-weight: 600;
    color: var(--text-primary);
}

/* Indicadores */
.depoimento-indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

.depoimento-indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.depoimento-indicador.active {
    background-color: var(--accent-gold);
    transform: scale(1.3);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--shadow-light);
}

/* Loading */
.depoimento-loading {
    width: 100%;
    max-width: 500px;
    height: 280px;
    background: linear-gradient(90deg,
            var(--border-color) 25%,
            var(--border-accent) 50%,
            var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
    margin: 0 auto;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Estado vazio */
.depoimento-vazio {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.depoimento-vazio i {
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
    .depoimentos {
        padding: 40px 15px;
        min-height: 450px;
    }

    .depoimento-card {
        padding: 20px;
        max-width: 350px;
    }
}