/*
Theme Name: Tema A Plateia
Theme URI: https://aplateia.com.br.
Author: Soluque Informática
Author URI: https://soluquer.com.br.
Description: Tema de notícias para o site A Plateia.
Version: 1.2
Text Domain: meu-portal
*/
/* ===== ESTILOS GERAIS ===== */
* {
    margin: 0;
    padding: 100;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* ===== HEADER ===== */
header {
    background: #1a365d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== SEÇÕES PRINCIPAIS ===== */
section {
    margin: 2rem 0;
    padding: 0 20px;
}

section h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #456797;
    font-weight: 700;
}

/* ===== BLOCO DESTAQUES ===== */
.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.destaques .post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.destaques .post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #4fa9ff;
    transition: transform 0.3s ease;
}

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

.destaques .post-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.destaques .post-card h3 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.destaques .post-card h3 a:hover {
    color: #e53e3e;
}

.destaques .post-card .excerpt {
    padding: 0 1.2rem 1.2rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== BLOCO ÚLTIMAS NOTÍCIAS ===== */
.ultimas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ultimas .post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}

.ultimas .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.ultimas .post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 2px solid #e2e8f0;
}

.ultimas .post-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.ultimas .post-card h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ultimas .post-card h3 a:hover {
    color: #e53e3e;
}

.ultimas .post-card .excerpt {
    padding: 0 1rem 1rem;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* ===== MENSAGENS DE ERRO ===== */
section p {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 8px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

/* ===== FOOTER ===== */
footer {
    background: #1a365d;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    section {
        padding: 0 15px;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .destaques-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ultimas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .destaques .post-card img,
    .ultimas .post-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .destaques .post-card h3 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.5rem;
    }
    
    .ultimas .post-card h3 {
        font-size: 1rem;
        padding: 0.8rem 0.8rem 0.4rem;
    }
    
    .destaques .post-card .excerpt,
    .ultimas .post-card .excerpt {
        padding: 0 1rem 1rem;
        font-size: 0.85rem;
    }
}

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

.destaques-grid .post-card,
.ultimas-grid .post-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== ESTILOS PARA EXCERPT ===== */
.post-card .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== BADGE PARA CATEGORIAS (opcional) ===== */
.post-card::before {
    content: attr(data-category);
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* ===== MELHORIAS PARA AS IMAGENS ===== */
.post-card {
    position: relative;
}

.post-card img {
    transition: transform 0.3s ease;
}

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

/* ===== ESTILOS PARA LINKS ===== */
a {
    color: #3182ce;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c5aa0;
}

/* ===== CARREGAMENTO SUAVE ===== */
.destaques-grid,
.ultimas-grid {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading {
    opacity: 0.7;
}









/* ===== RESET COMPLETO DO MENU ===== */
header nav,
header nav * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HEADER PRINCIPAL ===== */
header {
    background: #1a365d;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* ===== CONTAINER DO MENU ===== */
.menu-menu_aplateia-container {
    width: 100%;
}

/* ===== MENU PRINCIPAL ===== */
header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 1.5rem;
}

#primary-menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#primary-menu li a {
    color: white !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem 0.8rem !important;
    display: block !important;
    transition: all 0.3s ease !important;
    border-radius: 4px;
}

#primary-menu li a:hover {
    color: #7ac6ff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

/* Menu ativo */
#primary-menu li.current-menu-item a,
#primary-menu li.current-page-item a {
    color: #7ac6ff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ===== BUSCA ===== */
header .search-form {
    margin-left: 2rem;
}

header .search-form form {
    display: flex;
    gap: 0.5rem;
}

header .search-form input[type="search"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    min-width: 200px;
}

header .search-form input[type="submit"] {
    background: #7ac6ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

header .search-form input[type="submit"]:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
    #primary-menu {
        gap: 1rem;
    }
    
    #primary-menu li a {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

@media (max-width: 968px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    header nav {
        order: 2;
        width: 100%;
    }
    
    .menu-menu_aplateia-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
    }
    
    #primary-menu {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.8rem;
    }
    
    header .search-form {
        margin-left: 0;
        order: 3;
        width: 100%;
    }
    
    header .search-form form {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    #primary-menu li a {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    header .search-form input[type="search"] {
        min-width: 150px;
    }
}

/* Scroll horizontal para mobile */
.menu-menu_aplateia-container::-webkit-scrollbar {
    height: 4px;
}

.menu-menu_aplateia-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.menu-menu_aplateia-container::-webkit-scrollbar-thumb {
    background: #7ac6ff;
    border-radius: 2px;
}

.banner-destaques {
    margin: 2rem 0;
    text-align: center;
}

.banner-widget {
    max-width: 100%;
    margin: 0 auto;
}

.banner-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}