/*!
Theme Name: Modelo VIP Premium Plus
Theme URI: https://modelovip.com.br
Author: Manus AI
Author URI: https://manus.im
Description: Tema WordPress de luxo ultra-premium para portal Modelo VIP. Design moderno, minimalista e focado em alta conversão.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: modelo-vip-blog

Paleta de Cores:
- Vermelho Principal: #B81B22 (Logo)
- Vinho/Bordô: #8B2B38 (Header/Destaques)
- Dourado: #D4AF37 (Detalhes/Botões)
- Preto Profundo: #111111 (Footer/Texto Forte)
- Cinza Escuro: #333333 (Texto)
- Cinza Claro: #F9F9F9 (Fundos Suaves)
- Branco: #FFFFFF
*/

/* ========================================
   1. RESET & TIPOGRAFIA
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --color-red: #B81B22;
    --color-wine: #8B2B38;
    --color-gold: #D4AF37;
    --color-gold-hover: #C5A028;
    --color-black: #111111;
    --color-text: #444444;
    --color-text-light: #777777;
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--color-wine);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   2. HEADER & NAVEGAÇÃO
   ======================================== */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-top {
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.header-top a {
    color: var(--color-gold);
    font-weight: bold;
}

.header-main {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item > a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-premium {
    background: linear-gradient(135deg, var(--color-gold) 0%, #B8860B 100%);
    color: var(--color-white) !important;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #B8860B 0%, var(--color-gold) 100%);
}

.btn-outline {
    border: 2px solid var(--color-black);
    color: var(--color-black) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white) !important;
}

/* ========================================
   3. SINGLE POST (PÁGINA DO ARTIGO)
   ======================================== */
.single-post-container {
    background: var(--color-white);
    max-width: 900px;
    margin: 40px auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Header do Post */
.post-header {
    background: linear-gradient(135deg, var(--color-wine) 0%, #5a1a23 100%);
    color: var(--color-white);
    padding: 60px 40px;
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9zdmc+') repeat;
    opacity: 0.5;
}

.post-category-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.post-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Imagem Destacada */
.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* Conteúdo do Post */
.post-content {
    padding: 50px 60px;
    font-size: 18px;
    color: #333;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--color-black);
    position: relative;
    padding-bottom: 10px;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--color-wine);
}

.post-content p {
    margin-bottom: 25px;
    line-height: 1.9;
}

/* Imagens dentro do post */
.post-content img {
    border-radius: var(--radius-sm);
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.post-content figure {
    margin: 40px 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* Blockquote elegante */
.post-content blockquote {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    color: var(--color-wine);
    line-height: 1.5;
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--color-bg-light);
    border-left: 5px solid var(--color-gold);
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 80px;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

/* Tabelas Premium */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-content th {
    background: var(--color-black);
    color: var(--color-white);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--color-text);
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Listas */
.post-content ul, .post-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content ul li {
    position: relative;
    list-style: none;
}

.post-content ul li::before {
    content: '•';
    color: var(--color-gold);
    font-size: 20px;
    position: absolute;
    left: -20px;
    top: -2px;
}

/* ========================================
   4. COMPONENTES DO POST (Tags, CTA, Relacionados)
   ======================================== */

/* Tags */
.post-tags {
    padding: 0 60px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-tags span {
    font-weight: 700;
    color: var(--color-black);
    margin-right: 10px;
}

.post-tags a {
    background: var(--color-bg-light);
    color: var(--color-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Call to Action Box (Fim do post) */
.post-cta-box {
    margin: 0 60px 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--color-black) 0%, #222 100%);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.post-cta-box h3 {
    color: var(--color-gold);
    font-size: 28px;
    margin-bottom: 15px;
}

.post-cta-box p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Posts Relacionados */
.related-posts-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-heading h3 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.section-heading::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #ddd;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-category {
    color: var(--color-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.related-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-title a {
    color: var(--color-black);
}

.related-title a:hover {
    color: var(--color-wine);
}

/* ========================================
   5. FOOTER PREMIUM
   ======================================== */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

.footer-widget h4 {
    color: var(--color-gold);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

/* ========================================
   6. RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .post-header {
        padding: 40px 20px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-content h2 {
        font-size: 26px;
    }
    
    .post-tags, .post-cta-box {
        margin: 0 20px 30px;
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand img {
        margin: 0 auto 20px;
    }
}
