/*
Theme Name: Intimy SEO Theme
Author: Yasaf Digital
Description: Tema focado em performance e conversão para modelos.
Version: 1.1 (Fix: Sticky Header Conflict)
*/

:root {
    --primary: #ff0055; /* Fuchsia */
    --primary-hover: #e6004c;
    --secondary: #bc13fe; /* Magenta */
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --font-stack: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- Cabeçalho do Site (Menu Principal) --- */
/* Mude para <header class="site-header"> no seu header.php */
.site-header {
    background: #000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 9999; /* Garante que fique acima de tudo */
}

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

.logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar */
.search-form { margin-top: 10px; }
.search-field {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 16px;
    outline: none;
}
.search-field:focus { border-color: var(--primary); }

/* --- Grid de Posts (Home) --- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.model-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #222;
}
.model-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(255, 0, 85, 0.2); 
    border-color: var(--primary); 
}
.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #222;
    display: block;
}
.card-info { padding: 18px; text-align: center; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.card-meta { font-size: 12px; color: var(--primary); text-transform: uppercase; font-weight: 800; }

/* --- Página Single (Post) - CORREÇÃO DO BUG --- */
.single-container { 
    max-width: 850px; 
    margin: 40px auto; 
    padding: 0 20px;
    position: relative;
}

/* Força o header do post a ser estático e não herdar o sticky */
article header.post-header {
    position: relative !important; /* Mata o sticky do header genérico */
    top: auto !important;
    background: transparent !important;
    text-align: center;
    margin-bottom: 40px;
    z-index: 1;
    display: block !important;
}

.post-title { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    line-height: 1.2; 
    font-weight: 800;
}

.post-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

.post-featured-image {
    margin-top: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative !important;
}

.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Estilização do Conteúdo */
.entry-content { 
    font-size: 1.15rem; 
    color: #e0e0e0; 
    line-height: 1.8;
    clear: both; /* Garante que comece abaixo da imagem */
}
.entry-content h2, .entry-content h3 { 
    color: #fff; 
    margin: 40px 0 20px; 
    font-weight: 700;
}
.entry-content p { margin-bottom: 25px; }
.entry-content a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* Footer */
footer { 
    text-align: center; 
    padding: 60px 0; 
    border-top: 1px solid #222; 
    margin-top: 80px; 
    color: #555; 
    font-size: 14px; 
}

/* Mobile */
@media (max-width: 600px) {
    .model-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .card-image { height: 220px; }
    .post-title { font-size: 1.8rem; }
    .single-container { margin: 20px auto; }
}