/*
Theme Name: MinutoAtual v2
Theme URI: https://minutoatual.online
Author: MinutoAtual
Description: Portal de noticias MinutoAtual - Layout responsivo com suporte a AdSense.
Version: 2.1
Text Domain: minutoatual-v2
*/

/* ===========================
   RESET & BASE VARIABLES
   =========================== */
:root {
    --primary:      #E63946;
    --primary-dark: #cc2b37;
    --dark:         #111111;
    --dark-alt:     #1d1d1d;
    --mid:          #444444;
    --light-text:   #666666;
    --bg:           #f5f5f5;
    --white:        #ffffff;
    --border:       #e4e4e4;
    --font:         'Inter', sans-serif;
    --radius:       8px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:    0 6px 20px rgba(0,0,0,0.10);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--dark-alt);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

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

/* ===========================
   AD SLOTS (discretos)
   =========================== */
.ad-slot {
    background: #ebebeb;
    border: 1px dashed #ccc;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 16px auto;
    border-radius: 4px;
    color: #aaa;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.ad-label {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 10px;
    color: #bbb;
}
.ad-header        { width: 100%; max-width: 728px; height: 90px; }
.ad-infeed        { width: 100%; height: 90px; }
.ad-sidebar       { width: 100%; height: 250px; }
.ad-sidebar-sticky{ width: 100%; height: 600px; position: sticky; top: 70px; }
.in-article-ad    { width: 100%; height: 90px; margin: 24px 0; }

/* ===========================
   TOP BAR (minimalista)
   =========================== */
.top-bar {
    background: var(--dark);
    color: #aaa;
    font-size: 12px;
    letter-spacing: .4px;
    padding: 7px 0;
    border-bottom: 2px solid var(--primary);
}
.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.top-bar .date-dot {
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.top-bar .date-today {
    font-weight: 500;
    color: #ccc;
    text-transform: capitalize;
}

/* ===========================
   HEADER
   =========================== */
.main-header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: 0 1px 0 var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }

/* ===========================
   NAVIGATION (Minimalista)
   =========================== */
.main-nav {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-links {
    display: flex;
    gap: 0;
}
.nav-links li a {
    display: block;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .2s, background .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff5f5;
}

/* Mobile hamburger (sem JS, hidden desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-alt);
    border-radius: 2px;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    margin-top: 28px;
    margin-bottom: 60px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.news-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover img { transform: scale(1.04); }

.hero-card { height: 400px; }

.hero-card .card-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    color: var(--white);
}
.hero-card h2 a {
    color: var(--white);
    font-size: 24px;
    line-height: 1.3;
    display: block;
    margin-bottom: 8px;
}
.hero-card h2 a:hover { color: #ffcccc; }
.hero-card p { font-size: 14px; color: #ddd; margin-bottom: 12px; }

.small-card { flex: 1; min-height: 0; }
.small-card .card-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.1));
    color: var(--white);
}
.small-card h3 a { color: var(--white); font-size: 16px; line-height: 1.35; }
.small-card h3 a:hover { color: #ffcccc; }

.category-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.post-meta { font-size: 12px; color: rgba(255,255,255,.65); }
.post-meta-dark { font-size: 12px; color: #999; }

/* ===========================
   CONTENT + SIDEBAR LAYOUT
   =========================== */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
}

/* Section title */
.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark-alt);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.section-title::after {
    content: '';
    display: block;
    margin-top: -2px;
    width: 40px;
    border-bottom: 3px solid var(--primary);
}

/* News list items */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.list-item {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
    margin-bottom: 12px;
}
.list-item:hover { box-shadow: var(--shadow-md); }
.list-item img {
    width: 200px;
    min-width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}
.item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.category-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.item-content h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--dark-alt);
}
.item-content h4 a:hover { color: var(--primary); }
.item-content p { color: var(--light-text); font-size: 14px; margin-bottom: 8px; line-height: 1.5; }

/* ===========================
   SIDEBAR WIDGETS
   =========================== */
.widget {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--dark-alt);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 18px;
}
.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rank {
    font-size: 26px;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1;
    min-width: 28px;
}
.trending-list a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-alt);
}
.trending-list a:hover { color: var(--primary); }

/* ===========================
   FOOTER
   =========================== */
.main-footer {
    background: #0f0f0f;
    color: #999;
    padding: 56px 0 0;
    margin-top: 20px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}
.footer-about img { height: 40px; margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.6; color: #777; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #888; font-size: 14px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #555;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .content-sidebar-layout { grid-template-columns: 1fr; }
    .ad-sidebar-sticky { position: static; height: 250px; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; }
    .small-card { min-height: 200px; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .logo img { height: 38px; }
    .ad-header { display: none; }

    /* Mobile Nav */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 13px 20px; border-bottom: 1px solid var(--border); border-left: none; margin-bottom: 0; }

    .hero-side { flex-direction: column; }
    .small-card { min-height: 180px; }

    .list-item { flex-direction: column; }
    .list-item img { width: 100%; min-width: unset; height: 200px; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .main-content { margin-top: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-card { height: 280px; }
    .hero-card h2 a { font-size: 19px; }
}
