﻿/* ========================================
   Importação de Fontes e Reset Básico
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========================================
   Base do Body
======================================== */
body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.7;
}

/* ========================================
   Cabeçalho
======================================== */
/*.header {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

    .header h1,
    .header h2 {
        margin: 0;
        font-size: 1.9em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .header img {
        height: 80px;
    }*/


.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    background: #000;
}

    .header h2 {
        font-size: 1.4rem;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .header h2 img {
            height: 60px;
            width: auto;
        }


/* ========================================
   Layout Principal e Conteúdo
======================================== */
.content {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.article {
    flex: 2;
    background-color: #fff;
    padding: 25px;
    margin-right: 20px;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

    .article h2 {
        font-size: 1.8rem;
        color: #000;
        font-weight: bold;
        margin-bottom: 15px;
    }

.metadata {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.article p {
    font-size: 1rem;
    color: #333;
    text-align: justify;
    margin-bottom: 18px;
}

/* ========================================
   Imagem da Notícia
======================================== */
.news-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

/* ========================================
   Botões de Compartilhamento
======================================== */
.share-buttons {
    margin: 25px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

    .share-buttons button {
        background: #000;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

        .share-buttons button:hover {
            background: #333;
        }

/* ========================================
   Estilo Geral do Rodapé
======================================== */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

    footer a {
        color: #fff;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ========================================
   Responsividade Geral
======================================== */

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        padding: 0 15px;
    }

    .article {
        margin-right: 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .article h2 {
        font-size: 1.6rem;
    }

    .metadata {
        font-size: 0.85rem;
    }

    .article p {
        font-size: 0.95rem;
    }

    .share-buttons button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
        padding: 10px;
    }

    .article h2 {
        font-size: 1.4rem;
    }

    .metadata {
        font-size: 0.8rem;
    }

    .article p {
        font-size: 0.9rem;
    }

    .share-buttons button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   Estilos do Usuário Logado e Ponto Online
======================================== */
#usuarioLogado {
    display: none;
}

body.usuario-logado #usuarioLogado {
    display: flex;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    align-items: center;
    gap: 6px;
    z-index: 1000;
}

    body.usuario-logado #usuarioLogado img {
        height: 20px;
        width: 20px;
        cursor: pointer;
    }

body.usuario-logado .ponto-online::after {
    content: "●";
    color: limegreen;
    font-size: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

/* 3) Ajuste responsivo */
@media (max-width: 768px) {
    .header h2 {
        font-size: 1.2rem;
    }

        .header h2 img {
            height: 45px;
        }

    body.usuario-logado #usuarioLogado {
        top: 50%;
        right: 10px;
    }
}

/* 4) Bem-vindo */
#bemVindoMsg {
    display: none;
    position: absolute;
    top: calc(50% + 30px);
    right: 20px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}

    #bemVindoMsg.mostrar {
        display: block;
        opacity: 1;
    }





/* ========================================
   Modal genérico
======================================== */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-conteudo {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* restante dos estilos de modal (botões, inputs etc.) permanece inalterado */

@media (max-width: 768px) {
    .header h2 {
        font-size: 1.2rem;
    }

        .header h2 img {
            height: 45px;
        }

    body.usuario-logado #usuarioLogado {
        display: flex !important;
        position: absolute;
        top: 137px;
        right: 110px;
        gap: 4px;
        align-items: center;
        transform: none; /* cancela translateY */
        z-index: 1000;
    }

        body.usuario-logado #usuarioLogado img {
            display: inline-block;
            height: 20px;
            width: 20px;
        }
}

/*banner cockies*/

.cookie-banner {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #111;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    z-index: 99999;
    display: none;
    max-width: 90%;
    width: 350px;
    height: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

    .cookie-banner p {
        margin: 0 0 15px 0;
        color: #fff;
    }

    .cookie-banner a {
        color: #00bfff;
        text-decoration: underline;
        font-weight: 600;
    }

    .cookie-banner button {
        background-color: #000;
        color: white;
        border: 1px solid white;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 8px;
        font-weight: bold;
        transition: background-color 0.3s, color 0.3s;
    }

        .cookie-banner button:hover {
            background-color: #222;
            color: #00bfff;
        }

@media (max-width: 480px) {
    .cookie-banner {
        width: 90%;
        padding: 15px;
        font-size: 14px;
    }

        .cookie-banner button {
            padding: 10px 15px;
        }
}




