﻿/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #1e3a8a;
    color: white;
    padding: 8px 0;
}

    .header-top .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.date-weather {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-subscribe {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

    .btn-login:hover {
        background: rgba(255,255,255,0.1);
    }

.btn-subscribe {
    background: #dc2626;
    color: white;
}

    .btn-subscribe:hover {
        background: #b91c1c;
    }

/* Header principal */
.header-main {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .header-main .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 8px 16px;
    width: 300px;
}

    .search-bar input {
        border: none;
        background: none;
        outline: none;
        flex: 1;
        font-size: 14px;
    }

    .search-bar button {
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 4px;
    }

/* Navegação */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 15px 0;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .nav-link:hover, .nav-link.active {
        background: #1e3a8a;
        color: white;
    }

/* Conteúdo principal */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 250px;
    gap: 30px;
    margin-bottom: 50px;
}

/* Notícia em destaque */
.highlight-news {
    grid-column: 1;
}

.main-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image {
    position: relative;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 30px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-summary {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #9ca3af;
}

/* Notícias secundárias */
.secondary-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

    .secondary-article img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.article-info {
    padding: 20px;
}

    .article-info h3 {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .article-info p {
        font-size: 14px;
        color: #6b7280;
        margin-bottom: 10px;
    }

.time-ago {
    font-size: 12px;
    color: #9ca3af;
}

/* Notícias em alta */
.trending-news {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.aside-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3a8a;
}

.trending-list {
    list-style: none;
    counter-reset: trending-counter;
}

    .trending-list li {
        counter-increment: trending-counter;
        margin-bottom: 15px;
        padding-left: 30px;
        position: relative;
    }

        .trending-list li::before {
            content: counter(trending-counter);
            position: absolute;
            left: 0;
            top: 0;
            background: #1e3a8a;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }

    .trending-list a {
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .trending-list a:hover {
            color: #1e3a8a;
        }

/* Seções de categoria */
.category-sections {
    margin-top: 50px;
}

.category-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
    padding-bottom: 10px;
}

    .category-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: #1e3a8a;
    }

.see-more {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
    font-size: 14px;
}

    .see-more:hover {
        text-decoration: underline;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.category-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .category-article:hover {
        transform: translateY(-2px);
    }

    .category-article img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .category-article h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
        margin: 20px 20px 10px 20px;
        line-height: 1.4;
    }

    .category-article p {
        font-size: 14px;
        color: #6b7280;
        margin: 0 20px 20px 20px;
        line-height: 1.5;
    }

/* Footer */
.main-footer {
    background: #1f2937;
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f9fafb;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: #f9fafb;
    }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #374151;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        transition: background 0.3s ease;
    }

        .social-links a:hover {
            background: #4b5563;
        }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-article, .secondary-article, .trending-news, .category-article {
    animation: fadeIn 0.6s ease-out;
}

/* Utilidades */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}
