/* =====================================================
   AGORA! RIO - CSS PREMIUM COMPLETO
   ===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --azul: #2E5BFF;
    --azul-escuro: #1E3A8A;
    --azul-claro: #60A5FA;
    --cinza-bg: #F9FAFB;
    --cinza: #6B7280;
    --cinza-escuro: #374151;
    --cinza-medio: #E5E7EB;
    --branco: #FFFFFF;
    --texto-principal: #1F2937;
    --sombra: rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--cinza-bg);
    color: var(--texto-principal);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-escuro) 100%);
    color: white;
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 16px;
    transition: 0.3s;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo img {
    max-height: 60px;
}

.search-form {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    font-size: 15px;
}

.search-form input:focus {
    outline: none;
    border-color: var(--azul);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.search-form button:hover {
    background: var(--azul-escuro);
}

/* =====================================================
   MENU NAVEGAÇÃO
   ===================================================== */
.nav-menu {
    background: white;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: var(--azul);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    margin: 10px 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--cinza-escuro);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 10px;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #EFF6FF;
    color: var(--azul);
}

/* Mega Menu */
.mega-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 800px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid #E5E7EB;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mega-menu-grid a {
    padding: 14px 20px;
    background: #F9FAFB;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid transparent;
}

.mega-menu-grid a::before {
    content: '📍';
    margin-right: 8px;
}

.mega-menu-grid a:hover {
    background: #EFF6FF;
    color: var(--azul);
    border-color: var(--azul-claro);
    transform: translateX(4px);
}

/* =====================================================
   PUBLICIDADE
   ===================================================== */
.ad-banner-top {
    background: white;
    padding: 20px 0;
    margin: 20px 0;
    text-align: center;
}

.ad-banner-top img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =====================================================
   NOTÍCIA PRINCIPAL EM DESTAQUE
   ===================================================== */
.featured-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    margin-bottom: 50px;
}

.featured-main-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: 0.3s;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.featured-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.featured-main-card:hover .featured-main-image img {
    transform: scale(1.05);
}

.featured-main-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #E0245E;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-main-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-main-category {
    display: inline-block;
    padding: 8px 16px;
    background: #EFF6FF;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.featured-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--texto-principal);
}

.featured-main-subtitle {
    font-size: 1.2rem;
    color: var(--cinza-escuro);
    line-height: 1.6;
    margin-bottom: 25px;
}

.featured-main-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--cinza);
    padding-top: 20px;
    border-top: 1px solid var(--cinza-medio);
}

.featured-main-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-main-author {
    font-weight: 600;
    color: var(--texto-principal);
}

/* =====================================================
   CONTEÚDO PRINCIPAL + SIDEBAR
   ===================================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 50px 0;
}

/* =====================================================
   GRID DE NOTÍCIAS
   ===================================================== */
.news-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--texto-principal);
    padding-left: 20px;
    border-left: 5px solid var(--azul);
}

.section-link {
    background: var(--azul);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.3);
}

.section-link:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 255, 0.4);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--sombra);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #E0245E;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card-content {
    padding: 24px;
}

.news-card-category {
    display: inline-block;
    padding: 6px 14px;
    background: #EFF6FF;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--texto-principal);
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--cinza);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--cinza-medio);
    font-size: 13px;
    color: var(--cinza);
    gap: 10px;
}

.news-card-author,
.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--sombra);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--azul);
    color: var(--texto-principal);
}

.popular-news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--cinza-medio);
    transition: 0.3s;
}

.popular-news-item:hover {
    background: #F9FAFB;
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: 10px;
}

.popular-news-item:last-child {
    border-bottom: none;
}

.popular-news-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.popular-news-item:hover .popular-news-image img {
    transform: scale(1.1);
}

.popular-news-content {
    flex: 1;
}

.popular-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--texto-principal);
    line-height: 1.4;
    margin-bottom: 8px;
}

.popular-news-date {
    font-size: 12px;
    color: var(--cinza);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-banner-sidebar img {
    width: 100%;
    border-radius: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #9CA3AF;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--azul);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget p {
    line-height: 1.8;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #9CA3AF;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--azul-claro);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: 0.3s;
    padding: 0;
    margin: 0;
}

.footer-social a:hover {
    background: var(--azul);
    color: white;
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* =====================================================
   RESPONSIVO - MOBILE
   ===================================================== */
@media (max-width: 768px) {
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        border-radius: 0 0 15px 15px;
        padding: 0;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 18px 25px;
        border-radius: 0;
        font-size: 15px;
    }
    
    /* Mega menu mobile */
    .mega-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        min-width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: #F9FAFB !important;
        border-radius: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none !important;
    }
    
    .mega-dropdown.active .mega-menu {
        max-height: 600px;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .mega-menu-grid a {
        padding: 15px 40px !important;
        background: #F9FAFB !important;
        border-bottom: 1px solid #E5E7EB !important;
        border-radius: 0 !important;
    }
    
    /* Featured main mobile */
    .featured-main-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-main-image {
        height: 300px;
    }
    
    .featured-main-content {
        padding: 25px;
    }
    
    .featured-main-title {
        font-size: 1.8rem;
    }
    
    .featured-main-subtitle {
        font-size: 1rem;
    }
    
    .featured-main-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Header mobile */
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .search-form {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    
    /* Content mobile */
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .featured-main {
        padding: 30px 0;
    }
    
    .featured-main-title {
        font-size: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
}