/* redacao.css - Estilos específicos para a página de redação */

/* Hero personalizado */
.redacao-hero .trophy-container {
    background: linear-gradient(135deg, #FF6B6B 0%, #DC2626 100%);
}

/* Formulário */
.redacao-form {
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #070738;
}

.form-label i {
    color: #DC2626;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #F9FAFB;
}

.form-input:focus {
    outline: none;
    border-color: #DC2626;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    resize: vertical;
    background: #F9FAFB;
    transition: all 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: #DC2626;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6B7280;
}

/* Grid de estilos */
.estilo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.estilo-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #F9FAFB;
}

.estilo-option:hover {
    border-color: #1E40AF;
    background: #FFFFFF;
}

.estilo-option.selected {
    border-color: #DC2626;
    background: rgba(220, 38, 38, 0.05);
}

.estilo-radio {
    display: none;
}

.estilo-icon {
    color: #1E40AF;
    font-size: 1rem;
}

.estilo-label {
    font-weight: 500;
    color: #1F2937;
    font-size: 0.9rem;
}

/* Contador de caracteres */
.caracteres-contador {
    text-align: right;
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

.caracteres-contador.alerta {
    color: #DC2626;
    font-weight: 600;
}

.contador-info {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-left: 0.5rem;
}

/* Botão de envio */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit:hover:not(:disabled) {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-submit:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Lista de requisitos */
.requisitos-list {
    list-style: none;
    padding: 0;
}

.requisito-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #6B7280;
    transition: all 0.2s;
}

.requisito-item i {
    font-size: 0.6rem;
    color: #9CA3AF;
    transition: all 0.2s;
}

.requisito-item.valido {
    color: #10B981;
}

.requisito-item.valido i {
    color: #10B981;
    font-weight: 900;
}

/* Dicas */
.dicas-list {
    list-style: none;
    padding: 0;
}

.dicas-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #1F2937;
}

.dicas-list li i {
    color: #10B981;
    font-size: 0.85rem;
}

/* Tabela de histórico */
.redacoes-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pendente {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.status-corrigido {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.nota-badge {
    font-weight: 700;
    color: #1E40AF;
}

.acao-btn {
    background: none;
    border: none;
    color: #1E40AF;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.acao-btn:hover {
    background: rgba(30, 64, 175, 0.1);
    color: #DC2626;
}

/* Alerta de limite */
.correcoes-alerta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.correcoes-alerta i {
    font-size: 1rem;
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    background: #F3F4F6;
    border-radius: 2rem;
    font-size: 0.85rem;
    color: #4B5563;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #070738 0%, #1a1a4a 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Visualização da redação no modal */
.redacao-visualizacao {
    font-family: 'Inter', sans-serif;
}

.redacao-metadata {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.redacao-metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4B5563;
    font-size: 0.9rem;
}

.redacao-metadata-item i {
    color: #DC2626;
}

.redacao-texto {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.redacao-observacoes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    border-radius: 0.5rem;
}

/* Correção no modal */
.correcao-competencias {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.competencia-item {
    background: #F9FAFB;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
}

.competencia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.competencia-nome {
    font-weight: 600;
    color: #070738;
}

.competencia-nota {
    font-weight: 700;
    color: #DC2626;
}

.competencia-comentarios {
    color: #4B5563;
    font-size: 0.9rem;
}

.comentarios-professor {
    background: rgba(7, 7, 56, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #070738;
    margin-top: 1.5rem;
}

.comentarios-professor h4 {
    color: #070738;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .estilo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .redacao-metadata {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .estilo-grid {
        grid-template-columns: 1fr;
    }
}