/* ===================================
   MELHORIAS DO BLOG - YESDEV
   =================================== */

/* 1. CORREÇÃO DO HERO SECTION - ALTA PRIORIDADE */
section#hero.hero-section.hero-1 .hero-content {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
    position: relative !important;
    z-index: 2 !important;
}

section#hero.hero-section.hero-1 .hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    margin-bottom: 1.5rem !important;
}

section#hero.hero-section.hero-1 .hero-content h6 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    background: rgba(255, 102, 0, 0.9) !important;
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    margin-bottom: 1.5rem !important;
}

section#hero.hero-section.hero-1 .hero-content p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* 2. METADADOS EM LINHA RETA */
.news-meta .post-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.news-meta .post-meta-row .meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.news-meta .post-meta-row .meta-item i {
    color: #ff6600 !important;
    font-size: 0.85rem !important;
}

.news-meta .post-meta-row .meta-item span {
    color: #666 !important;
}

.news-meta .post-meta-row .meta-item a {
    color: #ff6600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.news-meta .post-meta-row .meta-item a:hover {
    color: #e55a00 !important;
}

/* 3. CONTAINER DE SEGURANÇA PARA CONTEÚDO WYSIWYG */
.news-details-wrapper .news-content-wrapper {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

.news-details-wrapper .news-content-wrapper .news-content {
    margin-top: 30px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    padding: 0 1rem !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* 4. FORMATAÇÃO PROFISSIONAL DO CONTEÚDO */
.news-content-wrapper .news-content h1, 
.news-content-wrapper .news-content h2, 
.news-content-wrapper .news-content h3,
.news-content-wrapper .news-content h4, 
.news-content-wrapper .news-content h5, 
.news-content-wrapper .news-content h6 {
    color: #05091D !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    position: relative !important;
}

.news-content-wrapper .news-content h1 { 
    font-size: 2.2rem !important; 
    border-bottom: 3px solid #ff6600 !important;
    padding-bottom: 0.5rem !important;
}

.news-content-wrapper .news-content h2 { 
    font-size: 1.9rem !important; 
    border-bottom: 2px solid #ff6600 !important;
    padding-bottom: 0.4rem !important;
}

.news-content-wrapper .news-content h3 { 
    font-size: 1.6rem !important; 
    color: #ff6600 !important;
}

.news-content-wrapper .news-content h4 { font-size: 1.3rem !important; }
.news-content-wrapper .news-content h5 { font-size: 1.1rem !important; }
.news-content-wrapper .news-content h6 { font-size: 1rem !important; }

.news-content-wrapper .news-content p {
    margin-bottom: 1.8rem !important;
    color: #444 !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
}

.news-content-wrapper .news-content strong, 
.news-content-wrapper .news-content b {
    font-weight: 700 !important;
    color: #05091D !important;
}

.news-content-wrapper .news-content em, 
.news-content-wrapper .news-content i {
    font-style: italic !important;
    color: #666 !important;
}

/* 5. LISTAS MELHORADAS */
.news-content-wrapper .news-content ul, 
.news-content-wrapper .news-content ol {
    margin-bottom: 2rem !important;
    padding-left: 2.5rem !important;
    background: #f8f9fa !important;
    padding: 1.5rem 2rem !important;
    border-radius: 8px !important;
    border-left: 4px solid #ff6600 !important;
}

.news-content-wrapper .news-content li {
    margin-bottom: 0.8rem !important;
    color: #444 !important;
    line-height: 1.6 !important;
    position: relative !important;
}

.news-content-wrapper .news-content ul li::before {
    content: '•' !important;
    color: #ff6600 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -1.2rem !important;
}

.news-content-wrapper .news-content ol {
    counter-reset: item !important;
}

.news-content-wrapper .news-content ol li {
    counter-increment: item !important;
}

.news-content-wrapper .news-content ol li::before {
    content: counter(item) '.' !important;
    color: #ff6600 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -1.5rem !important;
}

/* 6. BLOCKQUOTE MELHORADO */
.news-content-wrapper .news-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 5px solid #ff6600 !important;
    padding: 2rem !important;
    margin: 2.5rem 0 !important;
    border-radius: 0 12px 12px 0 !important;
    font-style: italic !important;
    color: #555 !important;
    position: relative !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
}

.news-content-wrapper .news-content blockquote::before {
    content: '"' !important;
    font-size: 4rem !important;
    color: #ff6600 !important;
    position: absolute !important;
    top: -10px !important;
    left: 20px !important;
    font-family: serif !important;
    opacity: 0.3 !important;
}

/* 7. IMAGENS E TABELAS */
.news-content-wrapper .news-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 2rem 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.news-content-wrapper .news-content img:hover {
    transform: scale(1.02) !important;
}

.news-content-wrapper .news-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
}

.news-content-wrapper .news-content table th,
.news-content-wrapper .news-content table td {
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.news-content-wrapper .news-content table th {
    background: #ff6600 !important;
    color: white !important;
    font-weight: 600 !important;
}

.news-content-wrapper .news-content table tr:hover {
    background: #f8f9fa !important;
}

/* 8. ELEMENTOS ESPECIAIS */
.news-content-wrapper .news-content .highlight {
    background: linear-gradient(120deg, #ff6600 0%, #ff8533 100%) !important;
    color: white !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.news-content-wrapper .news-content .tip {
    background: #e8f5e8 !important;
    border-left: 4px solid #28a745 !important;
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    position: relative !important;
}

.news-content-wrapper .news-content .tip::before {
    content: '💡' !important;
    position: absolute !important;
    left: -10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
}

.news-content-wrapper .news-content .warning {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    position: relative !important;
}

.news-content-wrapper .news-content .warning::before {
    content: '⚠️' !important;
    position: absolute !important;
    left: -10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
}

/* 9. RESPONSIVIDADE */
@media (max-width: 768px) {
    section#hero.hero-section.hero-1 .hero-content {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    
    section#hero.hero-section.hero-1 .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    section#hero.hero-section.hero-1 .hero-content p {
        font-size: 1rem !important;
    }

    .news-meta .post-meta-row {
        gap: 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .news-meta .post-meta-row .meta-item {
        font-size: 0.85rem !important;
    }

    .news-content-wrapper .news-content h1 { font-size: 1.75rem !important; }
    .news-content-wrapper .news-content h2 { font-size: 1.5rem !important; }
    .news-content-wrapper .news-content h3 { font-size: 1.25rem !important; }

    .news-details-wrapper .news-content-wrapper {
        padding: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    section#hero.hero-section.hero-1 .hero-content {
        padding-left: 9rem !important;
        padding-right: 9rem !important;
    }
    
    section#hero.hero-section.hero-1 .hero-content h1 {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 480px) {
    section#hero.hero-section.hero-1 .hero-content h1 {
        font-size: 2rem !important;
    }
    
    section#hero.hero-section.hero-1 .hero-content h6 {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.8rem !important;
    }
} 