/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos do body */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Container centralizado */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Cabeçalho */
header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

.logo img {
    height: 45px;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Menu principal (telas maiores) */
.main-nav {
    display: flex;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.menu li {
    margin-left: 20px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.menu li a i {
    margin-right: 5px;
}

/* Flex layout para filtros avançados */
.advanced-filters .flex-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.price-range, .age-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-options label, .multi-select label {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin: 5px;
}

.price-options input[type="radio"],
.multi-select input[type="checkbox"] {
    display: none;
}

/* Estilo para selecionados */
.price-options input[type="radio"]:checked + label,
.multi-select input[type="checkbox"]:checked + label {
    background-color: #ff5a5f;
    color: #fff;
    border-color: #ff5a5f;
}

.apply-filters-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.apply-filters-btn:hover {
    background-color: #218838;
}


/* Sidebar (menu lateral) */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Escondido fora da tela */
    width: 250px;
    height: 100%;
    background-color: #fff;
    border-left: 1px solid #e5e5e5;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
}

.sidebar ul li a i {
    margin-right: 10px;
}

/* Overlay */
.overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

.overlay.active {
    display: block;
}

/* Ajuste responsivo para categorias e gênero */
.categories-section {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.category-options, .gender-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.category-options p,
.gender-options p {
    font-weight: bold;
    margin-bottom: 10px;
}

.categories label {
    margin: 3px;
    padding: 6px 12px;
    border: 1px solid #ff5a5f;
    border-radius: 5px;
    color: #ff5a5f;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.categories input[type="radio"]:checked + label {
    background-color: #ff5a5f;
    color: #fff;
}


/* Seção de busca */
.search-section {
    background-color: #fff;
    padding: 30px 0;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.input-group {
    display: flex;
    align-items: stretch;
    flex: 1;
    max-width: 600px;
}

.input-group input {
    flex: 1;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.input-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background-color: #ff5a5f;
    border: 1px solid #ccc;
    border-left: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.input-group .btn-localize {
    border-radius: 0;
}

.input-group .btn-search {
    border-radius: 0 5px 5px 0;
}

.input-group button:hover {
    background-color: #e14e50;
}

.input-group button + button {
    border-left: none;
}

.input-group i {
    margin: 0;
}

/* Quick Filters - Botões de seleção */
.categories,
.quick-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}


.categories input[type="radio"],
.quick-filters input[type="radio"] {
    display: none;
}

.categories label,
.quick-filters label {
    padding: 8px 15px;
    border: 1px solid #ff5a5f;
    border-radius: 5px;
    color: #ff5a5f;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categories input[type="radio"]:checked + label,
.quick-filters input[type="radio"]:checked + label {
    background-color: #ff5a5f;
    color: #fff;
}

.quick-filters label:hover {
    background-color: #ff5a5f;
    color: #fff;
}

.filter-buttons {
    display: flex;
    align-items: center;
}

#filter-btn, .publish-btn {
    padding: 12px 20px;
    background-color: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-right: 10px;
}

#filter-btn:hover, .publish-btn:hover {
    background-color: #e14e50;
}

#filter-btn i, .publish-btn i {
    margin-right: 5px;
}

/* Filtros Avançados */
.advanced-filters {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-top: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-group label {
    margin-right: 10px;
}

.filter-group p {
    font-weight: 500;
    margin-bottom: 10px;
}

.filter-group input[type="number"] {
    width: 70px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.apply-filters-btn {
    width: 100%;
    padding: 10px;
    background-color: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

.apply-filters-btn:hover {
    background-color: #e14e50;
}

/* Seção do feed (Reels) */
.reels-section {
    padding: 30px 0;
}

#reels-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reel-item {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    background-color: #000;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.reel-item img, .reel-item video {
    width: 100%;
    height: auto;
    display: block;
}

.no-more {
    text-align: center;
    font-size: 18px;
    color: #777;
}

/* Rodapé */
footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
}

footer p {
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    header,
    .search-section {
        padding: 10px;
    }

    .categories,
    .quick-filters,
    .filter-group,
    .apply-filters-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .categories label,
    .quick-filters label,
    .filter-group label {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    /* Ajustes no cabeçalho, search-form e outros */
    .header-container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .menu-icon {
        display: block;
        margin-right: 10px;
    }

    /* Oculta o menu principal em telas menores */
    .main-nav {
        display: none;
    }

    /* Ajustes na search-form */
    .search-form {
        flex-direction: column;
        align-items: center;
    }

    .input-group {
        width: 100%;
        margin-bottom: 15px;
    }

    .filter-buttons {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .filter-buttons button,
    .filter-buttons a {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
        text-align: center;
    }

    /* Quick Filters */
    .categories,
    .quick-filters {
        flex-wrap: wrap; /* Permite que os botões quebrem em várias linhas no mobile */
    }

    .quick-filters label {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Categorias */
    .categories {
        align-items: center;
    }

    .categories label {
        width: 100%; /* Botões ocupam a largura completa em dispositivos móveis */
        max-width: 180px;
    }

    /* Ajustes nos formulários */
    .form-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .category-options, .gender-options {
        width: 100%;
        text-align: center;
    }
    
    form {
        padding: 20px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    form button[type="submit"] {
        font-size: 16px;
    }
}
