/*
Theme Name: Café com Motor
Theme URI: https://cafecommotor.com.br
Author: Antigravity
Author URI: https://cafecommotor.com.br
Description: Tema customizado de alta performance para o site Café com Motor, inspirado no design Foxiz. Responsivo e focado em conteúdo do mercado automotivo.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cafe-com-motor
*/

:root {
    --color-primary: #F58220;
    /* Laranja vibrante */
    --color-primary-gradient: linear-gradient(90deg, #F99B4B, #EA5A0B);
    --color-secondary: #08040F;
    /* Fundo do cabeçalho bem escuro */
    --color-text-main: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-bg-body: #05030A;
    --color-bg-white: #110C1C;
    /* Fundo de cards no dark mode */
    --color-border: #262130;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --container-width: 1200px;
}

/* Reset Visual Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/* Utilitários e Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

/* Tipografia Estilo Foxiz */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.post-title-large {
    font-size: 2.5rem;
}

.post-title-medium {
    font-size: 1.8rem;
}

.post-title-small {
    font-size: 1.1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-weight: 500;
}

.category-badge {
    background-color: var(--color-secondary);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

/* Header Moderno Dark */
.site-header {
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.top-bar {
    display: none;
    /* Esconder top bar para focar no header da imagem */
}

.main-header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.main-navigation ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item>a {
    color: var(--color-primary);
}

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

.btn-anuncie {
    background: var(--color-primary-gradient);
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-anuncie:hover {
    opacity: 0.9;
    color: #FFFFFF !important;
}

/* Grid Home Foxiz-Style */
.home-hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-main-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

.hero-main-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-post-overlay {
    position: absolute;
    bottom: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(5, 3, 10, 1), rgba(5, 3, 10, 0));
    color: white;
    width: 100%;
}

.hero-post-overlay .post-meta {
    color: #A1A1AA;
}

.hero-side-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-post-item {
    display: flex;
    gap: 15px;
    background: var(--color-bg-white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid var(--color-border);
}

.side-post-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.side-post-thumb {
    width: 120px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.side-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loop de Posts Padrão (Archive / Blog) */
.archive-section {
    padding: 60px 0;
    background: var(--color-bg-body);
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--color-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: 1px solid var(--color-border);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.post-card-thumb {
    height: 200px;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px;
}

/* Single Post Foxiz-Style */
.single-post-wrapper {
    padding: 40px 0;
}

.single-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.single-header .post-title-large {
    font-size: 3rem;
    margin-bottom: 20px;
}

.single-header .post-meta {
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 30px;
}

.single-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.single-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .single-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

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

.post-content h2,
.post-content h3 {
    margin: 40px 0 20px 0;
    color: #FFFFFF;
}

.post-content img {
    border-radius: 8px;
    margin: 30px 0;
}

.author-box {
    background: var(--color-bg-white);
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* Sidebar */
.primary-sidebar {
    background: var(--color-bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
    color: #FFFFFF;
}

/* Contato Form */
.contact-wrapper {
    max-width: 800px;
    margin: 60px auto;
    background: var(--color-bg-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg-body);
    color: var(--color-text-main);
}

.contact-form button {
    background: var(--color-primary-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--color-secondary);
    color: white;
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

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

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}