/* ============================================
   BLOG - CONEXÃO SST
   Estilos para artigos do blog
   ============================================ */

/* ============================================
   1. TIPOGRAFIA E ELEMENTOS DE TEXTO
   ============================================ */

/* Drop cap no primeiro parágrafo */
.drop-cap::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.3rem;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Georgia', serif;
}

@media (max-width: 640px) {
    .drop-cap::first-letter {
        font-size: 3rem;
    }
}

/* Clearfix para elementos flutuantes */
.clear-both {
    clear: both;
}

/* ============================================
   2. AVATARES E IMAGENS
   ============================================ */

/* Avatar do autor (Andressa) - circular pequeno */
.avatar-circle {
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 64px;
    height: 64px;
}

@media (min-width: 640px) {
    .avatar-circle {
        width: 80px;
        height: 80px;
    }
}

.avatar-circle:hover {
    transform: scale(1.05);
}

/* Avatar nos comentários */
.comentario-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Imagem flutuante à direita dentro do texto */
.img-float-right {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 260px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    shape-outside: border-box;
}

@media (max-width: 640px) {
    .img-float-right {
        float: none;
        margin: 0 auto 1.5rem auto;
        display: block;
        max-width: 100%;
    }
}

/* ============================================
   3. HEADER DO BLOG
   ============================================ */

.header-blog {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93b5e1 100%);
    border-bottom: 4px solid #ffd700;
    color: #1e293b;
}

.title-gold {
    color: #1e3a8a;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.badge-comunidade {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    border: 1px solid rgba(30, 58, 138, 0.2);
    padding: 0.15rem 0.75rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Ajustes de contraste para texto no header claro */
.header-blog .text-blue-200\/80 {
    color: #1e293b !important;
}

.header-blog .text-blue-300\/70 {
    color: #334155 !important;
}

.header-blog a.text-blue-300 {
    color: #1e3a8a !important;
}

.header-blog a.text-blue-300:hover {
    color: #0f172a !important;
}

/* Alinhamento do cabeçalho (imagem + título ao lado) */
.header-flex {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header-flex .avatar-wrapper {
    flex-shrink: 0;
}

.header-flex .header-text {
    flex: 1;
}

@media (max-width: 480px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .header-flex .header-text {
        text-align: center;
    }
}

/* ============================================
   4. COMENTÁRIOS
   ============================================ */

/* Wrapper ocupa toda a largura */
.comentarios-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Card principal com cantos arredondados */
.comentarios-card {
    border-radius: 30px !important;
    overflow: hidden;
}

.comentarios-card .card-body {
    padding: 2rem 2.5rem;
}

@media (max-width: 640px) {
    .comentarios-card .card-body {
        padding: 1.5rem;
    }
}

/* Item de comentário */
.comentario-item {
    border-left: 4px solid #ffd700;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    margin-bottom: 1rem;
}

.comentario-item:hover {
    background: #f8fafc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   5. FORMULÁRIO E BOTÕES
   ============================================ */

/* Botão "Enviar comentário" */
.btn-comentar {
    background: linear-gradient(135deg, #1e3a8a, #059669);
    transition: all 0.3s;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-comentar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Campos do formulário */
.form-control {
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    background-color: #f9fafb;
}

.form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    outline: none;
    background-color: #ffffff;
}

/* ============================================
   6. TÍTULO DE SEÇÃO
   ============================================ */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #059669);
    border-radius: 4px;
}