@charset "UTF-8";

/*
Theme Name: Vibe Positiva
Theme URI: https://vibepositiva.com/
Author: Yuri Geiger
Author URI: https://www.linkedin.com/in/yuri-geiger-026567203/
Description: Esse thema foi desenvolvido para atender as necessidades do site Vibe Positiva.
Requires at least: 5.3
Tested up to: 6.7
Requires PHP: 8.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vibepositiva
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, portfolio

Vibe Vibe-Positiva is distributed under the terms of the GNU GPL.
*/

/**
 * SETTINGS
 * File-header..........The file header for the themes style.css file.
 * Fonts................Any font files, if the project needs specific fonts.
 * Global...............Project-specific, globally available variables.
 *
 * TOOLS
 * Functions............Global functions.
 * Mixins...............Global mixins.
 *
 * GENERIC
 * Normalize.css........Normalise browser defaults.
 * Breakpoints..........Mixins and variables for responsive styles
 * Vertical-margins.....Vertical spacing for the main components.
 * Reset................Reset specific elements to make them easier to style in other contexts.
 * Clearings............Clearings for the main components.
 *
 * ELEMENTS
 * Blockquote...........Default blockquote.
 * Forms................Element-level form styling.
 * Headings.............H1–H6
 * Links................Default links.
 * Lists................Default lists.
 * Media................Images, Figure, Figcaption, Embed, iFrame, Objects, Video.
 *
 * BLOCKS
 * Audio................Specific styles for the audio block.
 * Button...............Specific styles for the button block.
 * Code.................Specific styles for the code block.
 * Columns..............Specific styles for the columns block.
 * Cover................Specific styles for the cover block.
 * File.................Specific styles for the file block.
 * Gallery..............Specific styles for the gallery block.
 * Group................Specific styles for the group block.
 * Heading..............Specific styles for the heading block.
 * Image................Specific styles for the image block.
 * Latest comments......Specific styles for the latest comments block.
 * Latest posts.........Specific styles for the latest posts block.
 * Legacy...............Specific styles for the legacy gallery.
 * List.................Specific styles for the list block.
 * Media text...........Specific styles for the media and text block.
 * Navigation...........Specific styles for the navigation block.
 * Paragraph............Specific styles for the paragraph block.
 * Pullquote............Specific styles for the pullquote block.
 * Quote................Specific styles for the quote block.
 * Search...............Specific styles for the search block.
 * Separator............Specific styles for the separator block.
 * Table................Specific styles for the table block.
 * Verse................Specific styles for the verse block.
 * Video................Specific styles for the video block.
 * Utilities............Block alignments.
 *
 * COMPONENTS
 * Header...............Header styles.
 * Footer...............Footer styles.
 * Comments.............Comment styles.
 * Archives.............Archive styles.
 * 404..................404 styles.
 * Search...............Search styles.
 * Navigation...........Navigation styles.
 * Footer Navigation....Footer Navigation styles.
 * Pagination...........Pagination styles.
 * Single...............Single page and post styles.
 * Posts and pages......Misc, sticky post styles.
 * Entry................Entry, author biography.
 * Widget...............Widget styles.
 * Editor...............Editor styles.
 *
 * UTILITIES
 * A11y.................Screen reader text, prefers reduced motion etc.
 * Color Palette........Classes for the color palette colors.
 * Editor Font Sizes....Editor Font Sizes.
 * Measure..............The width of a line of text, in characters.
 */
 @font-face {
    font-family: 'Mont Heavy';
    src: url('assets/fonts/Mont-HeavyDEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Sankofa+Display&display=swap');

/**
    Verde Escuro: #445c49;
    Verde Claro: #738b4d;
    Amarelo Escuro: #e2a748;
    Amarelo Claro: #f4eed4;
**/
:root {
    --primary-light-green: #738b4d;
    --primary-dark-green: #445c49;
    --primary-light-yellow: #f4eed4;
    --primary-dark-yellow: #e2a748;
    --bg-primary: #131313;
    --container-padding: 15px;
}

/* Reset */
* {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}


a {
    all: unset;
    cursor: pointer;
}

body {
    min-height: 100vh;
}

#skip a {
    display: block;
    position: absolute;
    left: -999px;
    top: -999px;
}

#skip a:focus {
    left: 0;
    top: 0;
    padding: 3px;
    background: #ffc;
    border: 1px solid #990000;
}

/* Layout */
.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0px var(--container-padding);
}

/* Menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    transition: 0.6s;
    background-color: var(--bg-primary);
}

header.sticky {
    background-color: var(--bg-primary);
    box-shadow: 0.1px 0.1px 1px rgb(0, 0, 0);
}

header.sticky nav {
    color: var(--primary-light-yellow);
}

.menu-contact {
    background-color: var(--color-primary-dark);
    transition: margin 0.3s ease;
}

.menu-contact-items {
    color: white;
    font-size: .8rem;
    height: 25px;
    display: flex;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.menu-contact-items>li {
    gap: 10px;
    display: flex;
}

header.sticky .menu-contact {
    margin-top: -25px;
    transition: margin 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: var(--primary-light-yellow);
    height: 60px;
}

.logo-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-menu img {
    width: 40px;
}

.logo-menu span {
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.nav-menu-mobile-close {
    padding: 10px 0;
    display: none;
    font-size: 3rem;
    text-align: end;
}

.mobile-shadow {
    background-color: rgba(255, 255, 255, 0.812);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 5.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    text-transform: capitalize;
    font-size: 1rem;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

nav ul li a:hover span {
    color: var(--primary-dark-yellow);
    transition: 0.2s;
}

nav ul li a.active {
    color: var(--primary-dark-yellow);
}

nav ul li a i {
    color: var(--color-primary);
}

nav button {
    all: unset;
    display: none;
    font-size: 2rem;
}

.nav-menu-mobile-contact {
    display: none;
}

/* Menu Mobile */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    nav ul {
        gap: 0;
        flex-direction: column;
        position: absolute;
        z-index: 3;
        width: 100%;
        max-width: 350px;
        font-size: 1.5rem;
        height: 100vh;
        left: -100%;
        top: 0;
        bottom: 0;
        background-color: var(--bg-primary);
        transition: 0.6s;
        border-right: 1px white solid;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 0px 10px;
        border-bottom: 0.1px var(--color-border) solid;
    }

    nav ul li a {
        padding: 30px 0px;
    }

    nav ul li a i {
        font-size: 1rem;
    }

    nav button {
        display: block;
    }

    .nav-menu-mobile-close {
        display: flex;
        justify-content: space-between;
        font-size: 3rem;
        text-align: end;
    }

    .nav-menu-mobile-close button:hover,
    .nav-menu-mobile-toggle-btn:hover {
        color: var(--primary-dark-yellow);
    }

    .nav-menu-mobile-contact {
        justify-content: center;
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        color: var(--primary-light-yellow);
        background-color: var(--primary-dark-green);
    }

    .nav-menu-mobile-contact i {
        font-size: 1.5rem;
    }

    .nav-menu-mobile-contact a {
        display: block;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .mobile-shadow.active {
        z-index: 1;
        opacity: 1;
        /* Torna visível */
        visibility: visible;
        /* Permite interação */
    }
}

.progress {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: 5px;
    background: var(--primary-dark-yellow);
    transform: scaleX(0);
}

/* footer */
.footer{
    border-top: 1px solid var(--primary-light-yellow);
    padding: 50px 0;
    background-color: var(--bg-primary);
    color: var(--primary-light-yellow);
}
.footer-content{
    display: flex; 
    flex-wrap: wrap;
}
.footer-content-info{
    width: 33.33%;
    padding: 10px;
    box-sizing: border-box;
}
.footer-content-info h3{
    color: var(--primary-dark-yellow);
    margin-bottom: 10px;
}

.footer-space div{
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .footer-content-info{
        width: 100%;
    }    
}

/* ============================================
   RESPONSIVIDADE PARA CARDS DOS POSTS 
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

/* Mobile - Ajustes gerais */
@media (max-width: 768px) {
    /* Container principal dos posts */
    main .container {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }
    
    /* Área principal dos posts */
    main .container > div:first-of-type {
        flex: none !important;
        width: 100% !important;
    }
    
    /* Grid dos cards */
    main .container div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 100% !important;
    }
    
    /* Cards individuais */
    main article {
        margin: 0 !important;
    }
    
    /* Imagens dos cards */
    main article div[style*="height: 200px"] {
        height: 180px !important;
    }
    
    /* Padding interno dos cards */
    main article > div[style*="padding: 20px"] {
        padding: 15px !important;
    }
    
    /* Título dos posts */
    main article h2 {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    
    /* Sidebar */
    aside {
        flex: none !important;
        min-width: auto !important;
        max-width: none !important;
        width: 100% !important;
        order: -1;
    }
    
    /* Sidebar sticky */
    aside > div {
        position: static !important;
        margin-bottom: 20px;
    }
    
    /* Navegação breadcrumb */
    nav[aria-label="breadcrumb"] {
        margin-bottom: 10px;
    }
    
    nav[aria-label="breadcrumb"] div {
        font-size: 13px !important;
    }
    
    /* Título principal */
    main h1 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    /* Paginação */
    main div[style*="margin-top: 50px"] {
        margin-top: 30px !important;
    }
    
    /* Ajuste dos botões e links */
    main a[style*="display: inline-block"] {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Cards ainda menores */
    main .container div[style*="display: grid"] {
        gap: 15px !important;
    }
    
    /* Imagens menores */
    main article div[style*="height: 200px"] {
        height: 160px !important;
    }
    
    /* Padding ainda menor */
    main article > div[style*="padding: 20px"] {
        padding: 12px !important;
    }
    
    /* Sidebar categorias */
    aside ul li a {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
    
    /* Breadcrumb menor */
    nav[aria-label="breadcrumb"] div {
        font-size: 12px !important;
    }
    
    /* Título menor */
    main h1 {
        font-size: 18px !important;
    }
}

/* ============================================
   RESPONSIVIDADE PARA FORMULÁRIO DE COMENTÁRIOS
   ============================================ */

/* Formulário de comentários - Base */
#comments {
    max-width: 100%;
    margin: 0 auto;
}

#comments form {
    max-width: 100%;
}

/* Container do formulário */
#comments > div[style*="background: #f8f9fa"] {
    max-width: 800px !important;
    margin: 40px auto !important;
    padding: 25px !important;
}

/* Inputs do formulário */
#comments input[type="text"],
#comments input[type="email"], 
#comments input[type="url"],
#comments textarea {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Tablets */
@media (max-width: 1024px) {
    #comments > div[style*="background: #f8f9fa"] {
        max-width: 90% !important;
        margin: 30px auto !important;
        padding: 20px !important;
    }
}

/* Mobile - Formulário de comentários */
@media (max-width: 768px) {
    /* Container principal */
    #comments > div[style*="background: #f8f9fa"] {
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 20px 15px !important;
        border-radius: 8px !important;
    }
    
    /* Título do formulário */
    #comments h3 {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }
    
    /* Labels */
    #comments label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    /* Inputs */
    #comments input[type="text"],
    #comments input[type="email"], 
    #comments input[type="url"] {
        padding: 10px 12px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        margin-bottom: 15px !important;
    }
    
    /* Textarea */
    #comments textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        min-height: 100px !important;
        line-height: 1.4 !important;
    }
    
    /* Botão de envio */
    #comments button[type="submit"], 
    #comments input[type="submit"] {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 6px !important;
        margin-top: 15px !important;
    }
    
    /* Contador de caracteres */
    #comment-counter {
        font-size: 11px !important;
        margin-top: 3px !important;
    }
    
    /* Campos em linha única */
    #comments > div[style*="background: #f8f9fa"] form > div {
        margin-bottom: 15px !important;
    }
    
    /* Lista de comentários */
    #comments ol li {
        margin-bottom: 20px !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    /* Avatar nos comentários */
    #comments .comment-author img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Conteúdo dos comentários */
    #comments .comment-content {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* Data dos comentários */
    #comments .comment-meta {
        font-size: 11px !important;
    }
}

/* Mobile pequeno - Comentários */
@media (max-width: 480px) {
    /* Container ainda mais compacto */
    #comments > div[style*="background: #f8f9fa"] {
        max-width: 98% !important;
        margin: 15px auto !important;
        padding: 15px 10px !important;
    }
    
    /* Título menor */
    #comments h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    /* Inputs ainda menores */
    #comments input[type="text"],
    #comments input[type="email"], 
    #comments input[type="url"],
    #comments textarea {
        padding: 8px 10px !important;
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    /* Textarea menor */
    #comments textarea {
        min-height: 80px !important;
    }
    
    /* Botão compacto */
    #comments button[type="submit"], 
    #comments input[type="submit"] {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* Labels menores */
    #comments label {
        font-size: 13px !important;
    }
    
    /* Comentários mais compactos */
    #comments ol li {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    /* Flex dos comentários para mobile */
    #comments ol li > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Avatar dos comentários em mobile */
         #comments .comment-author img {
         width: 35px !important;
         height: 35px !important;
         align-self: flex-start !important;
     }
 }

/* ============================================
   RESPONSIVIDADE PARA CAMPO DE PESQUISA
   ============================================ */

/* Campo de pesquisa - Base */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile - Campo de pesquisa */
@media (max-width: 768px) {
    /* Container da pesquisa */
    main .container div[style*="max-width: 600px"] {
        max-width: 95% !important;
        margin-bottom: 20px !important;
    }
    
    /* Input de pesquisa */
    main input[name="search"] {
        padding: 12px 45px 12px 16px !important;
        font-size: 14px !important;
        border-radius: 20px !important;
    }
    
    /* Botão de pesquisa */
    main button[type="submit"] {
        width: 35px !important;
        height: 35px !important;
        right: 3px !important;
        font-size: 14px !important;
    }
    
    /* Placeholder menor */
    main input[name="search"]::placeholder {
        font-size: 13px !important;
    }
    
    /* Botão limpar pesquisa */
    main a[style*="background: #6c757d"] {
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 12px !important;
    }
    
    /* Informações de filtros ativos */
    main div[style*="background: #d4edda"],
    main div[style*="background: #d1ecf1"] {
        padding: 8px 12px !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
        border-radius: 4px !important;
    }
    
    /* Links nos filtros ativos */
    main div[style*="background: #d4edda"] a,
    main div[style*="background: #d1ecf1"] a {
        font-size: 12px !important;
        margin-left: 5px !important;
    }
}

/* Mobile pequeno - Pesquisa */
@media (max-width: 480px) {
    /* Input ainda menor */
    main input[name="search"] {
        padding: 10px 40px 10px 14px !important;
        font-size: 13px !important;
    }
    
    /* Botão ainda menor */
    main button[type="submit"] {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    /* Placeholder ainda menor */
    main input[name="search"]::placeholder {
        font-size: 12px !important;
    }
    
    /* Container de pesquisa */
    main .container div[style*="max-width: 600px"] {
        max-width: 98% !important;
    }
    
         /* Filtros em bloco para mobile pequeno */
     main div[style*="background: #d4edda"],
     main div[style*="background: #d1ecf1"] {
         display: block !important;
         margin: 5px auto !important;
         max-width: 90% !important;
         text-align: center !important;
     }
 }

/* ============================================
   ESTILOS PARA VALIDAÇÃO DE PESQUISA
   ============================================ */

/* Mensagem de erro na pesquisa */
#search-error {
    background: #f8d7da;
    color: #721c24;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estado de validação dos inputs */
input[name="search"]:invalid {
    border-color: #dc3545 !important;
}

input[name="search"]:valid {
    border-color: #28a745 !important;
}

/* Botão desabilitado */
button[type="submit"]:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

button[type="submit"]:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
}

/* Loading state */
.search-loading {
    opacity: 0.7;
    pointer-events: none;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #738b4d;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade para mensagens de erro */
@media (max-width: 768px) {
    #search-error {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin-top: 3px !important;
    }
}

@media (max-width: 480px) {
    #search-error {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}