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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #f9fafb;
}

/* Cabeçalho */
header {
    text-align: center;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #4a6fa5;
    color: white;
    padding: 2rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Seção de Visão do Curso */
.course-vision {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #4a6fa5;
}

.course-vision h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.course-vision h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #4a6fa5;
    border-radius: 1.5px;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.vision-content strong {
    color: #4a6fa5;
}

.vision-list {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.vision-list li {
    margin-bottom: 0.8rem;
    position: relative;
}

.vision-list li::marker {
    color: #4a6fa5;
    font-weight: bold;
}

.audience-box {
    background-color: #edf2f7;
    border-radius: 10px;
    padding: 1.8rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.audience-box h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.audience-box p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.audience-box p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Conteúdo principal */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.intro {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro h2 {
    color: #4a6fa5;
    margin-bottom: 1rem;
}

/* Estilos para os módulos */
.module {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.module h2 {
    color: #4a6fa5;
    margin-bottom: 1rem;
}

/* Estilos para os tópicos dentro dos módulos */
.topic {
    margin-top: 1.5rem;
}

.topic h3 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.topic p {
    margin-bottom: 1rem;
}

/* Estilos para as seções de frameworks */
.framework-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.framework-section > h4 {
    color: #3a5a8c;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.framework-section > p {
    margin-bottom: 1.5rem;
}

/* Estilos para os cards de frameworks */
.frameworks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.framework-card {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.framework-card h4 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.framework-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Estilos para exemplos de código */
.code-example {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-example h4 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-example pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* Estilos para listas de recursos */
.feature-list {
    list-style-type: none;
    padding-left: 0.5rem;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Estilos para opções de hospedagem */
.hosting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.hosting-card {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hosting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hosting-card h4 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Estilos para caixa de dicas */
.tip-box {
    background-color: #ebf4ff;
    border-left: 4px solid #4a6fa5;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-box h4 {
    color: #4a6fa5;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Estilos para o Módulo 3 - Publicação de Aplicativos */
.hosting-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.hosting-card {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hosting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hosting-card h4 {
    color: #4a6fa5;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.hosting-features {
    list-style-type: none;
    padding-left: 0;
    margin: 1.2rem 0;
}

.hosting-features li {
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.hosting-features li::before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: 0.2rem;
    font-size: 1.2rem;
}

/* Estilo para o card destacado do Cloudflare Pages */
.hosting-card.featured {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #4a6fa5;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.highlight-text {
    background-color: #e0f2fe;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1.2rem;
}

/* Estilos para os passos do processo de publicação */
.process-steps {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
    margin: 2rem 0;
}

.process-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.process-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    background-color: #4a6fa5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.process-steps h4 {
    color: #4a6fa5;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.process-steps p {
    font-size: 0.95rem;
}

/* Estilos para o Módulo 4 - Supabase como Backend */
.featured-banner {
    display: flex;
    background-color: #3ecf8e;
    background-image: linear-gradient(135deg, #3ecf8e 0%, #13b886 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(62, 207, 142, 0.2);
    align-items: center;
}

.banner-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
}

.banner-content h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    margin-bottom: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Grid de recursos do Supabase */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #3ecf8e;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-box h4 {
    color: #3a5a8c;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* Lista de vantagens */
.advantage-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.advantage-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.advantage-list li::before {
    content: "✓";
    color: #3ecf8e;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Seção de integração */
.integration-section {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1.8rem;
    margin: 2rem 0;
}

.integration-section h3 {
    color: #4a6fa5;
    margin-bottom: 1rem;
}

.integration-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.2rem 0;
}

.integration-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.integration-list li::before {
    content: "→";
    color: #4a6fa5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Estilos para a seção de Metodologia de Ensino */
.methodology-section {
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.methodology-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #4a6fa5, #6a8cbe, #4a6fa5);
}

.methodology-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.methodology-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4a6fa5;
    border-radius: 2px;
}

.methodology-section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #555;
}

.methodology-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.methodology-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.methodology-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    background-color: #4a6fa5;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.methodology-number::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.methodology-number::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.methodology-content {
    padding: 2.2rem;
    flex: 1;
}

.methodology-content h3 {
    color: #4a6fa5;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.methodology-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4a6fa5;
    border-radius: 1.5px;
}

.methodology-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.methodology-content p.note {
    background-color: #f1f5f9;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 4px solid #4a6fa5;
    margin-top: 1.2rem;
    position: relative;
}

.methodology-content p.note::before {
    content: "Nota:";
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: #4a6fa5;
}

.methodology-highlight {
    background-color: #e6f0ff;
    background-image: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #d1e3ff;
    position: relative;
    overflow: hidden;
}

.methodology-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 20%);
    pointer-events: none;
}

.methodology-highlight h3 {
    color: #3a5a8c;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.methodology-highlight h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4a6fa5;
    border-radius: 1.5px;
}

.methodology-highlight p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.2rem;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

/* Responsividade para a seção de metodologia */
@media (max-width: 768px) {
    .methodology-card {
        flex-direction: column;
    }
    
    .methodology-number {
        min-width: 100%;
        padding: 1rem 0;
    }
}

/* Rodapé */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
}
