/*
Theme Name: Afina Menina
Theme URI: https://afinamenina.com.br
Author: Ulisses 🤝 Gemini
Author URI: https://afinamenina.com.br
Description: Tema WordPress para Afina Menina - Layout V5.4 com Schema JSON-LD Avançado para SEO e Agentes de IA. Baseado no plugin Afina Home V5.4.
Version: 5.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afina-menina
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.0
*/

/* === VARIÁVEIS === */
:root { 
    --pink: #FF00FF; 
    --pink-glow: rgba(255, 0, 255, 0.4); 
    --pink-subtle: rgba(255, 0, 255, 0.08); 
    --black: #0a0a0a; 
    --white: #ffffff; 
    --gray: #1a1a1a; 
    --gray-light: #f4f4f4; 
    --gray-text: #666666; 
    --font-head: -apple-system, BlinkMacSystemFont, 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; 
    --font-mono: 'Courier New', Courier, monospace; 
    --font-editorial: Georgia, 'Times New Roman', serif; 
}

/* === RESET BÁSICO === */
* { box-sizing: border-box; }
body { 
    font-family: var(--font-head); 
    color: var(--black); 
    background: var(--white); 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden;
    width: 100%;
}

.af-container { 
    font-family: var(--font-head); 
    color: var(--black); 
    background: var(--white); 
    max-width: 1400px; 
    margin: 0 auto; 
    overflow-x: hidden; 
    counter-reset: af-sec-counter; 
    width: 100%;
}

.pink { color: var(--pink); }
.af-square { color: var(--pink); font-size: 0.8em; }
.af-img-cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }

/* HERO GRID */
.af-hero-grid-container { display: grid; grid-template-columns: 2.5fr 1fr; gap: 20px; margin: 0 20px 60px 20px; height: 600px; }
.af-hero-main { position: relative; display: block; text-decoration: none; color: inherit; height: 100%; overflow: hidden; border: 4px solid var(--black); }
.af-hero-img-main { width: 100%; height: 100%; position: relative; background: #000; }
.af-hero-main:hover { border-color: var(--pink); }
.af-hero-main:hover .af-img-cover { transform: scale(1.05); }
.af-hero-main:hover .af-btn-wrap { background: var(--pink); }
.af-hero-scan { position: absolute; top:0; left:0; right:0; height: 3px; background: var(--pink); box-shadow: 0 0 20px var(--pink-glow); animation: af-scan 4s ease-in-out infinite; z-index: 2; pointer-events: none; }
@keyframes af-scan { 0%, 100% { top: 0; } 50% { top: 100%; } }
.af-hero-overlay { position: absolute; bottom: 30px; left: 30px; right: 30px; max-width: 700px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 30px; border-left: 6px solid var(--pink); box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 3; }
.af-hero-overlay h2 { font-size: clamp(24px, 4vw, 48px); font-weight: 900; margin: 10px 0 15px 0; line-height: 1; text-transform: uppercase; letter-spacing: -1px; }
.af-cat-label { font-family: var(--font-mono); font-size: 11px; color: var(--pink); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.af-btn-wrap { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); padding: 10px 20px; transition: 0.3s; }
.af-btn { font-weight: 900; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

.af-hero-side-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.af-hero-side-item { flex: 1; position: relative; text-decoration: none; color: var(--white); border: 3px solid var(--black); overflow: hidden; }
.af-side-img-wrap { width: 100%; height: 100%; position: relative; background: #000; }
.af-side-img-wrap img { filter: grayscale(100%); }
.af-hero-side-item:hover { border-color: var(--pink); }
.af-hero-side-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.af-side-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%); padding: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.af-side-overlay h4 { color:white; font-size: 16px; font-weight: 700; margin: 0; line-height: 1.2; text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
.af-side-arrow { color: var(--pink); font-size: 24px; font-weight: bold; transform: translateX(-10px); opacity: 0; transition: 0.3s; }
.af-hero-side-item:hover .af-side-arrow { opacity: 1; transform: translateX(0); }

.af-marquee { background: var(--black); color: var(--white); overflow: hidden; white-space: nowrap; padding: 12px 0; font-family: var(--font-mono); font-size: 14px; border-bottom: 3px solid var(--pink); width: 100%; }
.af-marquee-track { display: flex; width: max-content; animation: af-marquee-scroll 25s linear infinite; }
.af-marquee-inner { display: flex; }
.af-marquee-inner span { display: inline-block; padding-right: 40px; }
@keyframes af-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.af-header { text-align: center; padding: 60px 20px 80px 20px; position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%); overflow: hidden; }
.af-logo { font-size: clamp(40px, 12vw, 120px); font-weight: 900; letter-spacing: -5px; margin: 0; line-height: 0.9; text-transform: uppercase; position: relative; word-break: break-all; }
.af-tagline { font-family: var(--font-mono); margin-top: 15px; text-transform: uppercase; letter-spacing: 4px; font-size: 13px; font-weight: 700; }
.af-noise { position: absolute; top:0; left:0; right:0; bottom:0; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence baseFrequency="0.9" numOctaves="3"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.05"/></svg>'); pointer-events: none; }
.af-grid-lines { position: absolute; top:0; left:0; right:0; bottom:0; background-image: linear-gradient(90deg, transparent 49%, var(--pink) 49%, var(--pink) 51%, transparent 51%), linear-gradient(0deg, transparent 49%, var(--pink) 49%, var(--pink) 51%, transparent 51%); background-size: 100px 100px; opacity: 0.03; pointer-events: none; }

.af-section-header { display: flex; align-items: center; margin: 80px 20px 40px 20px; font-family: var(--font-mono); position: relative; }
.af-auto-number::before { counter-increment: af-sec-counter; content: "0" counter(af-sec-counter); font-size: 48px; font-weight: 900; color: var(--pink); margin-right: 20px; line-height: 1; text-shadow: 3px 3px 0 var(--pink-subtle); }
.af-section-header h3 { font-size: 24px; font-weight: 900; text-transform: uppercase; margin: 0 20px 0 0; white-space: nowrap; letter-spacing: 2px; }
.af-line { width: 100%; height: 2px; background: linear-gradient(90deg, var(--black) 0%, transparent 100%); }

.af-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 0 20px 60px 20px; }
.af-news-card { border: 3px solid var(--black); padding: 30px; text-decoration: none; color: var(--black); transition: 0.3s; display: flex; flex-direction: column; position: relative; background: var(--white); opacity: 0; animation: af-fadeIn 0.6s ease forwards; }
@keyframes af-fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.af-news-card:hover { box-shadow: 8px 8px 0px var(--pink); transform: translate(-4px, -4px); border-color: var(--black); }
.af-news-corner { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; background: var(--pink); transition: 0.3s; }
.af-news-card:hover .af-news-corner { width: 40px; height: 40px; }
.af-arrow-bg { position: absolute; right: 20px; top: 20px; font-size: 32px; opacity: 0.05; font-weight: 900; pointer-events: none; }
.af-date { font-family: var(--font-mono); font-size: 11px; color: var(--gray-text); margin-bottom: 15px; font-weight: bold; }
.af-news-card h4 { font-size: 22px; font-weight: 900; margin: 0 0 auto 0; line-height: 1.3; }
.af-news-bottom { margin-top: 20px; display: flex; justify-content: flex-end; }
.af-read-more { width: 40px; height: 40px; border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; transition: 0.3s; }
.af-news-card:hover .af-read-more { background: var(--pink); border-color: var(--pink); color: var(--white); transform: rotate(90deg); }

.af-lifestyle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; margin: 0 20px 80px 20px; }
.af-life-card { text-decoration: none; color: var(--black); }
.af-life-img-wrap { height: 260px; overflow: hidden; border: 3px solid var(--black); margin-bottom: 20px; position: relative; }
.af-life-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(135deg, var(--pink) 0%, transparent 60%); opacity: 0; transition: 0.4s; mix-blend-mode: multiply; }
.af-life-card:hover img { transform: scale(1.1); filter: grayscale(0%) contrast(100%); }
.af-life-card:hover .af-life-overlay { opacity: 0.15; }
.af-cat-mini { background: var(--pink); color: var(--white); padding: 4px 10px; font-size: 10px; font-weight: 900; text-transform: uppercase; font-family: var(--font-mono); display: inline-block; }
.af-life-content h5 { font-size: 20px; font-weight: 900; margin: 12px 0 0 0; }
.af-no-img { width: 100%; height: 100%; background: #eee; }

.af-opinion-block { display: grid; grid-template-columns: 1fr 2.5fr; background: var(--black); color: var(--white); margin: 80px 20px; border: 4px solid var(--black); position: relative; }
.af-opinion-sidebar { padding: 50px; border-right: 2px solid #333; display: flex; flex-direction: column; justify-content: center; position: relative; }
.af-opinion-sidebar h3 { color:white; font-size: 42px; line-height: 0.9; margin: 0; text-transform: uppercase; font-weight: 900; font-family: var(--font-editorial); }
.af-opinion-lines { position: absolute; bottom: 20px; left: 20px; width: 60px; height: 60px; border-left: 3px solid var(--pink); border-bottom: 3px solid var(--pink); }
.af-opinion-list { display: flex; flex-direction: column; }
.af-opinion-item { padding: 35px; border-bottom: 1px solid #222; text-decoration: none; color: #ccc; display: flex; align-items: center; transition: 0.3s; }
.af-opinion-item:hover { background: #111; color: var(--white); padding-left: 45px; }
.af-icon { font-size: 28px; margin-right: 20px; font-family: var(--font-editorial); color: var(--pink); }
.af-opinion-text h6 { color:white!important; font-size: 20px; margin: 0 0 8px 0; font-weight: 700; font-family: var(--font-mono); }
.af-author { font-size: 11px; text-transform: uppercase; opacity: 0.6; }
.af-opinion-arrow { font-size: 24px; opacity: 0; transform: translateX(-10px); transition: 0.3s; margin-left: auto; }
.af-opinion-item:hover .af-opinion-arrow { opacity: 1; transform: translateX(0); }

.af-cat-cloud { display: flex; flex-wrap: wrap; gap: 15px; margin: 0 20px 80px 20px; }
.af-tag { border: 2px solid var(--black); padding: 12px 24px; text-decoration: none; color: var(--black); font-weight: 900; font-size: 13px; text-transform: uppercase; background: var(--white); transition: 0.25s; }
.af-tag:hover { background: var(--pink); border-color: var(--pink); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 12px var(--pink-glow); }

.af-footer { background: var(--black); color: var(--white); padding: 60px 20px; text-align: center; font-family: var(--font-mono); font-size: 12px; position: relative; }
.af-footer-grid { position: absolute; top:0; left:0; right:0; bottom:0; background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, #111 50px, #111 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, #111 50px, #111 51px); opacity: 0.3; }
.af-footer-content { position: relative; max-width: 900px; margin: 0 auto; text-align: center; z-index: 2; }
.af-footer-links { font-size: 12px; margin-bottom: 20px; }
.af-footer-links a { color: var(--white); text-decoration: none; font-weight: 700; transition: color 0.2s; }
.af-footer-links a:hover { color: var(--pink); }
.af-sep { margin: 0 10px; opacity: 0.4; }
.af-footer-info { font-size: 12px; line-height: 1.6; margin-bottom: 20px; opacity: 0.85; }
.af-footer-copy { font-size: 11px; opacity: 0.6; margin-bottom: 16px; }
.af-footer-dev { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.af-footer-dev a { color: var(--pink); text-decoration: none; font-weight: 900; }
.af-footer-dev a:hover { text-decoration: underline; }

/* MEDIA QUERIES - MOBILE FIXES */
@media (max-width: 900px) { 
    .af-hero-grid-container { grid-template-columns: 1fr; height: auto; margin: 0 10px 40px 10px; } 
    .af-hero-main { height: 350px; margin-bottom: 15px; border-width: 3px; } 
    .af-hero-overlay { bottom: 15px; left: 15px; right: 15px; padding: 20px; }
    .af-hero-overlay h2 { font-size: 24px; }
    .af-hero-side-col { gap: 15px; } 
    .af-hero-side-item { height: 150px; border-width: 2px; } 
    .af-side-overlay h4 { font-size: 14px; }
    .af-opinion-block { grid-template-columns: 1fr; margin: 40px 10px; } 
    .af-opinion-sidebar { text-align: left; border-bottom: 2px solid #333; border-right: none; padding: 30px; } 
    .af-opinion-sidebar h3 { font-size: 32px; }
    .af-logo { font-size: 50px; letter-spacing: -2px; } 
    .af-header { padding: 40px 10px 60px 10px; }
    .af-section-header { margin: 40px 10px 20px 10px; }
    .af-auto-number::before { font-size: 32px; margin-right: 10px; }
    .af-section-header h3 { font-size: 18px; }
}
@media (max-width: 600px) { 
    .af-news-grid, .af-lifestyle-grid { grid-template-columns: 1fr; margin: 0 10px 40px 10px; gap: 20px; } 
    .af-news-card { padding: 20px; }
    .af-news-card h4 { font-size: 18px; }
    .af-life-img-wrap { height: 200px; }
    .af-life-content h5 { font-size: 16px; }
    .af-opinion-item { padding: 20px; }
    .af-opinion-text h6 { font-size: 16px; }
    .af-cat-cloud { margin: 0 10px 40px 10px; gap: 10px; }
    .af-tag { padding: 8px 16px; font-size: 11px; }
    .af-footer { padding: 40px 10px; }
    .af-logo { font-size: 40px; }
    .af-tagline { font-size: 11px; letter-spacing: 2px; }
}

/* WP CORE CLASSES */
.site-main { padding: 20px; }
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; }
.entry-content { font-size: 1.1rem; line-height: 1.8; }
