/* Dedicated server category nav (Hetzner-style) */

.dedicated-category-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
}

.dedicated-category-btn {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 108px;
    padding: 0.85rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dedicated-category-btn--auction:not(.is-active) {
    border-color: rgba(245, 80, 54, 0.35);
}

.dedicated-category-live {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    color: #15803d;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.dedicated-category-live-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: dedicated-category-live-pulse 2.2s ease-out infinite;
}

@keyframes dedicated-category-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dedicated-category-btn:hover {
    border-color: #cbd5e1;
    color: inherit;
}

.dedicated-category-btn.is-active {
    border-color: #f55036;
    box-shadow: 0 0 0 3px rgba(245, 80, 54, 0.12);
}

.dedicated-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dedicated-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.dedicated-category-from {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dedicated-tile-source {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
}

.dedicated-desc-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dedicated-desc-list li + li {
    margin-top: 0.25rem;
}

/* Hetzner-style filter bar */

.dedicated-search {
    flex: 1 1 220px;
    min-width: 180px !important;
}

.dedicated-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--border-light);
}

.dedicated-filters .form-select {
    font-size: 0.8125rem;
    padding: 0.4rem 0.6rem;
    width: auto;
    min-width: 118px;
    background-color: #fff;
}

.dedicated-clear-filters {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dedicated-clear-filters:hover {
    border-color: #f55036;
    color: #c2410c;
}

.dedicated-filter-summary {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dedicated-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.dedicated-pagination-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dedicated-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.dedicated-page-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    min-width: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dedicated-page-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
}

.dedicated-page-btn.is-active {
    border-color: #f55036;
    color: #c2410c;
    box-shadow: 0 0 0 3px rgba(245, 80, 54, 0.12);
}

.dedicated-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dedicated-page-ellipsis {
    padding: 0 0.15rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .dedicated-filters .form-select {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }

    .dedicated-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .dedicated-pagination-controls {
        justify-content: center;
    }
}
