/**
 * Pedegarimpo MVP - Estilos Principais
 * Semana de Educação para a Vida 2025
 */

/* ========== IMPORTAR FONTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ========== VARIÁVEIS CSS ========== */
:root {
    /* Cores principais */
    --color-primary: #0a1929;
    --color-primary-light: #1a3a5c;
    --color-accent-blue: #4a90e2;
    --color-accent-orange: #f9a825;
    --color-accent-pink: #e91e63;
    --color-accent-green: #4caf50;
    --color-accent-gold: #d4af37;
    --color-white: #ffffff;
    --color-gray-light: #e0e0e0;
    --color-gray: #9e9e9e;
    --color-gray-dark: #424242;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0a1929 0%, #1a3a5c 100%);
    --gradient-accent: linear-gradient(135deg, #f9a825 0%, #e91e63 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 58, 92, 0.6) 0%, rgba(10, 25, 41, 0.8) 100%);
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Prevenir scroll automático para topo em links de projetos */
a[href*="projeto.php"],
a[data-project-link="true"] {
    scroll-margin-top: 0;
    scroll-behavior: auto !important;
}

/* Garantir que links de projetos funcionem corretamente */
a[href*="projeto.php"]:not([href^="#"]):not([href=""]):not([href="#"]),
a[data-project-link="true"]:not([href^="#"]):not([href=""]):not([href="#"]) {
    cursor: pointer;
    text-decoration: none;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background: var(--gradient-primary);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden; /* Adicionado para evitar o scroll horizontal */
}

html {
    overflow-x: hidden; /* Garante que o scroll horizontal seja bloqueado no nível mais alto */
    scroll-behavior: smooth;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-orange);
}

/* ========== CONTAINER E GRID ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    /* Corrigindo o menu mobile */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Esconde o menu fora da tela */
        width: 70%;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .header-nav.open {
        right: 0; /* Move o menu para dentro da tela */
    }
    
    .menu-toggle {
        display: block; /* Mostra o botão no mobile */
        z-index: 1001;
    }
    
    /* Correção para a imagem central no mobile */
    .hero-logo {
        max-width: 90%; /* Garante que a imagem não ultrapasse a largura da tela */
        height: auto;
    }
}

/* ========== HEADER ========== */
.header {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* Garantir que links de projetos não sejam afetados pelo header sticky */
a[href*="projeto.php"]:focus,
a[data-project-link="true"]:focus {
    outline: 2px solid var(--color-accent-orange);
    outline-offset: 2px;
}

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

.header-logo {
    height: 50px;
}

	.header-nav {
	    display: flex;
	    align-items: center;
	    gap: var(--spacing-md);
	}
	
	.menu-toggle {
	    display: none; /* Esconder no desktop */
	    background: none;
	    border: none;
	    cursor: pointer;
	    padding: 10px;
	    z-index: 1001;
	    position: relative;
	}
	
	.menu-toggle .bar {
	    display: block;
	    width: 25px;
	    height: 3px;
	    margin: 5px auto;
	    background-color: var(--color-white);
	    transition: all 0.3s ease-in-out;
	}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-orange);
}

.nav-link.active {
    background: var(--gradient-accent);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-orange);
}

/* ========== BOTÕES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-orange);
    border: 2px solid var(--color-accent-orange);
}

.btn-outline:hover {
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ========== CARDS ========== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.card-body {
    margin-bottom: var(--spacing-md);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary { background: var(--color-accent-blue); color: var(--color-white); }
.badge-success { background: var(--color-accent-green); color: var(--color-white); }
.badge-warning { background: var(--color-accent-orange); color: var(--color-white); }
.badge-danger { background: var(--color-accent-pink); color: var(--color-white); }
.badge-gold { background: var(--color-accent-gold); color: var(--color-primary); }

/* ========== INPUTS ========== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-logo {
    max-width: 600px;
    width: 90%; /* Garante que a imagem se ajuste ao container */
    height: auto; /* Mantém a proporção */
    margin: 0 auto var(--spacing-lg);
}

.hero-title {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

/* ========== SEÇÕES ========== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(10, 25, 41, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========== UTILITÁRIOS ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

/* ========== RESPONSIVIDADE ========== */
	@media (max-width: 768px) {
	    h1 { font-size: 2rem; }
	    h2 { font-size: 1.75rem; }
	    h3 { font-size: 1.5rem; }
	    
	    .hero-title { font-size: 2rem; }
	    .section-title { font-size: 2rem; }
	    
	    .menu-toggle {
	        display: block; /* Mostrar no mobile */
	        order: 2; /* Colocar o botão à direita do logo */
	    }
	    
	    .header-content {
	        justify-content: space-between;
	    }
	    
	    .header-logo {
	        order: 1;
	    }
	    
	    .header-nav {
	        position: fixed;
	        top: 0;
	        right: -100%; /* Esconder fora da tela */
	        width: 70%;
	        max-width: 300px;
	        height: 100vh;
	        background: var(--color-primary);
	        flex-direction: column;
	        padding-top: 80px;
	        transition: right 0.3s ease-in-out;
	        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
	        z-index: 999;
	        align-items: flex-start;
	        padding-left: var(--spacing-md);
	    }
	    
	    .header-nav.open {
	        right: 0; /* Mostrar */
	    }
	    
	    .header-nav .nav-link,
	    .header-nav .btn {
	        width: 90%;
	        text-align: left;
	        margin: 0 auto;
	    }
	    
	    .user-menu {
	        flex-direction: column;
	        gap: var(--spacing-sm);
	        width: 90%;
	        margin: var(--spacing-md) auto;
	        align-items: flex-start;
	    }
	}
@import url('fix-selects.css');
