/* CSS Moderno para Páginas de Avaliações */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

/* Container Principal */
.avaliacoes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    padding-top: 6rem; /* Espaço para o header fixo */
}

/* Header das Avaliações */
.avaliacoes-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.avaliacoes-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #6366f1; /* Roxo temático */
    margin-bottom: 1rem;
}

.avaliacoes-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulário de Avaliação */
.avaliacoes-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.avaliacoes-form h2 {
    text-align: center;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Sistema de Estrelas Melhorado */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating label::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
}

/* Botão de Envio */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); /* Roxo temático */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Roxo mais escuro no hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Média das Avaliações */
.media-avaliacoes {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.media-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.media-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nota {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #e2e8f0;
    transition: color 0.3s ease;
}

.star.active {
    color: #6366f1; /* Roxo temático */
}

.total-avaliacoes {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

/* Filtro de Avaliações */
.filtro-avaliacoes {
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.filtro-form select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filtro-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Grid de Avaliações */
.avaliacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avaliacao-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1; /* Borda roxa à esquerda */
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

/* Removido a linha colorida dos cards */

.avaliacao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.avaliacao-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.avaliacao-card .stars {
    display: flex;
    gap: 0.2rem;
}

.avaliacao-card .star {
    font-size: 1.2rem;
    color: #e2e8f0;
}

.avaliacao-card .star.active {
    color: #6366f1; /* Roxo temático */
}

.avaliacao-texto {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.avaliacao-texto::before {
    content: '"';
    font-size: 1.5rem;
    color: #cbd5e0;
    margin-right: 0.25rem;
}

.avaliacao-texto::after {
    content: '"';
    font-size: 1.5rem;
    color: #cbd5e0;
    margin-left: 0.25rem;
}

.avaliacao-data {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.paginacao .pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.paginacao .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.paginacao .pagination li a:hover,
.paginacao .pagination li.active a {
    background: #6366f1; /* Roxo temático */
    color: white;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

.alert-success {
    background: #6366f1; /* Roxo temático */
    color: white;
    border: none;
}

.alert-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.alert ul {
    margin: 0.5rem 0 0 1rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .avaliacoes-container {
        padding: 1rem 0.5rem;
    }
    
    .avaliacoes-header h1 {
        font-size: 2.2rem;
    }
    
    .avaliacoes-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .avaliacoes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .avaliacao-card {
        padding: 1.25rem;
    }
    
    .media-nota {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nota {
        font-size: 2.5rem;
    }
    
    .rating label {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .avaliacoes-header h1 {
        font-size: 1.8rem;
    }
    
    .avaliacoes-form {
        padding: 1.25rem;
    }
    
    .avaliacoes-form h2 {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .avaliacao-card {
        padding: 1rem;
    }
    
    .user-info h3 {
        font-size: 1rem;
    }
    
    .avaliacao-texto {
        font-size: 0.95rem;
    }
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo escuro (se suportado) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .avaliacoes-form,
    .media-box,
    .avaliacao-card {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .avaliacoes-header h1 {
        color: #e2e8f0;
    }
    
    .form-group input,
    .form-group textarea {
        background: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}