/* --- NOVOS ESTILOS PARA PÁGINA DE POST --- */

/* Barra de Leitura */
.reading-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 1000; background: transparent;
}
.reading-progress-bar {
    height: 100%; background: linear-gradient(90deg, #21BDEF, #5140F7); width: 0%;
}

/* Hero do Artigo */
.article-hero {
    position: relative;
    padding: 180px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #21BDEF; text-decoration: none; font-size: 14px; font-weight: 500;
    margin-bottom: 32px; transition: 0.3s;
    background: rgba(33, 189, 239, 0.1); padding: 8px 16px; border-radius: 100px;
}
.back-link:hover { background: rgba(33, 189, 239, 0.2); transform: translateX(-5px); }

.article-meta-top {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 24px;
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #888;
}
.meta-tag { color: #5140F7; font-weight: 700; }

.article-title {
    font-size: clamp(32px, 5vw, 56px);
    color: #FFF; font-weight: 600; line-height: 1.1; margin-bottom: 32px;
    text-shadow: 0 0 40px rgba(81, 64, 247, 0.2);
}

.article-author-block {
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.author-lg-avatar { width: 48px; height: 48px; border-radius: 50%; background: #333; border: 2px solid #5140F7; }
.author-text { text-align: left; }
.author-name-lg { color: #FFF; font-weight: 500; display: block; }
.post-date-lg { font-size: 13px; color: #666; }

/* Layout do Conteúdo (Full Width - Responsive Margins) */
.content-wrapper {
    display: block;
    width: 100%;
    margin: 0 auto 120px;
    position: relative;
    box-sizing: border-box;
    
    /* Responsive padding defining the "side borders" */
    padding-left: 5%;
    padding-right: 5%;
}

@media(min-width: 768px) {
    .content-wrapper {
        padding-left: 15%;
        padding-right: 15%;
    }
}

@media(min-width: 1200px) {
    .content-wrapper {
        padding-left: 25%;
        padding-right: 25%;
    }
}

/* Corpo do Texto */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #E0E0E0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.article-body p { margin-bottom: 24px; }

.article-body a {
    color: #21BDEF;
    text-decoration: underline;
    text-decoration-color: rgba(33, 189, 239, 0.3);
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #fff;
    text-decoration-color: #21BDEF;
}

.article-body h2 {
    font-size: 28px; color: #FFF; margin: 48px 0 24px;
    position: relative; padding-left: 20px;
}
.article-body h2::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
    background: #21BDEF; border-radius: 4px; box-shadow: 0 0 10px #21BDEF;
}

.article-body h3 { font-size: 22px; color: #FFF; margin: 32px 0 16px; }

.article-body ul { margin-bottom: 24px; padding-left: 24px; }
.article-body li { margin-bottom: 12px; marker: #5140F7; }

/* Componentes Especiais do Artigo */
.highlight-box {
    background: rgba(81, 64, 247, 0.05);
    border: 1px solid rgba(81, 64, 247, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    position: relative;
}
.highlight-icon { position: absolute; top: -15px; left: 24px; background: #121212; padding: 0 8px; color: #5140F7; }

.code-block {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    overflow-x: auto;
    color: #a9b7c6;
    position: relative;
}
.code-lang {
    position: absolute; top: 0; right: 0;
    background: #333; color: #fff; font-size: 11px;
    padding: 4px 12px; border-bottom-left-radius: 8px;
}

.article-img {
    width: 100%;
    border-radius: 16px;
    margin: 40px 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.img-caption {
    text-align: center; font-size: 14px; color: #666; margin-top: -30px; margin-bottom: 40px; display: block; font-style: italic;
}


.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 12px; }
.toc-list a {
    color: #CCC; text-decoration: none; font-size: 14px; transition: 0.2s;
    display: block; border-left: 2px solid transparent; padding-left: 12px;
}
.toc-list a:hover, .toc-list a.active {
    color: #21BDEF; border-left-color: #21BDEF;
}

/* Seção "Leia a seguir" (Reutilizando cards) */
.read-next-section {
    background: #0F0F0F;
    padding: 80px 0;
    border-top: 1px solid #222;
}
.read-next-header {
    max-width: 1000px; margin: 0 auto 40px; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.read-next-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto; padding: 0 20px;
}

/* Tokens de Código (Simples) */
.token-kw { color: #cc7832; }
.token-str { color: #6a8759; }
.token-fn { color: #ffc66d; }
.token-comment { color: #808080; }

/* Hugo TOC Adaptation */
.toc-list nav ul {
    list-style: none;
    padding: 0;
}
.toc-list nav ul li {
    margin-bottom: 12px;
}
.toc-list nav ul li a {
    color: #CCC;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 12px;
}
.toc-list nav ul li a:hover {
    color: #21BDEF;
    border-left-color: #21BDEF;
}
