/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.vazio {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vazio p {
    margin-bottom: 1rem;
    color: #666;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.projeto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.projeto-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.projeto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projeto-info {
    padding: 1.5rem;
}

.projeto-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.projeto-info .data {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.projeto-info .descricao {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn, .btn-ver-mais {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn:hover, .btn-ver-mais:hover {
    background: #5568d3;
}

.btn-ver-mais {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
    }
}

/* Header simples */
.header-simples {
    background: #333;
    padding: 1rem 0;
}

.header-simples .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.voltar {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.voltar:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Página de detalhe do projeto */
.projeto-detalhe {
    background: white;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.projeto-capa {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.projeto-capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projeto-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.projeto-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.projeto-header .data {
    color: #999;
    font-size: 0.9rem;
}

.projeto-conteudo {
    padding: 2rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

/* Galeria */
.galeria {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.galeria h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.galeria-item {
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Erro 404 */
.erro-404 {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    margin-top: 2rem;
}

.erro-404 h1 {
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.erro-404 p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .projeto-header h1 {
        font-size: 1.8rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}