/* Geral */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0e0e0e;
    color: #fff;
}

/* Header centralizado */
header {
    display: flex;
    flex-direction: column; /* empilha logo e menu verticalmente */
    align-items: center;
    padding: 2rem 1rem;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
}

/* Logo centralizada e responsiva */
header .logo {
    width: 350px;
    max-width: 100%;
    height: 280px;
    margin-bottom: 1rem;
}

/* Menu centralizado abaixo da logo */
nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}
nav a:hover {
    color: #c79a3b;
}

/* Containers gerais */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    color: #c79a3b;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #1a1a1a;
    margin-top: 2rem;
    color: #777;
}

/* Grid de álbuns e fotos */
.container#events .albums-grid,
.container#event-page .photos-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Ajuste por tamanho de tela */
@media(min-width: 1024px){
    .container#events .albums-grid,
    .container#event-page .photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media(min-width: 768px) and (max-width: 1023px){
    .container#events .albums-grid,
    .container#event-page .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media(max-width: 767px){
    .container#events .albums-grid,
    .container#event-page .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 480px){
    .container#events .albums-grid,
    .container#event-page .photos-grid {
        grid-template-columns: 1fr;
    }
}

/* Album ou foto individual */
.album, .photo {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.album img, .photo img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.album h3, .photo h3 {
    font-size: 1rem;
    margin: 5px 0 2px;
}

.album small, .photo small {
    font-size: 0.8rem;
    color: #aaa;
}

.album:hover, .photo:hover {
    background: #2a2a2a;
}

/* Admin */
.admin-container {
    max-width: 500px;
    margin: 2rem auto;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.admin-container input,
.admin-container button {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.5rem;
    border-radius: 5px;
    border: none;
}

.admin-container input {
    background: #333;
    color: #fff;
}

.admin-container button {
    background: #c79a3b;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.admin-container button:hover {
    opacity: 0.9;
}

.admin-container button.logout {
    background: red;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Barra de progresso */
#progressContainer {
    width: 100%;
    background: #333;
    border-radius: 5px;
    margin-top: 1rem;
}

#progressBar {
    width: 0%;
    height: 20px;
    background: #c79a3b;
    border-radius: 5px;
}

/* Inputs e botões responsivos */
@media(max-width: 480px){
    .admin-container {
        padding: 1rem;
    }
    .admin-container input,
    .admin-container button {
        font-size: 0.9rem;
    }
}
