/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS */
:root {
    --card: #011a6e;
    --border: #4da6ff;
    --radius: 8px;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --foreground: #f8f8f8;
    --accent: rgba(77, 166, 255, 0.2);
    --accent-foreground: #4da6ff;
    --primary: #4da6ff;
    --primary-foreground: #ffffff;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #f8f8f8;
    background: linear-gradient(to bottom, #011a6e, #0044cc);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Menu Dropdown */
.menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    min-width: 200px;
    animation: fadeIn 0.3s ease-out;
}

.menu.active {
    display: block;
}

.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu ul li {
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.menu-item:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.menu-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.menu-item i {
    width: 1.25rem;
    text-align: center;
}

/* Animação de fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo central */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    width: 70px;
    border-radius: 50%;
    border: 2px solid #4da6ff;
    box-shadow: 0 0 10px #000;
}

/* Botão Acesso ADM no header */
.adm-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a2a6e, #0044cc);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    border: 2px solid #4da6ff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.3s ease;
    font-weight: 600;
}

.adm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #0d368d, #0059ff);
}

.adm-button:active { transform: translateY(0); }

/* Botão hamburguer */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: #4da6ff;
}

/* Conteúdo principal */
main {
    padding: 30px 10%;
    flex: 1;
}

#bem-vindo {
    text-align: center;
    margin-top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #4da6ff;
    text-shadow: 2px 2px 6px #000;
}

/* Seções */
.principal {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.principal h2 {
    color: #4da6ff;
    margin-bottom: 10px;
    font-size: 24px;
    border-left: 5px solid #4da6ff;
    padding-left: 10px;
}


.principal p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Imagens */
.principal img {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    border: 2px solid #4da6ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Rodapé */
footer {
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid #4da6ff;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-section h3 {
    color: #4da6ff;
    margin-bottom: 15px;
    font-size: 18px;
    text-shadow: 0 0 5px #4da6ff;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4da6ff;
    text-shadow: 0 0 5px #4da6ff;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #4da6ff;
    font-size: 14px;
    color: #b0b0b0;
}



/* Posts feed */
.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}

@media (min-width: 800px) {
    .posts-container { grid-template-columns: 1fr 1fr; }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid #4da6ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.post-image { width: 100%; height: 220px; object-fit: cover; display: block; }

.post-body { padding: 12px; }
.post-title { margin: 0 0 4px; color: #4da6ff; }
.post-date { margin: 0 0 8px; opacity: 0.8; font-size: 12px; }
.post-content { margin: 0; white-space: pre-line; }