/*

Theme Name: Quimbanda-JP
Theme URI: https://andretsc.dev
Author: Andre Silva TsC
Author URI: https://andretsc.dev
Description: Tema WordPress Quimbanda-JP para espiritualidade do Axé com visual moderno, SEO técnico, performance, acessibilidade e compatibilidade com plugins.
Version: 1.2.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quimbanda-jp
Tags: wordpress, tema, seo, acessibilidade, performance, custom-theme
*/

@font-face {
    font-family: 'FingerPaint';
    src: url('Assets/Fonts/FingerPaint.ttf') format('truetype');
    font-display: swap;
}

:root {
    --qjp-bg: #121212;
    --qjp-text: #E0E0E0;
    --qjp-accent: #8B0000;
    --qjp-gold: #d4af37;
    --qjp-light: #f5f5f5;
    --qjp-link: #ff6b6b;
    --qjp-surface: #1a1a1a;
    --qjp-block: #1a1a1a;
    --qjp-block-text: #E0E0E0;
    --qjp-text-outline-color: #000000;
    --qjp-text-outline-size: 0px;
    --qjp-border: rgba(224, 224, 224, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--qjp-bg);
    color: var(--qjp-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

body.qjp-has-bg-video {
    background: transparent;
}

body.qjp-has-bg-image {
    background: transparent;
}

.qjp-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.qjp-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--qjp-link);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
    font-family: 'FingerPaint', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.4px;
    margin-top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--qjp-border);
    backdrop-filter: blur(6px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    line-height: 0;
    background: transparent;
}

.site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.site-logo .custom-logo {
    width: auto;
    max-width: 56px;
    max-height: 56px;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
}

.site-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin: 0;
    line-height: 1.1;
}

.site-title a {
    color: var(--qjp-text);
}

.site-title a:hover,
.site-title a:focus {
    color: var(--qjp-text);
}

/* Contorno opcional para qualquer item via classe */
.qjp-outline,
.has-qjp-outline {
    -webkit-text-stroke: var(--qjp-text-outline-size) var(--qjp-text-outline-color);
    paint-order: stroke fill;
}

/* Contorno global (ativado no Customizer) */
.qjp-global-outline h1,
.qjp-global-outline h2,
.qjp-global-outline h3,
.qjp-global-outline h4,
.qjp-global-outline h5,
.qjp-global-outline h6,
.qjp-global-outline p,
.qjp-global-outline a,
.qjp-global-outline li,
.qjp-global-outline span,
.qjp-global-outline label,
.qjp-global-outline button {
    -webkit-text-stroke: var(--qjp-text-outline-size) var(--qjp-text-outline-color);
    paint-order: stroke fill;
}

.custom-logo-link img[src$=".png"],
.custom-logo-link img[src*=".png?"] {
    background: transparent;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-nav {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.main-nav a {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background: var(--qjp-accent);
    color: #ffffff;
    text-decoration: none;
}

.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.updates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.post-card {
    background: var(--qjp-block);
    color: var(--qjp-block-text);
    border: 1px solid var(--qjp-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 1rem;
}

.qjp-axe-page .qjp-axe-section + .qjp-axe-section {
    border-top: 1px solid var(--qjp-border);
}

.qjp-axe-item h3 {
    margin: 0.5rem 0 0;
    color: var(--qjp-light);
}

.post-meta {
    opacity: 0.85;
    font-size: 0.9rem;
}

.button,
.read-more,
.desktop-whatsapp a,
.whatsapp-float {
    background: var(--qjp-accent);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    display: inline-block;
    font-weight: 600;
}

.button:hover,
.read-more:hover,
.desktop-whatsapp a:hover,
.whatsapp-float:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.pagination {
    margin: 1.5rem 0;
}

.footer-widgets {
    border-top: 1px solid var(--qjp-border);
    margin-top: 2rem;
    padding: 2rem 1rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.footer-block {
    background: var(--qjp-block);
    color: var(--qjp-block-text);
    border: 1px solid var(--qjp-border);
    border-radius: 10px;
    padding: 1rem;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.desktop-whatsapp {
    display: none;
}

@media (min-width: 700px) {
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-whatsapp {
        display: inline-block;
    }

    .whatsapp-float {
        display: none;
    }
}
