/* ===================================
   Python Training - Estilos Principais
   Fontes escolares e de fácil leitura
   =================================== */

/* Importando fontes do Google Fonts - adequadas para educação */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Comic+Neue:wght@400;700&family=Patrick+Hand&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --accent-color: #FFB84D;
    --danger-color: #E74C3C;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Fontes */
    --font-main: 'Nunito', sans-serif;
    --font-handwriting: 'Patrick Hand', cursive;
    --font-comic: 'Comic Neue', cursive;
}

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

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* Navegação */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 1.1rem;
}

.navbar-brand {
    font-family: var(--font-comic);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

/* Paragráfos e texto */
p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
}

/* Cards e containers */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background: var(--bg-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.2rem;
}

.card-body {
    padding: 1.5rem;
    font-size: 1.1rem;
}

/* List groups */
.list-group-item {
    border-radius: 10px !important;
    margin-bottom: 0.8rem;
    border: 2px solid #e0e0e0;
    padding: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f0f8ff;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.list-group-item h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Badges de módulos */
.badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-modulo {
    background-color: var(--primary-color);
}

.badge-duracao {
    background-color: var(--accent-color);
}

.badge-nivel {
    background-color: var(--secondary-color);
}

/* Imagens */
.img-modulo {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

/* Seções de conteúdo */
.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-section ul, .content-section ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Alertas informativos */
.alert-info-custom {
    background-color: #e3f2fd;
    border-left: 5px solid var(--primary-color);
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.alert-success-custom {
    background-color: #e8f5e9;
    border-left: 5px solid var(--secondary-color);
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.alert-warning-custom {
    background-color: #fff3e0;
    border-left: 5px solid var(--accent-color);
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Quadro verde escolar para código */
pre {
    background-color: #1b5e20 !important; /* Verde escuro como quadro escolar */
    border: 8px solid #2e7d32; /* Borda verde mais clara simulando moldura de madeira */
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 
        inset 0 0 0 2px #4caf50, /* Borda interna verde clara */
        0 4px 15px rgba(0, 0, 0, 0.2), /* Sombra externa */
        inset 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra interna para profundidade */
    position: relative;
    overflow-x: auto;
}

/* Garantir que pre dentro de divs também tenha o estilo */
.bg-light pre,
.content-section pre,
div pre {
    background-color: #1b5e20 !important;
    border: 8px solid #2e7d32;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 
        inset 0 0 0 2px #4caf50,
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

pre code {
    color: #ffffff !important; /* Texto branco como giz */
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3); /* Efeito de giz */
    background: transparent !important;
}

/* Efeito de "pó de giz" nas bordas */
pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 100%);
}

/* Destaque para comentários em código */
pre code .comment {
    color: #a5d6a7 !important; /* Verde claro para comentários */
    font-style: italic;
}

/* Botões */
.btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background-color: var(--secondary-color);
    border: none;
}

.btn-success:hover {
    background-color: #45b56a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(80, 200, 120, 0.4);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
}

/* Navegação entre módulos */
.module-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
}

.module-navigation .btn {
    flex: 1;
    max-width: 300px;
}

/* Checklist de progresso */
.checklist {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.checklist h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.checklist-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--light-color);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-left-color: var(--secondary-color);
    background-color: #f8f9fa;
}

.checklist-item input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.3);
}

/* Flashcards */
.flashcard {
    perspective: 1000px;
    height: 400px;
    margin-bottom: 2rem;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
}

.flashcard-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Certificado */
.certificate {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border: 15px solid #4A90E2;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.certificate-border {
    border: 5px solid #50C878;
    border-radius: 15px;
    padding: 2rem;
    background: white;
}

.certificate-header {
    text-align: center;
    margin-bottom: 1rem;
}

.certificate-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    opacity: 0.3; /* Efeito de marca d'água */
}

.certificate-content {
    padding: 2rem;
}

.certificate-title {
    font-family: var(--font-comic);
    color: #4A90E2;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificate-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.certificate-decoration {
    font-size: 2rem;
    margin: 1rem 0;
}

.certificate-text {
    font-size: 1.2rem;
    color: #555;
    margin: 1rem 0;
}

.certificate-name {
    font-family: var(--font-handwriting);
    color: #2C3E50;
    font-size: 3.5rem;
    margin: 2rem 0;
    text-decoration: underline;
    text-decoration-color: #FFB84D;
    text-underline-offset: 10px;
}

.certificate-modules {
    margin: 2rem auto;
    max-width: 800px;
    text-align: left;
}

.certificate-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 2;
}

.certificate-date {
    font-size: 1.3rem;
    color: #333;
    margin: 2rem 0;
    font-weight: 600;
}

.certificate-signature {
    margin: 3rem auto 2rem;
    max-width: 300px;
}

.signature-line {
    border-top: 2px solid #333;
    padding-top: 1rem;
}

.signature-name {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    margin: 0;
    color: #2C3E50;
}

.signature-title {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

.certificate-footer {
    margin: 2rem 0 1rem;
    text-align: center;
}

.certificate-logo-small {
    max-width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
    opacity: 0.3; /* Efeito de marca d'água */
}

.certificate-company {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #2C3E50;
}

.certificate-website {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.certificate-code {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 10px;
    display: inline-block;
}

.certificate-code small {
    font-size: 1rem;
    color: #333;
}

.certificate-code span {
    font-weight: 700;
    color: #4A90E2;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Estilos de impressão - A4 Paisagem */
@media print {
    @page {
        size: A4 landscape;
        margin: 1cm;
    }
    
    body {
        background: white;
    }
    
    /* Ocultar elementos desnecessários */
    nav, footer, .btn, #certificate-actions, 
    .alert-success-custom, .breadcrumb, 
    #certificate-form {
        display: none !important;
    }
    
    /* Certificado ocupa página inteira */
    .certificate {
        max-width: 100%;
        margin: 0;
        padding: 1.5cm;
        border: 10px solid #4A90E2;
        box-shadow: none;
        page-break-inside: avoid;
        background: white;
    }
    
    .certificate-border {
        border: 4px solid #50C878;
        padding: 1cm;
    }
    
    .certificate-title {
        font-size: 2.5rem;
    }
    
    .certificate-name {
        font-size: 3rem;
        page-break-inside: avoid;
    }
    
    .certificate-modules {
        font-size: 0.9rem;
        page-break-inside: avoid;
    }
    
    .certificate-logo {
        max-width: 150px;
        opacity: 0.3 !important; /* Efeito de marca d'água na impressão */
    }
    
    .certificate-logo-small {
        max-width: 60px;
        opacity: 0.3 !important; /* Efeito de marca d'água na impressão */
    }
    
    /* Garantir cores na impressão */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Certificado antigo (mantido para compatibilidade) */
.certificado {
    background: white;
    border: 10px solid var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 3rem auto;
    max-width: 800px;
}

.certificado h1 {
    font-family: var(--font-handwriting);
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.certificado .assinatura {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    margin-top: 3rem;
    color: var(--dark-color);
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .module-navigation {
        flex-direction: column;
    }
    
    .module-navigation .btn {
        max-width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .flashcard {
        height: 300px;
    }
    
    .certificado {
        padding: 2rem;
    }
    
    .certificado h1 {
        font-size: 2rem;
    }
}

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

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

/* Footer - mesma cor do navbar (bg-primary) */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* ===================================
   Campos de Formulário - Mobile Friendly
   =================================== */

/* Campo de data otimizado para mobile */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px; /* Touch target mínimo recomendado */
    font-size: 16px; /* Evita zoom no iOS */
    padding: 0.5rem 0.75rem;
}

/* Estilo consistente para todos os inputs no mobile */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px !important; /* Evita zoom automático no iOS */
        min-height: 44px; /* Touch target recomendado pela Apple */
        padding: 0.75rem;
    }
    
    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 28px;
        height: 28px;
        cursor: pointer;
        opacity: 0.7;
    }
    
    /* Botões maiores para touch */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Labels mais visíveis */
    .form-label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
}

/* ===================================
   Circuit Horseshoe Navigation
   =================================== */

.circuit-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    margin: 3rem auto;
    padding: 2rem;
    padding-bottom: 6rem;
    overflow: visible;
    border-radius: 20px;
    background: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.circuit-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1.0;
    z-index: 0;
}

.circuit-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 800px;
    z-index: 5;
    pointer-events: none;
}

.circuit-path {
    filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.8));
    stroke-width: 4;
    stroke: #20c997;
}

.circuit-connector {
    opacity: 1;
    stroke: #20c997;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(32, 201, 151, 0.6));
}

.circuit-node {
    position: absolute;
    z-index: 15;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.circuit-node[data-module="1"] { top: 8%; left: 18%; }
.circuit-node[data-module="2"] { top: 25%; left: 5%; }
.circuit-node[data-module="3"] { top: 55%; left: 5%; }
.circuit-node[data-module="4"] { top: 70%; left: 18%; }
.circuit-node[data-module="5"] { top: 70%; left: 68%; }
.circuit-node[data-module="6"] { top: 8%; left: 68%; }

.node-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    border: 4px solid #fff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.node-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.node-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.node-content {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.circuit-node:hover .node-content {
    opacity: 1;
    transform: translateX(0);
}

.circuit-node:hover .node-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
}

.node-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.node-content .badge-duracao {
    background-color: #28a745;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.node-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circuit-container {
        min-height: 900px;
        padding: 1rem;
    }
    
    .circuit-svg {
        display: none;
    }
    
    .circuit-node {
        position: static;
        margin-bottom: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .circuit-node[data-module="1"],
    .circuit-node[data-module="2"],
    .circuit-node[data-module="3"],
    .circuit-node[data-module="4"],
    .circuit-node[data-module="5"],
    .circuit-node[data-module="6"] {
        position: static;
    }
    
    .node-content {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        max-width: 100%;
    }
    
    .node-circle {
        width: 60px;
        height: 60px;
    }
    
    .node-number {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .circuit-container {
        min-height: 800px;
    }
    
    .node-content {
        max-width: 250px;
        font-size: 0.9rem;
    }
    
    .node-content h5 {
        font-size: 1rem;
    }
}

/* ===================================
   Seção Hero - Imagem de Apresentação
   =================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    max-height: 60vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(30, 58, 138, 0.8) 0%, 
        rgba(16, 185, 129, 0.6) 50%,
        rgba(245, 158, 11, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-comic);
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Placeholder para quando a imagem não estiver disponível */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #1e3a8a 0%,
        #3b82f6 25%,
        #10b981 50%,
        #f59e0b 75%,
        #ef4444 100%
    );
    z-index: 1;
}

/* Responsividade para a seção hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image-container {
        padding-bottom: 75%; /* Proporção mais quadrada em mobile */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===================================
   Seção do Circuito Ferradura
   =================================== */

.circuit-section {
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 25%,
        #334155 50%,
        #475569 75%,
        #64748b 100%
    );
    position: relative;
    overflow: hidden;
}

.circuit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.circuit-title {
    font-family: var(--font-comic);
    color: #f8fafc;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.circuit-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #1e3a8a, #10b981);
    padding: 20px;
}

.circuit-image {
    border-radius: 15px;
    transition: transform 0.3s ease;
    min-height: 400px;
    object-fit: cover;
    background: linear-gradient(
        45deg,
        #1e3a8a 0%,
        #3b82f6 25%,
        #10b981 50%,
        #f59e0b 75%,
        #ef4444 100%
    );
}

.circuit-image:hover {
    transform: scale(1.02);
}

.circuit-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.module-badge {
    transition: transform 0.3s ease;
}

.module-badge:hover {
    transform: translateY(-5px);
}

.module-badge .badge {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.module-badge p {
    color: #e2e8f0;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

/* Efeitos especiais para o circuito */
.circuit-image-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(59, 130, 246, 0.1) 90deg,
        transparent 180deg,
        rgba(16, 185, 129, 0.1) 270deg,
        transparent 360deg
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade para a seção do circuito */
@media (max-width: 768px) {
    .circuit-title {
        font-size: 2.5rem;
    }
    
    .circuit-image-container {
        padding: 15px;
    }
    
    .circuit-info {
        padding: 1rem;
    }
    
    .module-badge .badge {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .circuit-title {
        font-size: 2rem;
    }
    
    .circuit-image-container {
        padding: 10px;
    }
}
