/**
 * DISKMEDEIROS - CSS Portal Premium
 * Inspirado em OLX, iFood, GetNinjas
 */

:root {
    --primary: #FF6B35;
    --secondary: #004E89;
    --accent: #F77F00;
    --success: #06D6A0;
    --whatsapp: #25D366;
    --dark: #2C3E50;
    --light: #F8F9FA;
    --border: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2C3E50;
    background: #F8F9FA;
    line-height: 1.6;
}

/* =====================================
   HEADER & NAVBAR - Estilos no header.php
===================================== */

/* =====================================
   BANNER TOPO (1200x250)
===================================== */
.banner-topo {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-topo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =====================================
   SEARCH BAR
===================================== */
.search-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-bar {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}

.search-bar input:focus {
    outline: none;
}

.search-bar select {
    border: none;
    padding: 1rem;
    border-left: 2px solid var(--border);
    min-width: 180px;
    font-size: 1rem;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* =====================================
   CATEGORIAS - CARDS HORIZONTAIS
===================================== */
.categorias-section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.categoria-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.categoria-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
}

.categoria-card:hover .categoria-icon {
    transform: rotate(-10deg) scale(1.1);
}

.categoria-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.categoria-count {
    font-size: 0.9rem;
    color: #6c757d;
}

/* =====================================
   BANNER MÃ‰DIO (728x90)
===================================== */
.banner-medio {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    margin: 2rem auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-medio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================
   LAYOUT COM SIDEBAR
===================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* =====================================
   ANUNCIANTES - GRID DE CARDS
===================================== */
.anunciantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.anunciante-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.anunciante-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.anunciante-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.anunciante-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.anunciante-card:hover .anunciante-image img {
    transform: scale(1.1);
}

.badge-destaque {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-premium {
    background: linear-gradient(135deg, #FF6B35 0%, #F77F00 100%);
    color: white;
}

.anunciante-body {
    padding: 1.25rem;
}

.anunciante-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anunciante-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.anunciante-description {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anunciante-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-whatsapp {
    flex: 1;
    background: var(--whatsapp);
    color: white;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-ver-mais {
    flex: 1;
    background: white;
    color: var(--primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-ver-mais:hover {
    background: var(--primary);
    color: white;
}

/* =====================================
   SIDEBAR - BANNER LATERAL (300x600)
===================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.banner-lateral {
    width: 300px;
    height: 600px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-lateral img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* =====================================
   EMPTY STATE
===================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 3px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* =====================================
   FOOTER BANNERS
===================================== */
.footer-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.banner-mini {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner-topo {
        height: 150px;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-bar select {
        border-left: none;
        border-top: 2px solid var(--border);
    }
    
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anunciantes-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   ANIMATIONS
===================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}