/* ===== RESET E VARIÁVEIS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
     --primary-yellow: #FFD700;
    --dark-bg: #202124;
    --dark-black: #000000;
    --light-bg: #f8f9fa;
    --text-dark: #202124;
    --text-light: #5f6368;
    --border-color: #dadce0;
    --pure-white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff73;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== HEADER FLUTUANTE ===== */
.floating-header {
    background: var(--dark-black);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
}

.header-title {
    font-size: 1.5em;
    color: var(--primary-yellow);
    font-weight: 700;
    letter-spacing: 2px;
}

.top-nav {
    display: flex;
    gap: 30px;
}

.top-nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.top-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.top-nav a:hover::after,
.top-nav a.active::after {
    width: 100%;
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--primary-yellow);
}

/* ===== SEÇÃO DE NOTÍCIAS ===== */
.news-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.news-section.alternate-bg {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== GRID LAYOUT 1 (3 COLUNAS COM DESTAQUE) ===== */
.grid-layout-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-layout-1 .featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* ===== GRID LAYOUT 2 (2 COLUNAS COM CARDS GRANDES) ===== */
.grid-layout-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ===== GRID LAYOUT 3 (MASONRY LAYOUT) ===== */
.grid-layout-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: auto;
}

.grid-layout-3 .masonry-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.grid-layout-3 .masonry-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
}

/* ===== CARDS DE NOTÍCIAS ===== */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    background-color: #e8eaed;
    aspect-ratio: 16 / 10;
}

.news-card.featured .card-image {
    aspect-ratio: 16 / 12;
}

.news-card.large .card-image {
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-overlay-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.tag-bolsa {
    background-color: rgba(26, 115, 232, 0.9) !important;
    color: white !important;
}

.tag-esportes {
    background-color: rgba(52, 168, 83, 0.9) !important;
    color: white !important;
}

.tag-governo {
    background-color: rgba(251, 188, 4, 0.9) !important;
    color: var(--text-dark) !important;
}

.tag-corrida {
    background-color: rgba(229, 57, 53, 0.9) !important;
    color: white !important;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-meta i {
    color: var(--primary-color);
}

.news-card:hover .card-meta span {
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets (768px) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid-layout-1 {
        grid-template-columns: 1fr;
    }

    .grid-layout-1 .featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .grid-layout-2 {
        grid-template-columns: 1fr;
    }

    .grid-layout-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-layout-3 .masonry-item:nth-child(2),
    .grid-layout-3 .masonry-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-content {
        padding: 20px;
    }
}

/* Smartphones (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-title {
        font-size: 1.2em;
    }

    .top-nav {
        gap: 10px;
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .grid-layout-1,
    .grid-layout-2,
    .grid-layout-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card.featured .card-image,
    .news-card.large .card-image {
        aspect-ratio: 16 / 10;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 1.05rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .card-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .card-overlay-tags {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    .card-category {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .news-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visível para navegação por teclado */
.nav-link:focus,
.footer-section ul li a:focus,
.news-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}