/* styles.css */

/* Estilo geral para a fonte Inter */
body {
    font-family: 'Inter', sans-serif;
    /* Aplicando o gradiente geral */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Efeito de scroll suave */
html {
    scroll-behavior: smooth;
}

/* =============================
   PALETA  DO PROJETO PROFIAS
   =============================
*/
/* Cor Primária: Azul */
.bg-primary-blue {
    background-color: #1a75d1;
}

.text-primary-blue {
    color: #1a75d1;
}

.border-primary-blue {
    border-color: #1a75d1;
}

/* Cor de Destaque: Amarelo */
.bg-accent-yellow {
    background-color: #fbc02d;
}

#resetButton:hover {
    background-color: #ffffff;
    color: #094b82;
    text-shadow:none;
}

.text-accent-yellow {
    color: #fbc02d;
    text-shadow: 2px 2px 4px #094b82;
}

/* Cor de Destaque: Azul Escuro */
.bg-dark-blue {
    background-color: #094b82;
}

.text-dark-blue {
    color: #094b82;
}

/* Cores de gradiente e outros */
.bg-primary-blue-light {
    background-color: #3b82f6;
}

.bg-blue-gradient-soft {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
}

/* ===========================
   NOVOS ESTILOS DE DESIGN
   ===========================
*/

.nav-link.active-link {
    background-color: #fbc02d !important;
    outline: 2px solid #1a75d1;
    outline-offset: 2px;
}

a[href="#colabore"].active-link {
    color: #094b82 !important;
}

/* Seção Hero */
.hero-section {
    background: linear-gradient(135deg, #032744 0%, #052743 50%, #4caeff 100%);
    /*background: linear-gradient(135deg, #094b82 0%, #094b82 50%, #094b82 100%);*/
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ==============================================
   ESTILOS ADICIONAIS PARA A SEÇÃO HERO - inicio
   ============================================== */

/* Animação flutuante para a imagem da personagem */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

/* Cards */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 117, 209, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a75d1, #fbc02d, #1a75d1);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modern-card:hover::before {
    transform: translateX(0);
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 117, 209, 0.2);
    border-color: rgba(26, 117, 209, 0.3);
}

/* ====================================================
   CLASSE PARA BORDA GRADIENTE EM IMAGENS (SEÇÃO EQUIPE)
   ====================================================
*/
/* Container para o efeito de borda gradiente */
.image-gradient-border-wrapper {
    position: relative;
    /* O padding cria o espaço que se tornará a borda visível */
    padding: 3px; /* Ajuste a espessura da borda aqui */
    border-radius: 9999px; /* Equivalente a rounded-full do Tailwind */
    background: transparent; /* Começa sem gradiente */
    background-clip: padding-box; /* Garante que o fundo não sangre para sob a borda */
    transition: all 0.3s ease-in-out;
}

/* Aplica o gradiente e um efeito de elevação no hover */
.image-gradient-border-wrapper:hover {
    background: linear-gradient(135deg, #1a75d1, #fbc02d);
    transform: translateY(-8px) scale(1.05);
}

/* Estilização da imagem dentro do container */
.image-gradient-border-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crucial: o raio da borda da imagem deve corresponder ao do container */
    border-radius: 9999px; 
}


/* Seção de Texto Principal com padrões */
.text-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.text-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(26, 117, 209, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(251, 192, 45, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.text-content {
    position: relative;
    z-index: 1;
}

/* Tipografia  */
.heading-secondary {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.text-large {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: #4a5568;
}

/* Botões */
.btn-modern {
    background: linear-gradient(135deg, #1a75d1 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 117, 209, 0.3);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    background: rgb(251, 192, 45);
    color: rgb(9, 75, 130);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 117, 209, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #fbc02d 0%, #f59e0b 100%);
    color: #1a75d1;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(251, 192, 45, 0.4);
}

/* Seções com Padrões Visuais */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(26, 117, 209, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-lines {
    background-image: linear-gradient(45deg, rgba(26, 117, 209, 0.05) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(26, 117, 209, 0.05) 25%, transparent 25%);
    background-size: 30px 30px;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .modern-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .text-section {
        padding: 3rem 0;
    }
}

/* MELHORIAS DE ACESSIBILIDADE E RESPONSIVIDADE */
.focus-visible {
    outline: 2px solid #1a75d1;
    outline-offset: 2px;
}

.btn-accessible {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-accessible:focus-visible {
    outline: 2px solid #fbc02d;
    outline-offset: 2px;
}

.btn-accessible:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-accessible:active {
    transform: translateY(0);
}

.logo-responsive {
    height: 3rem;
    width: auto;
    transition: all 0.3s ease;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-responsive {
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo-responsive {
        height: 2rem;
    }
}

.form-input-accessible {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input-accessible:focus {
    outline: none;
    border-color: #1a75d1;
    box-shadow: 0 0 0 3px rgba(26, 117, 209, 0.1);
}

.form-input-accessible:focus-visible {
    outline: 2px solid #1a75d1;
    outline-offset: 2px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilo customizado para a fonte e animações */
h1 {
    text-shadow: 2px 2px 4px #094b82;
}

/* Estilo para a caixa de resultado do plano de aula gerado */
#lesson-plan-result h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a75d1;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#lesson-plan-result ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

#lesson-plan-result p {
    margin-bottom: 0.5rem;
}

#lesson-plan-result strong {
    font-weight: 700;
    color: #1a75d1;
}

.logo-tipo {
    border-radius: 0.75rem;
}

/* Estilo para o efeito de troca de ícone no botão */
#generate-button .hover-icon {
    display: none;
}

#generate-button:hover .default-icon {
    display: none;
}

#generate-button:hover .hover-icon {
    display: inline-block;
}

/* Estilos para os botões da seção Hero (Conheça as Trilhas e Reiniciar Animação) */
.btn-hero {
    border-radius: 9999px; /* rounded-full */
    padding: 1rem 2rem; /* py-4 px-8 */
    font-weight: 700; /* font-bold */
    transition: all 0.3s ease;
    transform: scale(1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Hover e click para os botões da seção Hero */
.btn-hero:hover {
    background-color: #fbc02d;
    color: #094b82;
    border-color: #fbc02d;
    transform: scale(1.05);
}

.btn-hero.btn-secondary {
    background-color: white;
    color: #1a75d1;
    border: 2px solid #1a75d1;
}

.btn-hero.btn-secondary-white {
    background-color: white;
    color: #1a75d1;
    border: 2px solid #1a75d1;
}

/* Efeito para links de navegação */
nav a.hover\:bg-accent-yellow:hover {
    background-color: #fbc02d; /* Fundo amarelo */
    color: #094b82; /* Texto azul */
}

nav a.bg-primary-blue.hover\:bg-accent-yellow:hover {
    background-color: #fbc02d;
    color: #1a75d1;
}

/* Estilos para a seção da equipe */
/* Garante que o card seja um flex container para alinhar os itens, pois varia a quantidade de informação da equipe */
#equipe .modern-card {
    display: flex;
    flex-direction: column;
    height: auto; /* Deixa a altura flexível para o conteúdo se expandir */
}

/* Garante que a descrição e o botão usem o espaço disponível */
#equipe .description-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que o container se expanda e empurre o botão para baixo */
}

/* Estilo do botão "Saber Mais" */
.btn-more {
    background-color: #094b82; /* Fundo azul escuro padrão */
    color: #ffffff; /* Texto branco padrão */
    border: none;
    border-radius: 9999px; /* rounded-full */
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efeito hover para o botão "Saber Mais" */
.btn-more:hover {
    background-color: #fbc02d; /* Fundo amarelo */
    color: #1a75d1; /* Texto azul */
}

/* Estilos para o botão quando clicado (mudança de cor de fundo e texto) */
.btn-more.active {
    background-color: #fbc02d; /* Fundo amarelo */
    color: #1a75d1; /* Texto azul */
}

/* Nova classe para centralizar o texto nos links de navegação */
.nav-link-center-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Impede que o texto quebre em duas linhas */
}

/* ajustes para o footer */
footer {
    background-color: #1a202c; /* Usando uma cor de fundo escura para o rodapé */
}
