/* Estilos especiais para o editor Summernote - Jornalismo */

/* Citações especiais */
.quote-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    position: relative;
    border-radius: 0 8px 8px 0;
}

.quote-highlight::before {
    content: '"';
    font-size: 4em;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.quote-author {
    font-weight: 600;
    color: #495057;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9em;
}

.quote-author::before {
    content: '— ';
    color: #007bff;
}

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.breaking-news::before {
    content: '🚨 URGENTE';
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.breaking-news p {
    margin: 0;
    font-weight: 500;
}

/* Destaque especial */
.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
}

.highlight-box h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Informações adicionais */
.info-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box::before {
    content: 'ℹ️ Informação';
    font-weight: 600;
    color: #0c5460;
    font-size: 0.9em;
    display: block;
    margin-bottom: 8px;
}

/* Aviso importante */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box::before {
    content: '⚠️ Atenção';
    font-weight: 600;
    color: #856404;
    font-size: 0.9em;
    display: block;
    margin-bottom: 8px;
}

/* Estatísticas ou dados */
.stats-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.stats-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: block;
    line-height: 1;
}

.stats-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Linha do tempo */
.timeline-item {
    border-left: 3px solid #007bff;
    padding-left: 20px;
    margin: 15px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    left: -7.5px;
    top: 5px;
}

.timeline-time {
    font-weight: 600;
    color: #007bff;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Marcadores de texto especiais */
.marker-yellow {
    background-color: #ffeb3b !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.marker-green {
    background-color: #4caf50 !important;
    color: white !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.marker-pink {
    background-color: #e91e63 !important;
    color: white !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.marker-blue {
    background-color: #2196f3 !important;
    color: white !important;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsividade */
@media (max-width: 768px) {
    .quote-highlight,
    .breaking-news,
    .highlight-box,
    .info-box,
    .warning-box,
    .stats-box {
        margin: 15px 0;
        padding: 15px;
    }
    
    .quote-highlight::before {
        font-size: 3em;
        top: -5px;
        left: 10px;
    }
    
    .stats-number {
        font-size: 2em;
    }
}

/* Estilos para o conteúdo final da notícia */
.noticia-content .quote-highlight,
.noticia-content .breaking-news,
.noticia-content .highlight-box,
.noticia-content .info-box,
.noticia-content .warning-box,
.noticia-content .stats-box,
.noticia-content .timeline-item {
    /* Garantir que os estilos sejam aplicados no conteúdo final */
    all: revert;
}

/* Melhorias para tabelas */
.ck-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.ck-content table td,
.ck-content table th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.ck-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.ck-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ck-content table tr:hover {
    background-color: #e9ecef;
}

/* Melhorias para listas */
.ck-content ul,
.ck-content ol {
    padding-left: 30px;
    margin: 15px 0;
}

.ck-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Melhorias para links */
.ck-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.ck-content a:hover {
    border-bottom-color: #007bff;
}

/* Melhorias para código */
.ck-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.ck-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.ck-content pre code {
    background: none;
    padding: 0;
    color: #495057;
}