/* ================================================
   VYLEPŠENÉ FILTRY - Počty kurzů a disabled stavy
   ================================================ */

.filters-wrapper {
    position: relative;
    z-index: 1;
}

.filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover:not(.disabled) {
    border-color: #003d82;
    background: #f0f7ff;
    color: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.15);
    z-index: 2;
}

.filter-btn.active {
    background: #003d82;
    border-color: #003d82;
    color: white;
}

.filter-btn.active .filter-count {
    color: rgba(255, 255, 255, 0.9);
}

/* Disabled stav pro prázdné kategorie */
.filter-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    position: relative;
}

.filter-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tooltip pro disabled tlačítka - MUSÍ BÝT NAD VŠÍM */
.filter-btn.disabled::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, bottom 0.2s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn.disabled::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, bottom 0.2s ease;
    z-index: 9998;
}

.filter-btn.disabled:hover::after {
    opacity: 1;
    bottom: calc(100% + 12px);
}

.filter-btn.disabled:hover::before {
    opacity: 1;
    bottom: calc(100% + 6px);
}

/* Počet kurzů v tlačítku */
.filter-count {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover:not(.disabled) .filter-count {
    background: rgba(0, 61, 130, 0.1);
    color: #003d82;
}

.filter-btn.disabled .filter-count {
    background: transparent;
    color: #999;
}

/* ================================================
   VYLEPŠENÝ PRÁZDNÝ STAV
   ================================================ */

.no-results {
    background: white;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    font-weight: 600;
    margin: 0;
}

.no-results p {
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Animace pro prázdný stav */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results > div {
    animation: fadeInUp 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .filter-count {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .filter-btn.disabled::after {
        font-size: 12px;
        padding: 6px 10px;
    }
}