/*
Theme Name: CSBRASIL Pro (Unificado)
Theme URI: https://manus.ai/
Author: Manus
Description: Template profissional unificado para serviços de Card Sharing (CS), focado em estabilidade e conversão. Inclui busca moderna, anúncios e correção de posts.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: csbrasil
*/

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #0a0a0a;
    --dark-bg: #050505;
    --card-bg: #151515;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--secondary-color);
    color: var(--text-white);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

.text-center { text-align: center; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }
.mt-5 { margin-top: 50px; }

/* Header */
.site-header {
    background: rgba(0,0,0,0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
}

.logo { order: 1; flex-shrink: 0; }
.logo a {
    color: var(--text-white);
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.logo span { color: var(--primary-color); }

.main-navigation { order: 3; margin-right: 15px; }
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}
.main-navigation a:hover { color: var(--primary-color); }

.header-cta { order: 4; flex-shrink: 0; }

/* BARRA DE BUSCA MODERNA (HEADER) */
.header-search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 40px;
    order: 2;
}

.search-input-wrapper-header {
    display: flex;
    background: #111;
    border: 1px solid #222;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.search-input-wrapper-header:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    background: #151515;
}

.search-field-header {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.search-field-header::placeholder {
    color: #666;
    font-style: italic;
}

.search-submit-header {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.search-submit-header:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    border: none;
}
.btn-primary:hover { background: var(--primary-hover); transform: scale(1.05); }

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--primary-color);
    transition: 0.3s;
}
.btn-secondary:hover { background: var(--primary-color); }

/* Hero */
.hero {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }

/* Devices Boxes */
.devices { padding: 60px 0; }
.devices-grid-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.device-box {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}
.box-header {
    background: rgba(0, 123, 255, 0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid #222;
}
.box-header h3 { margin: 0; font-size: 1.2rem; color: var(--primary-color); }
.box-header .icon { font-size: 24px; }
.box-body { padding: 15px; color: var(--text-gray); font-size: 14px; }

/* Pricing Compact */
.pricing-compact { padding: 60px 0; background: var(--dark-bg); }
.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.pricing-group h3 { text-align: center; margin-bottom: 20px; font-size: 1.5rem; }
.pricing-group h3 span { color: var(--primary-color); }

.pricing-table {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}
.table-header, .table-prices, .table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    padding: 15px 0;
}
.table-header { background: #111; font-weight: 800; font-size: 1.1rem; border-bottom: 1px solid #222; }
.table-prices { padding: 25px 0; font-size: 1.5rem; font-weight: 800; }
.table-prices span { font-size: 0.8rem; color: var(--text-gray); }
.table-actions { padding-bottom: 25px; }

.btn-table {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: 0.3s;
}
.btn-table:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Advantages */
.advantages { padding: 80px 0; background: var(--secondary-color); }
.advantages-wrapper { max-width: 1000px; margin: 0 auto; }
.advantages-grid-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    margin-top: 50px; 
}
.adv-item { display: flex; gap: 20px; align-items: flex-start; }
.adv-icon { 
    font-size: 35px; 
    background: rgba(0, 123, 255, 0.1); 
    padding: 15px; 
    border-radius: 50%; 
    line-height: 1;
    border: 1px solid var(--primary-color);
}
.adv-text h3 { margin: 0 0 10px 0; font-size: 20px; color: var(--primary-color); }
.adv-text p { margin: 0; color: var(--text-gray); font-size: 15px; }

/* REVENDA SECTION */
.reseller-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.reseller-card {
    background: #000;
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.reseller-content { flex: 1; }
.reseller-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.reseller-content h2 span { color: #007bff; }
.reseller-content p { color: #a0a0a0; font-size: 1.1rem; margin-bottom: 30px; }

.reseller-badge {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Blog Home */
.home-blog { padding: 80px 0; background: var(--dark-bg); }
.post-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.post-card-mini {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}
.post-card-mini h3 a { color: var(--primary-color); text-decoration: none; }

/* Section Title */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; font-weight: 800; }
.section-title span { color: var(--primary-color); }

/* Footer */
.site-footer { background: #000; padding: 60px 0 20px; border-top: 1px solid #222; }
.footer-bottom { text-align: center; border-top: 1px solid #111; padding-top: 20px; color: var(--text-gray); font-size: 14px; }

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* ESTILOS PARA POST INDIVIDUAL (SINGLE POST) */
.post-single {
    background: #0a0a0a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 50px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.1rem;
}

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-footer {
    color: #888;
    font-size: 0.9rem;
}

.post-footer strong {
    color: #007bff;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-navigation { display: none; }
}

@media (max-width: 992px) {
    .pricing-row { grid-template-columns: 1fr; }
    .devices-grid-horizontal { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }
    .header-search-container {
        width: 100%;
        margin: 0;
        order: 2;
    }
    .reseller-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .post-single {
        padding: 20px;
    }
    .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .table-header { font-size: 0.9rem; }
    .table-prices { font-size: 1.2rem; }
    .btn-table { padding: 5px 10px; font-size: 0.7rem; }
}
