/* ============================================================
   IGAM – Instituto Gamaliel | AD Valença
   igam.css
   ============================================================ */

/* Hero IGAM */
.hero-igam {
    background: linear-gradient(135deg, #5B21B6 0%, #1E40AF 50%, #7C3AED 100%);
    position: relative;
    overflow: hidden;
}
.hero-igam::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Cards de curso */
.curso-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.curso-card-basico { border-top: 4px solid #0EA5E9; }
.curso-card-basico:hover { border-color: #0EA5E9; }
.curso-card-medio { border-top: 4px solid #F59E0B; }
.curso-card-medio:hover { border-color: #F59E0B; }
.curso-card-avancado { border-top: 4px solid #7C3AED; }
.curso-card-avancado:hover { border-color: #7C3AED; }

/* Badge dos cursos */
.badge-basico { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.badge-medio { background: linear-gradient(135deg, #F59E0B, #D97706); }
.badge-avancado { background: linear-gradient(135deg, #7C3AED, #6D28D9); }

/* Ícone de livro/módulo */
.modulo-icon {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    border-radius: 4px 12px 12px 4px;
    border-left: 6px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #6D28D9;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}
.modulo-icon-basico { border-left-color: #0EA5E9; color: #0284C7; background: linear-gradient(135deg, #E0F2FE, #BAE6FD); }
.modulo-icon-medio { border-left-color: #F59E0B; color: #D97706; background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.modulo-icon-avancado { border-left-color: #7C3AED; color: #6D28D9; background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }

/* FAQ accordion */
.faq-item { transition: all 0.3s ease; }
.faq-item:hover { background-color: #F5F3FF; }
.faq-btn { transition: all 0.2s ease; }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.3s ease; }
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-content.open {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Grade curricular expandível */
.grade-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.grade-content.open { max-height: 1200px; }
.grade-toggle-icon { transition: transform 0.3s ease; }
.grade-toggle-icon.rotated { transform: rotate(180deg); }

/* Seção headers formulário */
.section-header-violet { background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); }

/* Coordenador */
.coordenador-foto {
    border: 4px solid #7C3AED;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

/* Info cards */
.info-card {
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Stat counter */
.stat-number {
    background: linear-gradient(135deg, #7C3AED, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Seção CTA */
.cta-igam {
    background: linear-gradient(135deg, #5B21B6 0%, #1E40AF 100%);
}

/* Alertas */
.alert-success-igam {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-left: 4px solid #22C55E;
}
.alert-error-igam {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-left: 4px solid #EF4444;
}

/* Preview foto */
#previewContainerIgam { transition: border-color 0.3s ease; }
#previewContainerIgam:hover { border-color: #7C3AED; }
#previewContainerIgam.has-image { border-style: solid; border-color: #7C3AED; }

/* Captcha */
.captcha-box-igam {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    letter-spacing: 0.5em;
    user-select: none;
    -webkit-user-select: none;
}

/* Responsividade */
@media (max-width: 640px) {
    .modulo-icon { width: 60px; height: 75px; font-size: 1.4rem; }
    .captcha-box-igam { font-size: 1.5rem; padding: 0.5rem 1rem; letter-spacing: 0.3em; }
}

@media print {
    .hero-igam, .cta-igam, #btnSubmitIgam { display: none !important; }
}
