/* ====================================================================
   Página: Detalhe da Notícia - Padrão Dark Glow Moderno (Mobile First)
   ==================================================================== */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #38bdf8;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --border-color: rgba(56, 189, 248, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glow: rgba(56, 189, 248, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Efeitos de Luz de Fundo (Glow Background) */
.bg-glow-1 {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(2, 132, 199, 0.22);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    top: 30%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    filter: blur(150px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

header, main, footer, .app-header {
    position: relative;
    z-index: 10;
}

/* --- CABEÇALHO DO APLICATIVO --- */
.app-header {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-info .app-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-login-header:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
}

/* --- CONTAINER PRINCIPAL E CARD DA NOTÍCIA --- */
.container-principal {
    flex: 1;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 20px 16px;
}

.container-noticia-detalhe {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    margin-bottom: 20px;
}

.btn-back-clean {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back-clean:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateX(-4px);
    box-shadow: 0 6px 20px var(--glow);
}

.noticia-detalhe-data {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.noticia-detalhe-titulo {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.noticia-detalhe-img-wrapper {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
}

.noticia-detalhe-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticia-detalhe-texto {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.noticia-detalhe-texto p {
    margin-bottom: 16px;
}

/* --- RODAPÉ --- */
.main-footer {
    width: 100%;
    background-color: #0b1329;
    color: var(--text-muted);
    border-top: 1px solid #1e293b;
    padding: 20px 16px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}


/* ==========================================================================
   BREAKPOINTS: EXPANSÃO PARA TABLETS E DESKTOPS (min-width: 768px)
   ========================================================================== */

@media screen and (min-width: 768px) {
    .app-header {
        padding: 16px 32px;
    }

    .container-principal {
        max-width: 1000px;
        padding: 40px 24px;
    }

    .container-noticia-detalhe {
        padding: 40px;
    }

    .noticia-detalhe-titulo {
        font-size: 2.2rem;
    }

    .noticia-detalhe-texto {
        font-size: 1.1rem;
    }

    .noticia-detalhe-img-wrapper {
        max-height: 480px;
    }
}