@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary: #427B8E;
    --text: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --background: #0a0a0a;
    --primary-color: #0f172a;  /* Fundo escuro tech */
    --secondary-color: #1e293b; /* Cor do menu */
    --text-color: #ffffff;      /* Texto branco */
    --accent-color: #427B8E;    /* Azul neon para detalhes */
}

body {
    background-color: #000;
    color: var(--text);
}

::selection {
    background-color: #427B8E;
    color: #f1f1f1;
}

pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    background-color: #0A0A0A; 
    box-shadow: 0px 1px 4px #427B8E;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.logo a {
    text-decoration: none;
    color: white;
}

.menu a{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    background: #427B8E;
    color: white;
}

.menu a:hover {
    background: #52c8f0;
    color: white;
}

/* Menu */
.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin: 0 15px;
}

/* Menu responsivo */
.menu-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}




.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.post-header {
    margin-bottom: 4rem;
    text-align: center;
}

.post-category {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
    background: linear-gradient(to right, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-image {
    width: 100%;
    height: 63vh;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito ao passar o mouse */
.post-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Adicionando uma borda sutil ao redor */
.post-image:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}


.post-tags {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(66, 123, 142, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag:hover {
    background-color: var(--primary);
    color: white;
}



.post-content {
    font-size: 1.2rem; /* Tamanho adequado para leitura */
    line-height: 1.8; /* Melhor espaçamento entre linhas */
    margin-bottom: 3rem; /* Reduzindo espaçamento excessivo */
    text-align: justify;
    max-width: 800px; /* Limitando a largura do conteúdo para melhor legibilidade */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Pequeno padding para evitar que o texto encoste nas bordas */
}

.post-content p {
    margin-bottom: 1rem; /* Espaçamento entre parágrafos */
    text-indent: 2rem; /* Recuo no início dos parágrafos */
}

.post-content span {
    color: #4A97AF; /* Azul mais escuro para maior contraste */
    font-weight: bold;
    font-size: 1.3rem; /* Destaque para palavras-chave */
}

.post-content img {
    display: block; /* Garante que a imagem fique separada do texto */
    max-width: 100%; /* Evita que a imagem ultrapasse o tamanho do contêiner */
    height: auto; /* Mantém a proporção da imagem */
    margin: 2rem auto; /* Centraliza a imagem e adiciona espaçamento */
    border-radius: 8px; /* Bordas arredondadas para um design mais moderno */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Pequena sombra para destacar a imagem */
}


.post-content figure {
  text-align: center; /* Centraliza a imagem e a legenda */
  margin: 0; /* Remove margens extras ao redor do figure */
}

.post-content figure img {
  max-width: 100%; /* Ajusta a imagem para se adaptar ao tamanho da tela */
  height: auto; /* Mantém as proporções da imagem */
}

.post-content figure figcaption {
  font-size: 14px; /* Tamanho da fonte da legenda */
  color: #555; /* Cor da legenda */
  margin-top: -24px; /* Espaço entre a imagem e a legenda */
  margin-bottom: 10px;
}

@media (max-width: 768px) {
    .post-content {
        font-size: 1.1rem; /* Ajuste para telas menores */
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    .post-content span {
        font-size: 1.2rem;
    }

    .post-content p {
        text-indent: 1rem; /* Redução do recuo em telas menores */
    }

    .post-content img {
        margin: 1.5rem auto; /* Ajuste de espaçamento para telas menores */
        border-radius: 6px; /* Leve redução na borda arredondada */
    }
}






.post-footer{
    align-items: center;
    border-radius: 15px;
}

/* Seção de compartilhamento */
.share-section {
    padding: 0.2rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.share-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

/* Container dos botões */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Estilo base dos botões */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-button i {
    font-size: 1.25rem;
}

.share-button span {
    font-size: 0.875rem;
}

/* Cores específicas para cada rede social */
.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.linkedin {
    background-color: #0a66c2;
}

.share-button.whatsapp {
    background-color: #25d366;
}

/* Efeitos hover */
.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-button:active {
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }
}










.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    background: rgba(66, 123, 142, 0.1);
}

.back-link:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .post-title {
        font-size: 2.5rem;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .post-content iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border: none;
    }
}




/* FOOTER */
footer {
    padding: 60px 80px;
    background: #0A0A0A;
    color: #CCD6F6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-logo img {
    max-width: 170px;
    max-height: 120px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.social-links a {
    color: #5b9bb1;
    margin: 0 15px;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #99c9da;
    transform: translateY(-5px);
}

.footer-contact {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    color: #ffffff;
}

.footer-contact-inner {
    display: flex;
    flex-direction: column;
}

.footer-contact h4 {
    color: #5b9bb1;
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: 1px;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 17px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #212324;
    font-size: 14px;
    color: #ffffff;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .social-links,
    .footer-contact {
        margin-bottom: 20px;
        justify-content: center;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }
}