/*
Theme Name: Evte News
Theme URI: https://evte.net/
Description: Tema completo e independente para sites de notícias. Layout moderno inspirado nos melhores portais de notícias. Não requer tema pai.
Author: Marco Jean
Author URI: https://evte.net/
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evte-news
Tags: news, magazine, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive
*/

/*
 * ====================================
 * EVTE NEWS THEME v2.0 - STANDALONE
 * Tema independente completo
 * Desenvolvido por Marco Jean
 * https://evte.net/
 * ====================================
 */

/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    /* Controlado via functions.php */
    text-decoration: none;
    transition: all 0.3s ease;
}



/* ============================================
   CONTAINER E ESTRUTURA
   ============================================ */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

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

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    min-width: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-top {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}



.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 32px;
    font-weight: 900;
    /* color: Controlado via functions.php */
    text-transform: uppercase;
    letter-spacing: -1px;
}



.site-logo img {
    max-height: 60px;
    width: auto;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
}

.header-search input:focus {
    outline: none;
    /* border-color: Controlado via functions.php */
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.site-navigation {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid transparent;
    /* Controlado via functions.php */
}

.main-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-menu li {
    position: relative;
}

.main-menu>li>a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-menu>li>a:hover,
.main-menu>li.current-menu-item>a {
    /* color: Controlado via functions.php */
    background: #f8f8f8;
}

/* Submenu */
.main-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.main-menu li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.main-menu li ul li a:hover {
    background: #f8f8f8;
    /* color: Controlado via functions.php */
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 10px;
}

/* ============================================
   FEATURED/HERO SECTION
   ============================================ */
.featured-section {
    background: #fff;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    color: #fff;
}

.featured-category {
    display: inline-block;
    /* background: Controlado via functions.php */
    color: #fff;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
}

.featured-title a {
    color: #fff;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 3px 0;
}



.featured-meta {
    font-size: 13px;
    opacity: 0.9;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-small {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 240px;
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-small .featured-overlay {
    padding: 20px;
}

.featured-small .featured-title {
    font-size: 18px;
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    /* Controlado via functions.php */
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #2c3e50;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    /* background: Controlado via functions.php */
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-title a {
    color: #333;
}



.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
    /* Controlado via functions.php */
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Widget Posts Recentes */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.recent-post-content h4 a {
    color: #333;
}



.recent-post-date {
    font-size: 12px;
    color: #999;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widget h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #bdc3c7;
    font-size: 14px;
}



.footer-bottom {
    background: #1a252f;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    color: #95a5a6;
}



#theme-credit {
    font-weight: 700;
    transition: all 0.3s ease;
}



/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    /* background/border: Controlado via functions.php */
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .featured-main {
        height: 400px;
    }

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

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

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

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .site-navigation {
        display: none;
    }

    .site-navigation.active {
        display: block;
    }

    .main-menu {
        flex-direction: column;
    }

    .main-menu li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-left: 20px;
    }

    .featured-main {
        height: 300px;
    }

    .featured-title {
        font-size: 24px;
    }

    .header-search input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .featured-overlay {
        padding: 20px;
    }

    .featured-title {
        font-size: 20px;
    }

    .post-title {
        font-size: 18px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.evte-breadcrumbs {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.5;
}

.evte-breadcrumbs span[itemprop="itemListElement"] {
    display: inline-flex;
    align-items: center;
}

.evte-breadcrumbs a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.evte-breadcrumbs a:hover {
    color: #0056b3;
}

.evte-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.evte-breadcrumbs .current-item {
    color: #333;
}

@media (max-width: 768px) {
    .evte-breadcrumbs {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

/* 
   These are conditionally loaded in inc/core.php
*/