/* Estilos para posts individuais */

/* Tipografia */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Imagem principal do post */
.post-image {
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-image img {
    width: 100%;
}

/* Conteúdo do post */
.post-content {
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    font-style: italic;
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.post-content table {
    margin: 2rem 0;
}

.post-content .alert {
    margin: 2rem 0;
}

/* Elementos especiais */
.example-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Tags e compartilhamento */
.badge {
    font-weight: 500;
    transition: all 0.2s ease;
}

.badge:hover {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
}

/* Seção do autor */
.author-section {
    margin: 3rem 0;
}

.author-section img {
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Comentários */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comment {
    position: relative;
}

.comment img {
    border: 2px solid #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.comment-reply {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Formulário de comentários */
.comment-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Barra lateral */
.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.sidebar-section .card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.sidebar-section .card:hover {
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #0d6efd;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .author-section {
        text-align: center;
    }
    
    .author-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .author-section img {
        margin-bottom: 1rem;
    }
    
    .comment .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment img {
        margin-bottom: 1rem;
    }
    
    .comment-reply .d-flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Efeitos de hover */
.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para tabelas */
.table-responsive {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Estilos para cards na seção de conteúdo */
.post-content .card {
    height: 100%;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para botões */
.post-content .btn-primary {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para code */
code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

pre code {
    padding: 0;
    background-color: transparent;
    color: inherit;
}

/* Lazy Load para imagens */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Estilos para links no texto */
.post-content a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px dashed #0d6efd;
    transition: border-bottom 0.2s ease;
}

.post-content a:hover {
    border-bottom: 1px solid #0d6efd;
}

/* Estilos para o botão de voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #0b5ed7;
}

/* Estilos para lista de categorias */
.list-group-item {
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

/* Estilos para o formulário de newsletter */
.newsletter-form input {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.newsletter-form button {
    border-radius: 0.5rem;
}

/* Estilos para o footer */
footer {
    margin-top: 4rem;
} 