/* Barra Fixa de Pesquisa e Filtros para Página de Creators */

/* Ajuste do padding da seção creators */
.creators-section {
    padding-bottom: 1rem !important;
}

/* Container da linha de pesquisa */
.fixed-search-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    overflow: visible;
}

/* Container da linha de filtros */
.fixed-filters-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.9, 0.9, 0.9, 1);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Mostrar filtros quando ativo */
.fixed-filters-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Modo escuro */
[data-bs-theme="dark"] .fixed-search-container {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .fixed-filters-container {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fixed-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50px;
    pointer-events: none;
}

/* Campo de busca */
.fixed-search-wrapper {
    flex: 1;
    position: relative;
}

.fixed-search-input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 16px 12px 45px;
    width: 100%;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.fixed-search-input::placeholder {
    color: #6c757d;
}

.fixed-search-input:focus {
    background: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.fixed-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
}

/* Modo escuro - Campo de busca */
[data-bs-theme="dark"] .fixed-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .fixed-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .fixed-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .fixed-search-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* Botão de filtro */
.fixed-filter-btn {
    background: var(--primary-color, #007bff);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.fixed-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fixed-filter-btn:hover {
    background: var(--primary-color-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fixed-filter-btn:hover::before {
    opacity: 1;
}

.fixed-filter-btn:active {
    transform: translateY(0);
}

/* Menu de filtros suspenso removido - filtros agora sempre visíveis */

.fixed-filters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.fixed-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.fixed-filter-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    text-decoration: none;
    color: #212529;
}

.fixed-filter-item.active {
    background: var(--primary-color, #000000);
    border-color: var(--primary-color-dark, #000000);
    color: white;
}

/* Modo escuro - Itens de filtro */
[data-bs-theme="dark"] .fixed-filter-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .fixed-filter-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

[data-bs-theme="dark"] .fixed-filter-item.active {
    background: var(--primary-color, #000000);
    border-color: var(--primary-color-dark, #000000);
    color: white;
}

.fixed-filter-icon {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

.fixed-filter-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Responsividade */
@media (max-width: 768px) {
    .fixed-search-container {
        padding: 10px 15px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .fixed-search-input {
        padding: 10px 14px 10px 40px;
        font-size: 13px;
    }
    
    .fixed-search-icon {
        left: 14px;
        font-size: 14px;
    }
    
    .fixed-filter-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .fixed-filters-container {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .fixed-filters-container.show {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .fixed-filters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .fixed-filter-item {
        padding: 10px 6px;
    }
    
    .fixed-filter-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .fixed-filter-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .fixed-search-container {
        padding: 8px 12px;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .fixed-search-input {
        padding: 8px 12px 8px 35px;
        font-size: 12px;
    }
    
    .fixed-search-icon {
        left: 12px;
        font-size: 13px;
    }
    
    .fixed-filter-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .fixed-filters-container {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .fixed-filters-container.show {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .fixed-filters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .fixed-filter-item {
        padding: 8px 4px;
    }
    
    .fixed-filter-icon {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .fixed-filter-label {
        font-size: 9px;
    }
}

/* Suporte para navegadores antigos */
@supports not (backdrop-filter: blur(20px)) {
    .fixed-search-container {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .fixed-filters-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    [data-bs-theme="dark"] .fixed-search-container,
    [data-bs-theme="dark"] .fixed-filters-menu {
        background: rgba(30, 30, 30, 0.98);
    }
}

/* Transições suaves */
.fixed-search-container,
.fixed-filter-btn,
.fixed-filter-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar personalizada para o menu de filtros */
.fixed-filters-menu::-webkit-scrollbar {
    width: 4px;
}

.fixed-filters-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.fixed-filters-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.fixed-filters-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Animação de entrada suave */
.fixed-search-container {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
