/*
Theme Name: UzTech UltraLite
Theme URI: https://uztech.com.br/uztech-ultralite
Author: UzTech
Author URI: https://uztech.com.br
Description: Um tema WordPress limpo, leve e minimalista, otimizado para performance, SEO e compatibilidade com Elementor. Compatível com WordPress 6.8.2.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uztech-ultralite
Tags: blog, one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns, block-styles, wide-blocks, dark-mode

*/

/* Reset e Normalize */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700; /* Aumentar peso da fonte para melhor clareza */
    line-height: 1.2;
    color: inherit;
}

h1 { font-size: 2.8rem; } /* Aumentar tamanho para melhor hierarquia */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

p {
    margin: 0 0 1.2rem 0; /* Aumentar espaçamento entre parágrafos */
    line-height: 1.7; /* Melhorar legibilidade */
}

/* Conteúdo dos Posts */
.entry-content {
    line-height: 1.8; /* Aumentar line-height para melhor legibilidade */
    margin-bottom: 2.5rem;
    font-size: 1.15rem; /* Aumentar tamanho da fonte do conteúdo */
}

.entry-content blockquote {
    margin: 2.5rem 0;
    padding: 1.8rem;
    background: #f8f9fa;
    border-left: 5px solid #0073aa; /* Aumentar espessura da borda */
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 4.5rem; /* Aumentar tamanho da aspas */
    color: #0073aa;
    position: absolute;
    top: -15px;
    left: 15px;
    opacity: 0.3;
}

/* Media Queries para Responsividade */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
    .entry-content { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .site-content.has-sidebar {
        grid-template-columns: 1fr; /* Sidebar abaixo do conteúdo em telas menores */
    }
    .site-branding {
        padding: 1rem 0;
    }
    .site-title {
        font-size: 2rem;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .main-navigation a {
        padding: 0.5rem 0.75rem;
    }
    .entry-header {
        margin-bottom: 1.5rem;
    }
    .entry-title {
        font-size: 2rem;
    }
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .widget-area {
        padding: 0;
    }
    .widget {
        margin-bottom: 1.5rem;
    }
    .site-footer {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 0.9rem; }
    .entry-content { font-size: 1rem; }
    .ad-space {
        padding: 0.8rem;
    }
}

/* Espaços para Anúncios */
.ad-space {
    margin: 2.5rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f2f5 0%, #e6e8eb 100%);
    border: 1px solid #d1d5da;
    border-radius: 12px;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 728px; /* Limite para banners maiores */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ad-space:hover {
    background: linear-gradient(135deg, #e6e8eb 0%, #d1d5da 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.header-ad {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-ad {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 767px) {
    .ad-space {
        margin: 1.5rem auto;
        padding: 1rem;
        max-width: 320px; /* Ajuste para mobile */
    }
    .header-ad {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .content-ad {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: #005177;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* 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 !important;
    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;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background: #2d2d2d;
    border-bottom-color: #404040;
}

body.dark-mode .site-title a {
    color: #e0e0e0;
}

body.dark-mode .site-title a:hover {
    color: #8ab4f8;
}

body.dark-mode .site-description {
    color: #b0b0b0;
}

body.dark-mode .main-navigation {
    background: #333333;
}

body.dark-mode .main-navigation a {
    color: #e0e0e0;
}

body.dark-mode .main-navigation a:hover,
body.dark-mode .main-navigation a:focus {
    background-color: #8ab4f8;
    color: #1a1a1a;
}

body.dark-mode .entry-title {
    color: #e0e0e0;
}

body.dark-mode .entry-title a:hover {
    color: #8ab4f8;
}

body.dark-mode .entry-meta {
    color: #b0b0b0;
}

body.dark-mode .entry-meta a:hover {
    color: #8ab4f8;
}

body.dark-mode .entry-content blockquote {
    background: #2d2d2d;
    border-left-color: #8ab4f8;
}

body.dark-mode .entry-content blockquote::before {
    color: #8ab4f8;
}

body.dark-mode .widget {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .widget-title {
    color: #e0e0e0;
    border-bottom-color: #8ab4f8;
}

body.dark-mode .ad-space {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-color: #555555;
    color: #b0b0b0;
}

body.dark-mode .ad-space:hover {
    background: linear-gradient(135deg, #404040 0%, #555555 100%);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.1);
}

body.dark-mode button,
body.dark-mode input[type="button"],
body.dark-mode input[type="reset"],
body.dark-mode input[type="submit"] {
    background: #8ab4f8;
    color: #1a1a1a;
}

body.dark-mode button:hover,
body.dark-mode input[type="button"]:hover,
body.dark-mode input[type="reset"]:hover,
body.dark-mode input[type="submit"]:hover {
    background: #a8c7fa;
    box-shadow: 0 4px 12px rgba(138, 180, 248, 0.3);
}

body.dark-mode a {
    color: #8ab4f8;
}

body.dark-mode a:hover {
    color: #a8c7fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-branding {
        padding: 1rem 0;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .main-navigation a {
        padding: 0.5rem 1rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .widget-area {
        padding: 0;
    }
    
    .site-content {
        padding: 1rem 0;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .widget {
        padding: 1rem;
    }
}

/* Compatibilidade com Elementor */
.elementor-widget-container {
    margin: 0;
}

.elementor-section {
    margin: 0;
}

.elementor-column {
    margin: 0;
}

/* Prevenção de layout shift */
img {
    max-width: 100%;
    height: auto;
}

.wp-block-image img {
    border-radius: 8px;
}

/* Otimizações para impressão */
@media print {
    .site-header,
    .main-navigation,
    .ad-space,
    .site-footer,
    .widget-area {
        display: none;
    }
    
    .site-content {
        margin: 0;
        padding: 0;
        grid-template-columns: 1fr;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        text-decoration: underline;
    }
    
    .entry-title {
        font-size: 18pt;
        margin-bottom: 12pt;
    }
}


