/* Estilos Lúdicos e Responsivos - Sistema de Avaliação da Literariedade */

:root {
    --cor-primaria: #FFB6C1; /* Rosa pastel */
    --cor-secundaria: #B0E0E6; /* Azul pastel */
    --cor-terciaria: #FFE4B5; /* Amarelo pastel */
    --cor-destaque: #DDA0DD; /* Roxo pastel */
    --cor-texto: #333;
    --cor-texto-claro: #666;
    --cor-branco: #FFFFFF;
    --cor-sombra: rgba(0, 0, 0, 0.1);
    --cor-erro: #ff6b6b;
    --cor-sucesso: #51cf66;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px var(--cor-sombra);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    color: var(--cor-branco);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--cor-branco);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Cards */
.card {
    background: var(--cor-branco);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--cor-sombra);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px var(--cor-sombra);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-destaque) 100%);
    color: var(--cor-branco);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--cor-secundaria);
    color: var(--cor-branco);
}

.btn-secondary:hover {
    background: #9DD5DB;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cor-texto);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.form-group .error {
    color: var(--cor-erro);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Questionário Fullscreen */
.fullscreen-background {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.8s ease-in-out;
    padding: 2rem 0;
}

.fullscreen-background .content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.fullscreen-background .container {
    position: relative;
    z-index: 2;
}

.questionario-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.fullscreen-background .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cor-primaria) 0%, var(--cor-destaque) 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-branco);
    font-weight: 600;
    font-size: 0.9rem;
}

.questao-card {
    background: var(--cor-branco);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--cor-sombra);
}

.questao-numero {
    display: inline-block;
    background: var(--cor-destaque);
    color: var(--cor-branco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.questao-texto {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--cor-texto);
    line-height: 1.8;
}

.opcoes-resposta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opcao-resposta {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9f9f9;
}

.opcao-resposta:hover {
    border-color: var(--cor-primaria);
    background: #fff5f5;
    transform: translateX(5px);
}

.opcao-resposta input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.opcao-resposta input[type="radio"]:checked + label {
    font-weight: 600;
    color: var(--cor-destaque);
}

.opcao-resposta.selected {
    border-color: var(--cor-destaque);
    background: #f0e6ff;
}

.opcao-valor {
    font-weight: 600;
    color: var(--cor-destaque);
    margin-right: 0.5rem;
}

.justificativa {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
    font-style: italic;
}

/* Resultado */
.resultado-container {
    max-width: 900px;
    margin: 0 auto;
}

.resultado-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    border-radius: 20px;
    color: var(--cor-branco);
    margin-bottom: 2rem;
}

.pontuacao {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.categoria {
    font-size: 1.5rem;
    font-weight: 600;
}

.resultado-conteudo {
    background: var(--cor-branco);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resultado-secao {
    margin-bottom: 2rem;
}

.resultado-secao h3 {
    color: var(--cor-destaque);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resultado-secao p {
    line-height: 1.8;
    text-align: justify;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: var(--cor-branco);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--cor-primaria);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Admin */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.login-form {
    max-width: 400px;
    margin: 5rem auto;
}

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cor-branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--cor-sombra);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background: var(--cor-destaque);
    color: var(--cor-branco);
    font-weight: 600;
}

table tr:hover {
    background: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-literal {
    background: var(--cor-sucesso);
    color: white;
}

.badge-duvidas {
    background: var(--cor-terciaria);
    color: var(--cor-texto);
}

.badge-nao-literal {
    background: var(--cor-erro);
    color: white;
}

.badge-nao-concluido {
    background: #95a5a6;
    color: white;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.alert-error {
    background: #ffe6e6;
    color: var(--cor-erro);
    border: 1px solid var(--cor-erro);
}

.alert-success {
    background: #e6ffe6;
    color: var(--cor-sucesso);
    border: 1px solid var(--cor-sucesso);
}

/* Responsivo */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .questao-texto {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .pontuacao {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .questao-card {
        padding: 1rem;
    }
    
    .fullscreen-background {
        background-attachment: scroll;
        padding: 1rem 0;
    }
    
    .fullscreen-background .card {
        padding: 1.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes pulse-attention {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Mensagem de Validação */
.mensagem-validacao {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border-left: 5px solid #ff4757;
    animation: slideDown 0.3s ease;
}

.mensagem-icon {
    font-size: 1.5rem;
    animation: pulse-attention 1s ease-in-out infinite;
}

.mensagem-texto {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Hero Section Fullscreen */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1920&q=80&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    animation: fadeIn 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.2s ease;
}

.btn-hero {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-destaque) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 1.4s ease;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--cor-destaque) 0%, var(--cor-primaria) 100%);
}

/* Main Sections */
.main-sections {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    z-index: 2;
}

.section-modern {
    margin-bottom: 3rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card-highlight {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9) 0%, rgba(176, 224, 230, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-title {
    font-size: 2rem;
    color: var(--cor-destaque);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid var(--cor-destaque);
    padding-bottom: 0.5rem;
}

.modern-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.modern-list li {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-left: 4px solid var(--cor-destaque);
    transition: all 0.3s ease;
}

.modern-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thank-you-text {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    line-height: 1.8;
    color: var(--cor-texto);
}

/* Responsivo - Hero Section */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .main-sections {
        padding: 2rem 0;
    }
    
    .fullscreen-background {
        padding: 1rem 0;
    }
    
    .fullscreen-background .card {
        padding: 1rem;
    }
    
    .mensagem-validacao {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .mensagem-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
}

