/**
 * Estilização Customizada do Frontend do Blog (Vanilla CSS)
 * Todos os comentários de código em português.
 */

/* Classes de Animações baseadas no Intersection Observer */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transições e Efeitos Premium para Cards */
.article-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(6, 43, 82, 0.15);
}

/* Estilos de Tipografia e Tags dentro do Artigo Individual (Markdown Renderizado) */
.post-content {
    line-height: 1.75;
    font-size: 1.1rem;
    color: #303236; /* brand-graphite */
}

.post-content h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #062B52; /* brand-deep-blue */
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #062B52;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    font-weight: 700;
    color: #062B52;
}

.post-content blockquote {
    border-left: 4px solid #18A7E0; /* brand-ice-blue */
    background-color: #EEF8FC; /* brand-light-ice */
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: #062B52;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-content a {
    color: #18A7E0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #062B52;
}

/* Estilos de código do markdown */
.post-content code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
    border-radius: 4px;
    font-family: monospace;
}

.post-content pre {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875em;
    border-radius: 0;
}

/* Tabela de Conteúdos (TOC) */
.toc-box {
    background-color: #ffffff;
    border: 1px solid #bdc8d0; /* outline-variant */
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc-box .toc-titulo {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #062B52;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-lista {
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.toc-lista li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.toc-lista a {
    color: #303236;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: block;
}

.toc-lista a:hover {
    color: #18A7E0;
}

.toc-lista ul {
    list-style-type: none !important;
    margin-left: 1rem !important;
    margin-top: 0.25rem;
    padding-left: 0 !important;
}

/* Sidebar Simple list custom styling */
.sidebar-list li {
    border-bottom: 1px dashed rgba(189, 200, 208, 0.4);
}
.sidebar-list li:last-child {
    border-bottom: none;
}

/* Régua de Compartilhamento de Redes Sociais no Artigo */
.blog-share-container {
    margin: 1.5rem 0;
}

.blog-share-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.blog-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: #EEF8FC !important; /* brand-light-ice */
    color: #303236 !important; /* brand-graphite */
    border: 1px solid rgba(189, 200, 208, 0.4) !important; /* border-outline-variant/40 */
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.blog-share-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

.blog-share-btn .material-symbols-outlined {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

.blog-share-btn span {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Hover suave uniforme para os botões */
.blog-share-btn:hover {
    background-color: #18A7E0 !important; /* brand-ice-blue */
    color: #ffffff !important;
    border-color: #18A7E0 !important;
}

.blog-share-btn:hover svg {
    fill: #ffffff !important;
}

.blog-share-btn:hover .material-symbols-outlined {
    color: #ffffff !important;
}

/* Feedback do botão copiar link quando ativo/clicado */
.blog-share-btn.copiado {
    background-color: #062B52 !important; /* brand-deep-blue */
    color: #ffffff !important;
    border-color: #062B52 !important;
}

.blog-share-btn.copiado .material-symbols-outlined {
    color: #ffffff !important;
}

.blog-share-btn.copiado svg {
    fill: #ffffff !important;
}
