/* =============================================
   FluNotícias — Estilos Globais
   Cores Fluminense: Grená #8B1A2D | Verde #1B5E20 | Branco #FFFFFF
   ============================================= */

:root {
    --flu-grenha: #8B1A2D;
    --flu-grenha-dark: #6a1322;
    --flu-green: #1B5E20;
    --flu-green-light: #2E7D32;
    --flu-white: #FFFFFF;
    --flu-gold: #FFC107;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Lora', Georgia, serif;
    color: var(--text-dark);
    background: #f5f5f5;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn, .badge, .nav-link {
    font-family: 'Montserrat', sans-serif;
}

a { color: var(--flu-grenha); transition: var(--transition); }
a:hover { color: var(--flu-grenha-dark); }

/* ── Top Bar ─────────────────────────────── */
.top-bar {
    background: var(--flu-grenha-dark);
    padding: 6px 0;
    font-size: 0.8rem;
}

.top-bar .social-links a {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}
.top-bar .social-links a:hover { color: var(--flu-gold); }

/* ── Navbar ──────────────────────────────── */
.main-nav {
    background: var(--flu-grenha) !important;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand { text-decoration: none; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    background: var(--flu-gold);
    color: var(--flu-grenha);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--flu-white);
    letter-spacing: -0.5px;
}

.brand-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 4px;
    transition: var(--transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--flu-gold) !important;
    background: rgba(255,255,255,0.1);
}

.main-nav .dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow-hover);
    border-radius: 8px;
    overflow: hidden;
}

.main-nav .dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    transition: var(--transition);
}

.main-nav .dropdown-item:hover {
    background: var(--flu-grenha);
    color: white;
}

/* ── Hero Section ────────────────────────── */
.hero-section {
    background: var(--flu-grenha);
    padding: 24px 0;
}

.hero-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.hero-image-col { position: relative; max-height: 420px; overflow: hidden; }
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139,26,45,0.95), rgba(27,94,32,0.8));
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
    color: white !important;
}

.hero-summary { font-size: 0.95rem; opacity: 0.9; }
.hero-meta { font-size: 0.8rem; }

/* ── Section Titles ──────────────────────── */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--flu-grenha);
    display: inline-block;
}

/* ── News Cards ──────────────────────────── */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img { transform: scale(1.05); }

.yt-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,0,0,0.9);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}

.news-card-title a:hover { color: var(--flu-grenha) !important; }

.news-card-summary {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-card-meta {
    font-size: 0.78rem;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ── Badges ──────────────────────────────── */
.badge-category {
    background: var(--flu-grenha);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-sm {
    background: var(--flu-grenha);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ── Sidebar ─────────────────────────────── */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--flu-grenha);
    margin-bottom: 16px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-news-item:last-child { border-bottom: none; }

.sidebar-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news-text { display: flex; flex-direction: column; gap: 4px; }

.sidebar-news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
    transition: var(--transition);
}
.sidebar-news-title:hover { color: var(--flu-grenha); }

.sidebar-ad {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    min-height: 250px;
}

.sources-list li { margin-bottom: 6px; }
.sources-list a {
    font-size: 0.88rem;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}
.sources-list a:hover { color: var(--flu-grenha); }

/* ── Article Page ────────────────────────── */
.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.article-meta { color: var(--text-muted); font-size: 0.88rem; }
.article-meta a { color: var(--flu-grenha); }

.article-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c2c2c;
}

.article-body p { margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin: 1.8rem 0 0.8rem;
    color: var(--flu-grenha);
}

.article-body a { color: var(--flu-grenha); font-weight: 600; }
.article-body strong { color: var(--text-dark); }

.article-figure { margin: 0; }

.share-box { border: 1px solid var(--border-color); }
.source-box { font-size: 0.88rem; }

/* ── Related Articles ────────────────────── */
.related-card {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.related-card:hover { box-shadow: var(--card-shadow-hover); }

.related-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-text { display: flex; flex-direction: column; gap: 4px; }

.related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
    transition: var(--transition);
}
.related-title:hover { color: var(--flu-grenha); }

/* ── Footer ──────────────────────────────── */
.site-footer { background: #1a1a1a; }

.footer-main { border-bottom: 1px solid rgba(255,255,255,0.1); }

.footer-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 6px;
    transition: var(--transition);
}
.footer-link:hover { color: var(--flu-gold); }

.social-links-footer { display: flex; gap: 14px; margin-top: 12px; }
.social-links-footer a {
    color: rgba(255,255,255,0.55);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-links-footer a:hover { color: var(--flu-gold); }

.footer-bottom { background: rgba(0,0,0,0.3); }

/* ── Cookie Banner ───────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: white;
    padding: 14px 0;
    z-index: 9999;
    border-top: 2px solid var(--flu-grenha);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

/* ── Page Content (legal pages) ─────────── */
.page-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--flu-grenha);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-color);
}

.page-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.page-content p, .page-content li {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #333;
}

/* ── Pagination ──────────────────────────── */
.pagination .page-link {
    color: var(--flu-grenha);
    border-color: var(--border-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background-color: var(--flu-grenha);
    border-color: var(--flu-grenha);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--flu-grenha);
    border-color: var(--flu-grenha);
    color: white;
}

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb-item a { color: var(--flu-grenha); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Contact Cards ───────────────────────── */
.contact-info-card { transition: var(--transition); }
.contact-info-card:hover { background: #e9ecef !important; }

/* ── Utilities ───────────────────────────── */
.btn-danger { background: var(--flu-grenha); border-color: var(--flu-grenha); }
.btn-danger:hover { background: var(--flu-grenha-dark); border-color: var(--flu-grenha-dark); }

.text-white-75 { color: rgba(255,255,255,0.75) !important; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .hero-content { padding: 20px; }
    .hero-title { font-size: 1.25rem; }
    .article-title { font-size: 1.5rem; }
    .brand-name { font-size: 1.1rem; }
    .brand-tag { display: none; }
    .news-card-img-wrap { height: 160px; }
}

@media (max-width: 576px) {
    .hero-section { padding: 16px 0; }
    .hero-content { padding: 16px; }
    .article-body { font-size: 0.97rem; }
}
