/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 60px 0;
}

/* ==========================================================================
   2. CABEÇALHO / NAVBAR (HEADER)
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #dc2626;
}

.logo span {
    color: #2563eb;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: #475569;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.btn-highlight {
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-highlight:hover {
    background-color: #1d4ed8;
}

.btn-login {
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   3. SEÇÃO HERO E BANNER DE BUSCA
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 35px;
}

/* CAIXA DE BUSCA INTEGRADA */
.search-box {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 14px;
}

.input-group i {
    color: #64748b;
    margin-right: 10px;
}

.input-group input,
.input-group select {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #334155;
    outline: none;
}

.btn-search {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   4. GRADE DE ANÚNCIOS E ESTADO VAZIO (EMPTY STATE)
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #1e293b;
}

.section-title p {
    color: #64748b;
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 20px;
    color: #334155;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}

/* ==========================================================================
   5. RODAPÉ (FOOTER)
   ========================================================================== */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    font-size: 14px;
}

/* ==========================================================================
   6. RESPONSIVIDADE (DISPOSITIVOS MÓVEIS)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .search-box {
        flex-direction: column;
    }

    .btn-search {
        height: 48px;
    }
}