/* Barra Flutuante para Página de Creators */
.floating-creators-bar {
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    pointer-events: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.floating-creators-container {
    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);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 100px;
}

/* Modo escuro */
[data-bs-theme="dark"] .floating-creators-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);
}

.floating-creators-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 */
.floating-search-container {
    flex: 1;
    position: relative;
}

.floating-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;
}

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

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

.floating-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"] .floating-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"] .floating-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .floating-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"] .floating-search-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* Botão de filtro */
.floating-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, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.floating-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;
}

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

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

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

/* Menu de filtros expandido */
.floating-filters-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 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);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 300px;
    overflow-y: auto;
}

/* Modo escuro - Menu de filtros */
[data-bs-theme="dark"] .floating-filters-menu {
    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);
}

.floating-filters-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.floating-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;
}

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

.floating-filter-item.active {
    background: var(--primary-color, #007bff);
    border-color: var(--primary-color-dark, #0056b3);
    color: white;
}

/* Modo escuro - Itens de filtro */
[data-bs-theme="dark"] .floating-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"] .floating-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"] .floating-filter-item.active {
    background: var(--primary-color, #007bff);
    border-color: var(--primary-color-dark, #0056b3);
    color: white;
}

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

.floating-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: 480px) {
    .floating-creators-bar {
        bottom: 20px;
        padding: 0 15px;
    }
    
    .floating-creators-container {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .floating-search-input {
        padding: 10px 14px 10px 40px;
        font-size: 13px;
    }
    
    .floating-search-icon {
        left: 14px;
        font-size: 14px;
    }
    
    .floating-filter-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .floating-filters-menu {
        bottom: 65px;
        padding: 15px;
    }
    
    .floating-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .floating-filter-item {
        padding: 10px 6px;
    }
    
    .floating-filter-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .floating-filter-label {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .floating-creators-bar {
        bottom: 15px;
        padding: 0 10px;
    }
    
    .floating-creators-container {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .floating-search-input {
        padding: 8px 12px 8px 35px;
        font-size: 12px;
    }
    
    .floating-search-icon {
        left: 12px;
        font-size: 13px;
    }
    
    .floating-filter-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .floating-filters-menu {
        bottom: 60px;
        padding: 12px;
    }
    
    .floating-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .floating-filter-item {
        padding: 8px 4px;
    }
    
    .floating-filter-icon {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .floating-filter-label {
        font-size: 9px;
    }
}


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

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

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

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

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

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