/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f1115;
    color: #eaeaea;
    line-height: 1.5;
}

/* =========================
   TOPO / NAVBAR
========================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #151820;
    border-bottom: 1px solid #23273a;
    flex-wrap: wrap;
}

.top-bar .logo {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.top-bar .links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .links a,
.top-bar .links span {
    text-decoration: none;
    color: #cfd3ff;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.top-bar .links a:hover,
.top-bar .links span:hover {
    background: #23273a;
    color: #ffffff;
}

#btn-painel {
    background: #3b5bff;
    color: #fff;
}

#btn-painel:hover {
    background: #2f48cc;
}

#btn-entrar {
    background: #2ecc71;
    color: #0f1115;
    font-weight: bold;
}

#btn-entrar:hover {
    background: #27ae60;
}

/* =========================
   GALERIA
========================= */
.gallery {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* =========================
   CARD
========================= */
.card {
    background: #151820;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #23273a;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(22, 4, 56, 0.4);
}

/* IMAGEM DO CARD */
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    background: #000;
}

/* TEXTO DO CARD */
.card h2 {
    font-size: 16px;
    margin: 16px 16px 8px;
    color: #ffffff;
}

.card p {
    font-size: 14px;
    margin: 0 16px 16px;
    color: #cfd3ff;
    flex-grow: 1;
}

/* =========================
   MODAL DE IMAGEM
========================= */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#modalImg {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    .top-bar {
        gap: 12px;
    }

    .top-bar .links {
        justify-content: center;
    }

    .card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .card img {
        height: 140px;
    }

    .card h2 {
        font-size: 15px;
    }

    .card p {
        font-size: 13px;
    }
}
