:root {
    --bg: #030503;
    --card-bg: #070d07;
    --neon: #00ff41;
    --dim: #008f11;
    --text: #e0ffe0;
    --glow: rgba(0, 255, 65, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: lowercase;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* O fundo (overlay) fecha ao clicar, então o cursor de zoom-out faz sentido aqui */
#lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px 20px;
    box-sizing: border-box;
    cursor: zoom-out;
    /* Cursor de fechar no fundo */
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--neon);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.3);

    /* AQUI O PULO DO GATO: */
    cursor: default;
    /* Ou 'pointer' se você quiser a mãozinha */
    pointer-events: auto;
    /* Permite que o mouse interaja com a imagem */
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--neon);
    font-size: 2.5rem;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    z-index: 100000;
    /* Acima da imagem */
    line-height: 1;
    text-shadow: 0 0 10px #000;
}

/* --- NAVEGAÇÃO --- */
nav {
    background: rgba(3, 5, 3, 0.7);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    color: var(--neon);
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon);
    text-decoration: none;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.85rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

nav a:hover,
nav a.active {
    color: var(--neon);
    opacity: 1;
    text-shadow: 0 0 12px var(--neon);
}

/* --- ESTRUTURA DE PÁGINA --- */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.08) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.content-section,
.container-view {
    padding: 120px 10% 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    border-left: 4px solid var(--neon);
    padding-left: 20px;
    color: var(--neon);
    text-shadow: 0 0 10px var(--glow);
}

/* --- CARDS E GRIDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.05);
    padding: 2rem;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.card:hover {
    border-color: var(--neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h2 {
    color: var(--neon);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* --- posts SPECIFIC (UNIFICADO E PADRONIZADO) --- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.post-card {
    background: rgba(7, 13, 7, 0.5);
    border-left: 2px solid var(--dim);
    padding: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
    color: var(--text);
    /* Define a cor padrão para o texto simples aqui */
}

.post-card:hover {
    border-left-color: var(--neon);
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(10px);
}

/* Força o título do card a ser Neon e não azul de link */
.post-card h2 {
    color: var(--neon);
    margin-bottom: 10px;
    transition: 0.3s;
}

/* Força o parágrafo a seguir o padrão de opacidade do site */
.post-card p {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

.post-date {
    font-size: 0.7rem;
    color: var(--dim);
    /* Cor verde escura para a data */
    margin-bottom: 5px;
}

/* --- ARTIGO/POST CONTENT --- */
.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h1 {
    color: var(--neon);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.article-body p {
    margin-bottom: 20px;
    opacity: 0.9;
}

pre {
    background: #000;
    padding: 20px;
    border: 1px solid var(--dim);
    overflow-x: auto;
    margin: 20px 0;
}

code {
    color: var(--neon);
    font-family: 'Fira Code', monospace;
}

/* --- CARDS E GRIDS (ATUALIZADO) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.05);
    padding: 2rem;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    text-decoration: none;

    /* MÁGICA AQUI: transforma o card num container flexível */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Garante que todos os cards na mesma linha tenham o mesmo tamanho */
}

.card h2 {
    color: var(--neon);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Faz o parágrafo "comer" o espaço vazio, empurrando o botão pra baixo */
}

/* --- BOTÕES E AFINS --- */
.card-link,
.btn {
    color: var(--neon);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--neon);
    padding: 10px 20px;
    transition: 0.3s;
    background: transparent;
    text-align: center;

    /* Garante que o botão não suba, independente do texto acima */
    align-self: flex-start;
    margin-top: auto;
}

.card-link:hover,
.btn:hover {
    background: var(--neon);
    color: var(--bg);
    box-shadow: 0 0 15px var(--neon);
}

/* --- FOOTER --- */
footer {
    background: #010301;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding: 40px 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: var(--text);
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.4;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--neon);
}

/* --- ANIMAÇÕES --- */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--neon)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: none;
        text-shadow: none;
    }

    92% {
        transform: skewX(2deg);
        text-shadow: 2px 0 var(--dim), -2px 0 #ff00c1;
    }

    95% {
        transform: skewX(-3deg);
        text-shadow: -2px 0 var(--dim), 2px 0 #ff00c1;
    }
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: var(--neon);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--neon);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--neon);
    animation: glitch 5s infinite;
    position: relative;
}

.typing-text {
    border-right: 2px solid var(--neon);
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 68ch;
    width: 0;
    margin: 0 auto;
    animation:
        typing 2.5s steps(68) forwards,
        blink .8s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 68ch;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    color: var(--neon);
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 2px;
}