/* ─── Lista de notícias (Index admin) ─── */
.noticia-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid rgba(255,215,0,0.07);
    transition: background 0.2s;
}
.noticia-item:last-child { border-bottom: none; }
.noticia-item:hover { background: rgba(255,215,0,0.03); }

.noticia-item-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
}

.noticia-item-date .day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
}

.noticia-item-date .month {
    font-size: 0.6rem;
    color: rgba(255,215,0,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.noticia-item-body { flex: 1; min-width: 0; }

.noticia-item-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noticia-item-preview {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noticia-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

/* ─── Página de leitura (Details) ─── */
.noticia-detail-container {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.noticia-detail-card {
    background: linear-gradient(135deg, rgba(22,12,12,0.98) 0%, rgba(28,14,8,0.98) 100%);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 16px;
    overflow: hidden;
}

.noticia-detail-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    background: rgba(255,215,0,0.03);
}

.noticia-detail-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.noticia-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.noticia-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

.noticia-meta-badge i { color: rgba(255,215,0,0.5); }

.noticia-detail-body {
    padding: 2rem;
}

/* Estilização do conteúdo HTML gerado pelo editor */
.noticia-content {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Rajdhani', sans-serif;
}

.noticia-content h1,
.noticia-content h2,
.noticia-content h3,
.noticia-content h4 {
    font-family: 'Orbitron', monospace;
    color: #ffd700;
    margin: 1.5rem 0 0.7rem;
}

.noticia-content h1 { font-size: 1.5rem; }
.noticia-content h2 { font-size: 1.25rem; }
.noticia-content h3 { font-size: 1.05rem; }

.noticia-content p { margin-bottom: 1rem; }

.noticia-content a {
    color: #ff6b35;
    text-decoration: none;
}
.noticia-content a:hover { text-decoration: underline; color: #ffd700; }

.noticia-content ul,
.noticia-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.noticia-content li { margin-bottom: 0.35rem; }

.noticia-content blockquote {
    border-left: 3px solid rgba(255,215,0,0.4);
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    background: rgba(255,215,0,0.04);
    border-radius: 0 8px 8px 0;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.noticia-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.noticia-content th {
    background: rgba(255,215,0,0.08);
    color: #ffd700;
    padding: 8px 12px;
    border: 1px solid rgba(255,215,0,0.15);
    text-align: left;
}

.noticia-content td {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
}

.noticia-content tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

.noticia-content img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.1);
}

.noticia-content strong { color: #fff; }
.noticia-content em { color: rgba(255,255,255,0.7); }

.noticia-content pre,
.noticia-content code {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #00d4ff;
}

.noticia-content pre { padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.noticia-content code { padding: 2px 6px; }

.noticia-detail-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255,215,0,0.07);
    background: rgba(255,215,0,0.02);
}

/* ─── Editor TinyMCE ─── */
.editor-wrapper {
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.editor-wrapper .tox-tinymce {
    border: none !important;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
    .noticia-detail-header { padding: 1.2rem 1.2rem 1rem; }
    .noticia-detail-body   { padding: 1.2rem; }
    .noticia-detail-title  { font-size: 1.15rem; }
    .noticia-detail-footer { padding: 0.8rem 1.2rem; }

    .noticia-item { gap: 0.7rem; padding: 0.9rem 1rem; }
    .noticia-item-date { width: 44px; height: 44px; }
    .noticia-item-date .day { font-size: 0.95rem; }
    .noticia-item-title { font-size: 0.82rem; }
}
