/* style.css */
:root {
    --primary-color: #c4170c;
    --primary-hover: #a01008;
    --text-dark: #333333;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 60px; /* Para o header fixo */
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Header Navbar */
.navbar-emuba {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
}

.navbar-emuba .navbar-brand {
    color: var(--white);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.navbar-emuba .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px !important;
}

.navbar-emuba .nav-link:hover {
    background-color: var(--primary-hover);
}

/* Categorias Bar */
.cat-bar {
    background-color: var(--white);
    border-bottom: 2px solid #eaeaea;
    overflow-x: auto;
    white-space: nowrap;
}

.cat-bar a {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 15px;
    display: inline-block;
}

.cat-bar a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -3px;
}

/* Notícia Destaque */
.destaque-principal {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    background: #000;
}

.destaque-principal img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.destaque-principal:hover img {
    opacity: 0.9;
}

.destaque-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}

.destaque-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.destaque-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Tags / Badges / Labels */
.badge-categoria {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

/* Cards de Notícias Grid */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.news-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 15px;
    flex-grow: 1;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Sidebar Populares */
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-number {
    font-size: 2rem;
    font-weight: 900;
    color: #e0e0e0;
    min-width: 40px;
    line-height: 1;
}

.popular-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Publicidade Placeholders */
.ad-slot {
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Rodapé */
.footer {
    background-color: var(--text-dark);
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer a {
    color: #eee;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-logo {
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Single Notícia */
.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #000;
}

.article-subtitle {
    font-size: 1.4rem;
    color: #555;
    font-weight: 400;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: 20px;
}

.article-img-main {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: #000;
    margin-bottom: 10px;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    margin-right: 8px;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-share a:hover {
    transform: scale(1.1);
    color: white;
}

.bg-whatsapp { background-color: #25D366; }
.bg-facebook { background-color: #1877F2; }
.bg-twitter { background-color: #1DA1F2; }
.bg-link { background-color: #6c757d; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .destaque-principal img { height: 40vh; }
    .destaque-content h1 { font-size: 1.8rem; }
    .article-title { font-size: 2.2rem; }
}
