/* Estilos Gerais - Inspirado na OLX */
:root {
    --primary-color: #6e0ad6; /* Roxo da OLX */
    --primary-hover: #5a08b0;
    --secondary-color: #f28000; /* Laranja da OLX */
    --secondary-hover: #d97300;
    --success-color: #1e874b; /* Verde da OLX */
    --danger-color: #e74c3c;
    --warning-color: #f28000; /* Laranja da OLX */
    --info-color: #6e0ad6; /* Roxo da OLX */
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --body-bg: #ffffff; /* Fundo branco */
    --card-border: #e5e5e5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-purple: #6e0ad6;
    --text-orange: #f28000;
    --header-height: 70px;
    --footer-bg: #ffffff;
    --footer-text: #1a1a1a;
    --footer-divider: #e5e5e5;
    --highlight-bg: #f28000;
    --highlight-text: #ffffff;
    --tag-bg: #f2f2f2;
    --tag-text: #666666;
    --location-bg: #f2f2f2;
    --location-text: #666666;
    --date-text: #999999;
    --price-text: #1a1a1a;
    --title-text: #1a1a1a;
    --banner-bg: #f0e6ff;
    --banner-title: #6e0ad6;
    --banner-subtitle: #1a1a1a;
    --banner-offer: #f28000;
    --banner-terms: #999999;
    --banner-button-bg: #6e0ad6;
    --banner-button-text: #ffffff;
    --section-title: #1a1a1a;
    --section-subtitle: #666666;
    --ad-card-bg: #ffffff;
    --ad-card-shadow: rgba(0, 0, 0, 0.1);
    --ad-card-hover-shadow: rgba(0, 0, 0, 0.2);
    --ad-card-border: #e5e5e5;
    --ad-card-price: #1a1a1a;
    --ad-card-title: #1a1a1a;
    --ad-card-location: #666666;
    --ad-card-date: #999999;
    --ad-card-tag-bg: #f2f2f2;
    --ad-card-tag-text: #666666;
    --ad-card-highlight-bg: #f28000;
    --ad-card-highlight-text: #ffffff;
    --category-offer-text: #ffffff;
    --create-account-bg: #ffffff; /* Fundo branco */
    --create-account-title: #1a1a1a;
    --create-account-button-bg: #f28000;
    --create-account-button-text: #ffffff;
    --benefit-icon-bg: #6e0ad6;
    --benefit-icon-text: #ffffff;
    --benefit-title: #1a1a1a;
    --benefit-text: #666666;
    --footer-title: #1a1a1a;
    --footer-subtitle: #666666;
    --footer-link: #666666;
    --footer-link-hover: #6e0ad6;
    --footer-social-link: #6e0ad6;
    --footer-social-link-hover: #f28000;
    --footer-copyright: #999999;
}

/* Layout Principal - Estilo OLX */
body {
    background-color: var(--body-bg);
    color: var(--text-primary);
    font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* Header estilo OLX */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.top-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.text-purple {
    color: var(--text-purple);
}

.text-orange {
    color: var(--text-orange);
}

/* Barra de pesquisa estilo OLX */
.search-form {
    width: 100%;
}

.search-form .input-group {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    height: 44px;
    border: 1px solid var(--card-border);
    border-right: none;
    font-size: 16px;
}

.btn-location {
    background-color: var(--light-color);
    border: 1px solid var(--card-border);
    border-left: none;
    border-right: none;
    color: var(--text-primary);
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-search {
    background-color: var(--primary-color);
    border: none;
    color: var(--light-color);
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-search:hover {
    background-color: var(--primary-hover);
    color: var(--light-color);
}

/* Links do header estilo OLX */
.nav-link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.plano-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-anunciar {
    background-color: var(--secondary-color);
    color: var(--light-color);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-anunciar:hover {
    background-color: var(--secondary-hover);
    color: var(--light-color);
}

.notification-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: var(--light-color);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu de categorias estilo OLX */
.categories-navbar {
    background-color: var(--light-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.categories-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.categories-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.category-item {
    flex: 0 0 auto;
}

.category-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 12px;
    transition: color 0.2s;
}

.category-item a:hover {
    color: var(--primary-color);
}

.category-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Banner principal estilo OLX */
.main-banner {
    margin-top: 20px;
    margin-bottom: 40px;
}

.banner-slide {
    padding: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.banner-content {
    padding: 20px;
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--banner-title);
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--banner-subtitle);
    margin-bottom: 10px;
}

.banner-offer {
    font-size: 20px;
    font-weight: 700;
    color: var(--banner-offer);
    margin-bottom: 20px;
}

.banner-terms {
    font-size: 12px;
    color: var(--banner-terms);
    margin-top: 15px;
}

.btn-banner {
    background-color: var(--banner-button-bg);
    color: var(--banner-button-text);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-banner:hover {
    background-color: var(--primary-hover);
    color: var(--banner-button-text);
}

.banner-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Swiper customização */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background-color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background-color: var(--primary-color);
}

/* Seções de anúncios estilo OLX */
.ads-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--section-title);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--section-subtitle);
    margin-bottom: 20px;
}

/* Cards de anúncios estilo OLX */
.ad-card {
    background-color: var(--ad-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--ad-card-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 20px;
}

.ad-card:hover {
    box-shadow: 0 4px 12px var(--ad-card-hover-shadow);
    transform: translateY(-2px);
}

.ad-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ad-card-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.ad-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-card-highlight {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--ad-card-highlight-bg);
    color: var(--ad-card-highlight-text);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

.ad-card-content {
    padding: 15px;
}

.ad-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ad-card-price);
    margin-bottom: 8px;
}

.ad-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-card-title);
    margin-bottom: 8px;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ad-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.ad-card-tag {
    background-color: var(--ad-card-tag-bg);
    color: var(--ad-card-tag-text);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-card-location {
    font-size: 12px;
    color: var(--ad-card-location);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ad-card-date {
    font-size: 12px;
    color: var(--ad-card-date);
}

/* Seção de ofertas por categoria estilo OLX */
.category-offers-section {
    margin-bottom: 40px;
}

.category-offers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-offer-item {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
}

.category-offer-item:hover {
    transform: translateY(-2px);
}

.category-offer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.category-offer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: visible;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-offer-image i {
    font-size: 2.5rem;
}

.category-offer-text {
    color: var(--category-offer-text);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Seção de criar conta estilo OLX */
.create-account-section {
    background-color: var(--create-account-bg);
    padding: 40px 0;
    margin-bottom: 40px;
}

.create-account-container {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.create-account-container .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-icon {
    background-color: var(--benefit-icon-bg);
    color: var(--benefit-icon-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--benefit-title);
    margin-bottom: 5px;
}

.benefit-content p {
    font-size: 14px;
    color: var(--benefit-text);
    margin: 0;
}

.btn-create-account {
    background-color: var(--create-account-button-bg);
    color: var(--create-account-button-text);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    width: 300px;
    margin: 0 auto;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-create-account:hover {
    background-color: var(--secondary-hover);
    color: var(--create-account-button-text);
}

/* Footer estilo OLX */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 0;
}

.footer-categories {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--footer-title);
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 14px;
    color: var(--footer-subtitle);
    margin-bottom: 15px;
}

.footer-category-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-category-image {
    text-decoration: none;
    color: var(--footer-link);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-category-image:hover {
    color: var(--footer-link-hover);
}

.footer-category-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-category-image span {
    font-size: 12px;
    font-weight: 600;
}

.footer-offers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.footer-offer {
    text-decoration: none;
    color: var(--footer-link);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-offer:hover {
    color: var(--footer-link-hover);
}

.footer-offer-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-offer-text {
    font-size: 12px;
    font-weight: 600;
}

.footer-divider {
    border-color: var(--footer-divider);
    margin: 30px 0;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    text-decoration: none;
    color: var(--footer-link);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    color: var(--footer-link-hover);
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social-link {
    background-color: var(--light-color);
    color: var(--footer-social-link);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    border: 1px solid var(--card-border);
}

.footer-social-link:hover {
    color: var(--footer-social-link-hover);
}

.footer-app-links {
    display: flex;
    gap: 10px;
}

.footer-app-link img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--footer-copyright);
}

/* Estilos para login social */
.social-login {
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.divider span {
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    width: 140px;
}

.social-button i {
    font-size: 18px;
}

.social-button.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.social-button.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
}

.social-button.btn-outline-primary {
    color: #3b5998;
    border-color: #3b5998;
}

.social-button.btn-outline-primary:hover {
    color: #fff;
    background-color: #3b5998;
}

/* Responsividade */
@media (max-width: 1200px) {
    .category-offers {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .banner-offer {
        font-size: 18px;
    }
    
    .footer-offers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar .col-md-2,
    .top-bar .col-md-5 {
        width: 100%;
    }
    
    .category-offers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-container {
        grid-template-columns: 1fr;
    }
    
    .footer-category-images {
        grid-template-columns: 1fr;
    }
    
    .footer-offers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-content {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-offer {
        font-size: 16px;
    }
    
    .category-offers {
        grid-template-columns: 1fr;
    }
    
    .btn-create-account {
        width: 100%;
    }
}
