﻿.quick-categories-bar {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-categories-bar .btn-outline-secondary {
    border: 2px solid transparent;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0.375rem 0.75rem;
    color: #212529 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Icons are colorful by default! */
.quick-categories-bar .btn-outline-secondary i.bi {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Add a subtle colored border on each category by default */
.quick-categories-bar .d-flex a:nth-child(1) {
    border-color: rgba(220, 53, 69, 0.2); /* Automobili - Red */
}

.quick-categories-bar .d-flex a:nth-child(2) {
    border-color: rgba(102, 126, 234, 0.2); /* Nekretnine - Purple */
}

.quick-categories-bar .d-flex a:nth-child(3) {
    border-color: rgba(102, 16, 242, 0.2); /* Tehnika - Purple */
}

.quick-categories-bar .d-flex a:nth-child(4) {
    border-color: rgba(13, 202, 240, 0.2); /* Moda - Cyan */
}

.quick-categories-bar .d-flex a:nth-child(5) {
    border-color: rgba(253, 126, 20, 0.2); /* Dom i vrt - Orange */
}

.quick-categories-bar .d-flex a:nth-child(6) {
    border-color: rgba(108, 117, 125, 0.2); /* Sport - Gray */
}

.quick-categories-bar .d-flex a:nth-child(7) {
    border-color: rgba(214, 51, 132, 0.2); /* Usluge - Pink */
}

.quick-categories-bar .d-flex a:nth-child(8) {
    border-color: rgba(241, 196, 15, 0.2); /* Namirnice - Yellow */
}

.quick-categories-bar .d-flex a:nth-child(9) {
    border-color: rgba(25, 135, 84, 0.2); /* Ostalo - Green */
}

/* Override Bootstrap's color inheritance */
.quick-categories-bar a.category-badge {
    color: #212529 !important;
}

.quick-categories-bar .btn-outline-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    border: 2px solid transparent;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white !important;
}

.quick-categories-bar .btn-outline-secondary:hover span {
    color: white !important;
}

.quick-categories-bar .btn-outline-secondary:hover .bi {
    transform: scale(1.2);
    filter: brightness(1.3) drop-shadow(0 3px 6px rgba(255, 255, 255, 0.3));
    color: white !important;
}

/* Glowing animation on hover */
.quick-categories-bar .btn-outline-secondary:hover {
    animation: categoryGlow 2s ease-in-out infinite;
}

@keyframes categoryGlow {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
    }
}

/* Text stays visible */
.quick-categories-bar .btn-outline-secondary span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    color: #212529;
}

/* Categories Dropdown Button - Purple Icon */
#categoriesDropdown .text-primary {
    color: #667eea !important;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .quick-categories-bar .bi {
        font-size: 1.1rem;
    }
    
    .quick-categories-bar .btn-outline-secondary {
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 991.98px) {
    .quick-categories-bar .bi {
        font-size: 1rem;
    }
    
    .quick-categories-bar .btn-outline-secondary {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .categories-dropdown {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 56px !important;
        width: calc(100vw - 2rem) !important;
        max-width: 95vw !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 2050 !important;
        border-radius: 8px;
    }
}
