/*
Theme Name: JNews - PiraNOT
Version: 1.0.0
Theme URI: https://piranot.com.br
Description: Child theme de PiraNOT baseado em JNews 12.0.4 - Premium Enterprise Edition
Author: PiraNOT
Author URI: https://piranot.com.br
Template: jnews
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jnews-piranot
Domain Path: /languages
*/

/* ===================================================================
   PIRANOT — Estilo Premium / Enterprise sobre JNews 12.0.4
   =================================================================== */

:root {
    /* Cores Premium da Marca */
    --uol-blue: #0A3A8A;
    --uol-blue-hover: #082D6E;
    --uol-blue-light: #E8EEFA;
    --uol-red: #C40000;
    --uol-red-hover: #9E0000;
    --uol-black: #111111;
    --uol-gray-dark: #333333;
    --uol-gray: #666666;
    --uol-gray-light: #F8F9FA;
    --uol-border: #E5E7EB;
    
    /* Tipografia Moderna */
    --font-heading: 'Oswald', sans-serif;
    --font-text: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Espaçamentos Consistentes (Grid de 8px) */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Sombras Premium / Smooth Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Detalhes de Interação */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Importar estilos do tema pai */
@import url(../jnews/style.css);

/* ===================================================================
   TIPOGRAFIA GLOBAL PIRANOT
   =================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--uol-black);
}

body {
    font-family: var(--font-text);
    color: var(--uol-gray-dark);
    line-height: 1.6;
    background-color: #FAFAFA;
}

/* ===================================================================
   BRANDING & INTERATIVIDADE
   =================================================================== */

::selection {
    background-color: var(--uol-blue);
    color: white;
}

.jeg_primary_menu > li > a {
    color: var(--uol-gray-dark);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

.jeg_primary_menu > li > a:hover,
.jeg_primary_menu > li.active > a {
    color: var(--uol-blue);
    border-bottom-color: var(--uol-blue);
}

a {
    color: var(--uol-blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--uol-red);
}

/* ===================================================================
   HEADER PREMIUM
   =================================================================== */

.jeg_header {
    border-bottom: 1px solid var(--uol-border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.jeg_logo img {
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.jeg_search_trigger {
    color: var(--uol-blue);
    transition: color var(--transition-fast);
}

.jeg_search_trigger:hover {
    color: var(--uol-red);
}

/* ===================================================================
   CARDS DE ARTIGO — Modernização
   =================================================================== */

.nbc-hero-card,
.nbc-cluster-card,
.nbc-grid-card {
    text-decoration: none;
    display: block;
}

.nbc-hero-card a,
.nbc-cluster-card a,
.nbc-grid-card a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nbc-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: var(--uol-black);
}

.nbc-hero-title:hover {
    color: var(--uol-blue);
}

.nbc-cluster-title,
.nbc-grid-title {
    font-family: var(--font-text);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--uol-black);
}

.nbc-cluster-title:hover,
.nbc-grid-title:hover {
    color: var(--uol-blue);
}

/* Efeito de zoom na imagem do card (JNews override) */
.jeg_thumb img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jeg_post:hover .jeg_thumb img {
    transform: scale(1.03);
}

/* ===================================================================
   ESTRUTURA DA HOME PAGE
   =================================================================== */

.pira-nbc-home-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.pira-nbc-top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.pira-nbc-hero-slot {
    border-right: 1px solid var(--uol-border);
    padding-right: var(--spacing-xl);
}

.pira-nbc-cluster-slot {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.pira-nbc-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    border-top: 1px solid var(--uol-border);
    padding-top: var(--spacing-xl);
}

/* ===================================================================
   SINGLE POST EXPERIÊNCIA (Leitura Otimizada)
   =================================================================== */

.jeg_post_title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--uol-black);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.jeg_post_subtitle {
    font-size: 1.25rem;
    color: var(--uol-gray);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 var(--spacing-lg) 0;
}

.jeg_post_content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.jeg_post_content p {
    margin-bottom: 2rem;
}

.jeg_post_content a {
    text-decoration: underline;
    text-decoration-color: rgba(10, 58, 138, 0.3);
    text-underline-offset: 3px;
    font-weight: 500;
}

.jeg_post_content a:hover {
    text-decoration-color: var(--uol-blue);
    color: var(--uol-blue-hover);
}

/* ===================================================================
   ARCHIVE (Categorias / Tags)
   =================================================================== */

.jeg_archive_title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    border-bottom: 2px solid var(--uol-black);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    position: relative;
    text-transform: uppercase;
}

.jeg_archive_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--uol-blue);
}

/* ===================================================================
   BOTÕES E FORMS MODERNO
   =================================================================== */

.jeg_button {
    background: var(--uol-blue);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    text-decoration: none !important;
    display: inline-block;
}

.jeg_button:hover {
    background: var(--uol-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.jeg_button:active {
    transform: translateY(0);
}

/* ===================================================================
   SIDEBAR & WIDGETS ELEGANTES
   =================================================================== */

.jeg_widget {
    background: #ffffff;
    border: 1px solid var(--uol-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.jeg_widget_title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--uol-black);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.jeg_widget_title::before {
    content: '';
    display: block;
    width: 8px;
    height: 24px;
    background: var(--uol-blue);
    margin-right: 12px;
    border-radius: 2px;
}

/* ===================================================================
   FOOTER SÓLIDO
   =================================================================== */

.jeg_footer {
    background: #0A0A0A;
    color: #A0AEC0;
    border-top: none;
    padding-top: var(--spacing-2xl);
}

.jeg_footer_title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jeg_footer a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.jeg_footer a:hover {
    color: #ffffff;
}

/* ===================================================================
   RESPONSIVIDADE (Mobile First Improvements)
   =================================================================== */

@media (max-width: 992px) {
    .pira-nbc-top-section {
        grid-template-columns: 1fr;
    }
    
    .pira-nbc-hero-slot {
        border-right: none;
        border-bottom: 1px solid var(--uol-border);
        padding-right: 0;
        padding-bottom: var(--spacing-xl);
    }
    
    .pira-nbc-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 20px;
        --spacing-xl: 24px;
        --spacing-2xl: 32px;
    }
    
    .jeg_post_content p {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .pira-nbc-grid-section {
        grid-template-columns: 1fr;
    }
    
    .jeg_widget {
        padding: var(--spacing-md);
    }
}
