/* 
 * CSS específico para a página de Depoimentos
 * VS2 Theme - Depoimentos Styles
 */

/* Introdução da página depoimentos */
.page-intro {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e1e1e1;
}

.page-intro p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* Container principal dos depoimentos */
.depoimentos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Introdução com contador */
.depoimentos-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #ff6600;
}

.depoimentos-count {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

.depoimentos-count strong {
    color: #ff6600;
    font-size: 1.2em;
}

/* Card individual do depoimento */
.depoimento-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.depoimento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.depoimento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.02) 0%, rgba(255, 102, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.depoimento-card:hover::before {
    opacity: 1;
}

/* Conteúdo do depoimento */
.depoimento-content {
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Foto do depoente */
.depoimento-foto {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.depoimento-card:hover .depoimento-foto {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.foto-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.depoimento-card:hover .foto-image {
    transform: scale(1.1);
}

/* Placeholder para foto */
.foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
}

.placeholder-icon {
    font-size: 2.5em;
    opacity: 0.6;
}

/* Informações do depoimento */
.depoimento-info {
    flex: 1;
    min-width: 0; /* Permite que o texto seja quebrado */
}

/* Cabeçalho com nome e curso */
.depoimento-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.depoimento-nome {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.depoimento-card:hover .depoimento-nome {
    color: #0073aa;
}

.depoimento-curso {
    display: inline-block;
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.depoimento-card:hover .depoimento-curso {
    background: linear-gradient(135deg, #e55a00 0%, #cc4f00 100%);
    transform: scale(1.05);
}

/* Texto do depoimento */
.depoimento-texto {
    position: relative;
    font-style: italic;
    line-height: 1.7;
    color: #555;
}

.aspas-abertura,
.aspas-fechamento {
    font-size: 3em;
    font-weight: bold;
    color: #ff6600;
    opacity: 0.3;
    position: absolute;
    font-family: Georgia, serif;
    line-height: 1;
}

.aspas-abertura {
    top: -10px;
    left: -15px;
}

.aspas-fechamento {
    bottom: -30px;
    right: 10px;
}

.depoimento-conteudo {
    padding: 10px 25px 10px 15px;
    font-size: 1.05em;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.depoimento-conteudo p {
    margin-bottom: 15px;
}

.depoimento-conteudo p:last-child {
    margin-bottom: 0;
}

.depoimento-conteudo strong {
    color: #333;
    font-weight: 600;
}

.depoimento-conteudo em {
    color: #777;
}

/* Paginação dos depoimentos */
.depoimentos-pagination {
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 20px 0;
    border-top: 2px solid #e1e1e1;
    grid-column: 1;
}

.depoimentos-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid #e1e1e1;
}

.depoimentos-pagination .page-numbers:hover,
.depoimentos-pagination .page-numbers.current {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.depoimentos-pagination .page-numbers.prev,
.depoimentos-pagination .page-numbers.next {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.depoimentos-pagination .page-numbers.prev:hover,
.depoimentos-pagination .page-numbers.next:hover {
    background: #005a8a;
    border-color: #005a8a;
}

/* Estado sem depoimentos */
.no-depoimentos {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
    color: #666;
}

.no-depoimentos h3 {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.5em;
}

.no-depoimentos p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.no-depoimentos ol {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.no-depoimentos li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.no-depoimentos strong {
    color: #333;
}

.btn-adicionar-depoimento {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-adicionar-depoimento:hover {
    background: #005a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Variações para diferentes depoimentos */
.depoimento-card:nth-child(even) {
    border-left: 4px solid #ff6600;
}

.depoimento-card:nth-child(odd) {
    border-left: 4px solid #0073aa;
}

.depoimento-card:nth-child(even) .depoimento-curso {
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
}

.depoimento-card:nth-child(even):hover .depoimento-curso {
    background: linear-gradient(135deg, #005a8a 0%, #004670 100%);
}

.depoimento-card:nth-child(even) .aspas-abertura,
.depoimento-card:nth-child(even) .aspas-fechamento {
    color: #0073aa;
}

/* Depoimentos em destaque */
.depoimento-card.depoimento-destaque {
    border: 2px solid #ff6600;
    background: linear-gradient(135deg, #fffbf8 0%, #fff5f0 100%);
}

.depoimento-card.depoimento-destaque::after {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6600;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
    .depoimentos-grid {
        gap: 25px;
    }
    
    .depoimentos-intro {
        padding: 18px;
    }
    
    .depoimento-content {
        padding: 20px;
        gap: 20px;
    }
    
    .depoimento-foto {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .placeholder-icon {
        font-size: 2.2em;
    }
    
    .depoimento-nome {
        font-size: 1.2em;
    }
    
    .depoimento-curso {
        font-size: 0.8em;
    }
    
    .depoimento-conteudo {
        font-size: 1em;
        padding: 10px 20px 10px 10px;
    }
    
    .aspas-abertura {
        font-size: 2.5em;
        top: -8px;
        left: -10px;
    }
    
    .aspas-fechamento {
        font-size: 2.5em;
        bottom: -25px;
        right: 5px;
    }
}

/* Responsivo para mobile - mantém foto à esquerda */
@media (max-width: 768px) {
    .depoimentos-grid {
        gap: 20px;
    }
    
    .depoimentos-intro {
        padding: 15px;
    }
    
    .depoimentos-count {
        font-size: 1em;
    }
    
    .depoimento-content {
        padding: 20px;
        gap: 15px;
    }
    
    .depoimento-foto {
        flex: 0 0 80px;
        height: 80px;
    }
    
    .depoimento-info {
        text-align: left;
    }
    
    .depoimento-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .depoimento-nome {
        font-size: 1.1em;
    }
    
    .depoimento-curso {
        font-size: 0.85em;
        padding: 5px 15px;
    }
    
    .depoimento-texto {
        text-align: justify;
    }
    
    .depoimento-conteudo {
        font-size: 0.95em;
        padding: 5px 15px 5px 5px;
    }
    
    .aspas-abertura {
        font-size: 2em;
        top: -5px;
        left: -5px;
    }
    
    .aspas-fechamento {
        font-size: 2em;
        bottom: -15px;
        right: 0px;
    }
    
    .depoimentos-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 0.9em;
    }
    
    .no-depoimentos {
        padding: 40px 20px;
    }
    
    .no-depoimentos ol {
        padding: 15px 20px;
    }
}

/* Mobile muito pequeno - foto menor mas ainda à esquerda */
@media (max-width: 480px) {
    .depoimentos-intro {
        padding: 12px;
    }
    
    .depoimento-content {
        padding: 15px;
        gap: 12px;
    }
    
    .depoimento-foto {
        flex: 0 0 70px;
        height: 70px;
    }
    
    .placeholder-icon {
        font-size: 1.8em;
    }
    
    .depoimento-nome {
        font-size: 1em;
    }
    
    .depoimento-curso {
        font-size: 0.8em;
        padding: 4px 12px;
    }
    
    .depoimento-conteudo {
        font-size: 0.9em;
        padding: 5px 10px 5px 0px;
    }
    
    .aspas-abertura,
    .aspas-fechamento {
        font-size: 1.8em;
    }
    
    .aspas-abertura {
        top: -3px;
        left: -3px;
    }
    
    .aspas-fechamento {
        bottom: -12px;
        right: -2px;
    }
    
    .depoimentos-pagination {
        margin: 20px 0 15px 0;
        padding: 15px 0;
    }
    
    .depoimentos-pagination .page-numbers {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 0.85em;
    }
    
    .no-depoimentos {
        padding: 30px 15px;
    }
}

/* Telas muito pequenas (iPhone SE, etc.) */
@media (max-width: 360px) {
    .depoimentos-intro {
        padding: 10px;
    }
    
    .depoimento-content {
        padding: 12px;
        gap: 10px;
    }
    
    .depoimento-foto {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .placeholder-icon {
        font-size: 1.5em;
    }
    
    .depoimento-nome {
        font-size: 0.95em;
    }
    
    .depoimento-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .depoimento-curso {
        font-size: 0.75em;
        padding: 3px 10px;
    }
    
    .depoimento-conteudo {
        font-size: 0.85em;
        padding: 3px 8px 3px 0px;
    }
    
    .aspas-abertura,
    .aspas-fechamento {
        font-size: 1.5em;
    }
    
    .aspas-abertura {
        top: -2px;
        left: -2px;
    }
    
    .aspas-fechamento {
        bottom: -10px;
        right: -1px;
    }
}

/* Animações */
.depoimento-card {
    animation: fadeInUp 0.6s ease-out;
}

.depoimento-card:nth-child(2) {
    animation-delay: 0.1s;
}

.depoimento-card:nth-child(3) {
    animation-delay: 0.2s;
}

.depoimento-card:nth-child(4) {
    animation-delay: 0.3s;
}

.depoimento-card:nth-child(5) {
    animation-delay: 0.4s;
}

.depoimento-card:nth-child(6) {
    animation-delay: 0.5s;
}

.depoimento-card:nth-child(7) {
    animation-delay: 0.6s;
}

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

/* Efeitos especiais */
.depoimento-card:hover .aspas-abertura,
.depoimento-card:hover .aspas-fechamento {
    opacity: 0.5;
    transform: scale(1.1);
}

.depoimento-card:hover .depoimento-conteudo {
    color: #333;
}

/* Print styles */
@media print {
    .depoimento-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .depoimento-foto {
        box-shadow: none;
    }
    
    .depoimento-card::before {
        display: none;
    }
    
    .aspas-abertura,
    .aspas-fechamento {
        color: #999 !important;
    }
    
    .depoimento-curso {
        background: #666 !important;
        color: white !important;
    }
    
    .depoimentos-pagination {
        display: none;
    }
}