/* Configurações Globais e Variáveis de Tema Cyberpunk */
:root {
    --bg-color: #03081a;
    --card-bg: rgba(6, 14, 48, 0.4);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --neon-blue: #00f3ff;
    --neon-orange: #ff6c00;
    --neon-purple: #bd00ff;
    --neon-cyan: #00ffff;
    --font-pixel: 'Press Start 2P', cursive;
    --font-text: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Garante que a página nunca passe das bordas */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    overflow-wrap: anywhere; /* Força quebra em URLs longas */
    word-break: break-word;
}

ul, ol {
    list-style: none;
}

/* Header e Menu */
header {
    background: rgba(3, 8, 26, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#menu {
    display: flex;
    gap: 20px;
}

#menu a {
    font-size: 1.1rem;
    padding: 10px;
    transition: 0.3s;
}

#menu a:hover, #menu a.active-link {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

#menu a.active-link {
    border-bottom: 2px solid var(--neon-blue);
}

#btn-mobile {
    display: none;
}

/* Container Principal */
main {
    margin-top: 100px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    width: 100%;
}

/* Estrutura do Artigo Principal */
.article-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    width: 100%;
    overflow: hidden; /* Força que todo o texto fique dentro do card */
}

.article-chapeu {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    margin-bottom: 12px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    color: #ffffff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 25px;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 10px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    flex-shrink: 0;
}

.author-name {
    color: #fff;
    font-weight: 700;
}

.author-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Imagem de Capa */
.featured-image-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    margin-bottom: 30px;
    width: 100%;
}

.featured-image-box img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: cover;
}

.image-caption {
    background: rgba(3, 8, 26, 0.9);
    padding: 10px 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-wrap: break-word;
}

/* Corpo da Notícia (Texto) */
.article-body {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body a {
    color: var(--neon-blue);
    overflow-wrap: anywhere;
    word-break: break-all;
}

.article-body h3 {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin: 35px 0 15px 0;
    letter-spacing: 1px;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 12px;
    overflow-wrap: break-word;
}

.quote-box {
    background: rgba(0, 243, 255, 0.05);
    border-left: 4px solid var(--neon-orange);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: inset 0 0 15px rgba(255, 108, 0, 0.1);
    overflow-wrap: break-word;
    word-break: break-word;
}

.quote-box footer {
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 700;
    color: var(--neon-orange);
    background: none;
    padding: 0;
    border: none;
    text-align: left;
}

.link-inscricao {
    color: #00f3ff;
    font-weight: bold;
    text-decoration: underline;
}

/* Barra Lateral (Sidebar) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.widget {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--neon-orange);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 108, 0, 0.3);
    letter-spacing: 1px;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.related-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neon-purple);
}

.related-item a {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.related-item a:hover {
    color: var(--neon-blue);
}

/* RESPONSIVIDADE E AJUSTES PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 992px) {
    main {
        grid-template-columns: 1fr; /* Transforma o layout em 1 única coluna */
        margin-top: 90px;
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .article-container {
        padding: 15px; /* Reduz padding interno no celular */
        border-radius: 8px;
    }

    .article-title {
        font-size: 1.4rem; /* Diminui a fonte do título para caber no celular */
        line-height: 1.3;
    }

    .article-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-body {
        font-size: 1rem; /* Ajusta o tamanho do texto do corpo */
        line-height: 1.6;
    }

    .article-body h3 {
        font-size: 0.9rem; /* Diminui fontes com a classe pixelada que são naturalmente muito largas */
    }

    .quote-box {
        font-size: 0.95rem;
        padding: 15px;
    }

    /* Menu Mobile */
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 70px;
        right: 0px;
        background: rgba(3, 8, 26, 0.98);
        height: 0px;
        transition: 0.6s;
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
    }

    #nav.active #menu {
        height: calc(100vh - 70px);
        visibility: visible;
        overflow-y: auto;
    }

    #menu a {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: center;
    }

    #btn-mobile {
        display: flex;
        padding: 0.5rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        color: white;
    }

    #hamburger {
        border-top: 2px solid;
        width: 20px;
        display: block;
        color: white;
    }

    #hamburger::after, #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: 0.3s;
        position: relative;
    }

    #nav.active #hamburger {
        border-top-color: transparent;
    }

    #nav.active #hamburger::before {
        transform: rotate(135deg);
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -7px;
    }
}