/**
 * Archive Filters Module - Complete Styles
 * 
 * Система фильтров для архивов (slot, casino, bonus)
 * Адаптировано из темы Coinflip для темной темы gamblingtheme
 * 
 * @package Gambling_Theme
 * @version 1.0.0
 * @created 2025-01-18
 */

/* ============================================
   ОБЁРТКА ФИЛЬТРОВ
   ============================================ */
.gt-filters-wrapper {
    margin: var(--spacing-2xl) 0;
    padding: 0;
}

/* ============================================
   БЫСТРЫЕ ФИЛЬТРЫ (горизонтальная строка)
   ============================================ */
.gt-quick-filters {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
/*    border-radius: 12px;*/
    padding: 3px;
/*    margin-bottom: var(--spacing-lg);*/
/*    margin-bottom: var(--spacing-10);*/
    margin-bottom: var(--spacing-0);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gt-quick-filters-inner {
    display: flex;
    align-items: stretch;
/*    padding-top: 3px;*/
    padding-top: 5px;
/*    padding-bottom: 5px;*/
    padding-bottom: 10px;
    gap: var(--spacing-sm);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-tertiary);
    -webkit-overflow-scrolling: touch;
}

.gt-quick-filters-inner::-webkit-scrollbar {
    height: 6px;
}

.gt-quick-filters-inner::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.gt-quick-filters-inner::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
    transition: background var(--transition-fast) var(--ease-out);
}

.gt-quick-filters-inner::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   КНОПКИ ПРОКРУТКИ
   ============================================ */
.scroll-button {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    background: rgba(30, 41, 59, 0.8);
    border: none;
    border-radius: 0;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base) var(--ease-in-out);
    padding: 0;
    margin: 0;
}

.scroll-button:hover {
    background: var(--gradient-primary);
}

.scroll-button.visible {
    display: flex;
}

.scroll-button-left {
    left: 0;
/*    border-radius: 12px 0 0 12px;*/
}

.scroll-button-right {
    right: 0;
/*    border-radius: 0 12px 12px 0;*/
}

.scroll-button svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    flex-shrink: 0;
}

/* ============================================
   КНОПКА "ФИЛЬТРЫ"
   ============================================ */
.gt-filters-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
/*    gap: var(--spacing-xs);*/
/*    padding: var(--spacing-sm) var(--spacing-xs) !important;*/
    padding: var(--spacing-xs) var(--spacing-xs) !important;
    min-width: 110px;
    max-width: 130px;
/*    min-height: 110px;*/
/*    background: var(--gradient-primary);*/
    background: var(--info);
    color: var(--text-primary) !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
    white-space: normal;
    text-align: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
    position: relative;
    box-sizing: border-box;
}

.gt-filters-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.gt-filters-toggle-btn:active {
    transform: translateY(0);
}

.gt-filters-toggle-btn svg {
/*    width: 50px;
    height: 50px;*/
    width: 35px;
    height: 30px;
    flex-shrink: 0;
}

.gt-filters-toggle-text {
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
}

.gt-filters-active-count {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--error);
    color: var(--text-primary);
    border-radius: 11px;
    font-size: 12px;
    font-weight: var(--font-bold);
    line-height: 1;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ============================================
   ЭЛЕМЕНТЫ БЫСТРЫХ ФИЛЬТРОВ
   ============================================ */
.gt-quick-filter-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
/*    gap: var(--spacing-xs) !important;*/
/*    padding: var(--spacing-sm) var(--spacing-xs) !important;*/
    min-width: 110px !important;
    max-width: 130px !important;
/*    min-height: 110px !important;*/
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
/*    flex-shrink: 0;*/
    position: relative;
    box-sizing: border-box !important;
}

.gt-quick-filter-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gt-quick-filter-item.active {
/*    background: var(--gradient-primary);*/
    background: var(--info);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
}

.gt-quick-filter-item.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* ============================================
   ИКОНКИ ФИЛЬТРОВ
   ============================================ */
.gt-quick-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
/*    width: 50px !important;*/
/*    height: 50px !important;*/
    width: 35px !important;
    height: 35px !important;
    flex-shrink: 0;
}

.gt-quick-filter-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base) var(--ease-out);
}

.gt-quick-filter-item:hover .gt-quick-filter-icon img {
    transform: scale(1.1);
}

.gt-quick-filter-item.active .gt-quick-filter-icon img {
    filter: brightness(0) invert(1);
}

.gt-quick-filter-icon svg {
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    transition: color var(--transition-base) var(--ease-out);
}

.gt-quick-filter-item.active .gt-quick-filter-icon svg {
    color: var(--text-primary);
}

/* ============================================
   НАЗВАНИЯ ПОД ИКОНКАМИ
   ============================================ */
.gt-quick-filter-label {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-align: center;
    transition: color var(--transition-base) var(--ease-out);
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
}

.gt-quick-filter-item.active .gt-quick-filter-label {
    color: var(--text-primary);
}

/* ============================================
   СЧЁТЧИКИ ФИЛЬТРОВ
   ============================================ */
.gt-quick-filter-count {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    font-size: 11px;
    font-weight: var(--font-bold);
    line-height: 1;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base) var(--ease-out);
}

.gt-quick-filter-item.active .gt-quick-filter-count {
    background: var(--text-primary);
    color: var(--primary);
    border-color: var(--text-primary);
}
/* ============================================
   АКТИВНЫЕ ФИЛЬТРЫ (badges)
   ============================================ */
.gt-active-filters {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.15) 100%);
/*    border: 2px solid var(--primary);*/
    border: 2px solid var(--info);   
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
/*    margin-bottom: var(--spacing-lg);*/
    margin-bottom: var(--spacing-10);    
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-gold);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gt-active-filters-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gt-active-filters-label {
    font-size: 15px;
    font-weight: var(--font-bold);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gt-active-filters-label::before {
    content: '🎯';
    font-size: 18px;
}

.gt-active-filters-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.gt-active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast) var(--ease-out);
}

.gt-active-filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-hover);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gt-active-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--error);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--font-bold);
    line-height: 1;
    transition: all var(--transition-fast) var(--ease-out);
    padding: 0;
}

.gt-active-filter-remove:hover {
    background: #dc2626;
    transform: rotate(90deg) scale(1.15);
}

.gt-clear-all-filters {
    padding: var(--spacing-xs) 18px;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gt-clear-all-filters:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.gt-clear-all-filters:active {
    transform: translateY(0);
}

/* ============================================
   КНОПКА "ЗАГРУЗИТЬ ЕЩЁ" (Load More)
   ============================================ */
.gt-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: var(--spacing-2xl) auto;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
    box-shadow: var(--shadow-gold);
}

.gt-load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.gt-load-more-btn:active {
    transform: translateY(0);
}

.gt-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================ */
.slot-card,
.casino-card,
.bonus-card,
.slot-item,
.casino-item,
.bonus-item {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   OVERLAY (затемнение фона)
   ============================================ */
.gt-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base) var(--ease-in-out), 
                visibility var(--transition-base) var(--ease-in-out);
}

.gt-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   БОКОВАЯ ПАНЕЛЬ
   ============================================ */
.gt-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 380px;
    background: var(--bg-secondary);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    transition: transform var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.gt-sidebar-right {
    right: 0;
    transform: translateX(100%);
}

.gt-sidebar-right.active {
    display: flex;
    transform: translateX(0);
    z-index: 9999;
}

.gt-sidebar-left {
    left: 0;
    transform: translateX(-100%);
}

.gt-sidebar-left.active {
    display: flex;
    transform: translateX(0);
}

/* ============================================
   ШАПКА САЙДБАРА
   ============================================ */
.gt-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    color: var(--text-primary);
    flex-shrink: 0;
}

.gt-sidebar-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.gt-sidebar-title svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gt-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    flex-shrink: 0;
}

.gt-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gt-sidebar-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

/* ============================================
   КОНТЕНТ САЙДБАРА (скроллируемый)
   ============================================ */
.gt-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-tertiary);
}

.gt-sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.gt-sidebar-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.gt-sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 4px;
    transition: background var(--transition-fast) var(--ease-out);
}

.gt-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   СЕКЦИИ ФИЛЬТРОВ (аккордеоны)
   ============================================ */
.gt-filter-section {
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.gt-filter-section:last-child {
    margin-bottom: 0;
}

.gt-filter-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    text-align: left;
}

.gt-filter-section-header:hover {
    background: var(--bg-secondary);
}

.gt-filter-section-header.expanded {
    background: rgba(212, 175, 55, 0.15);
}

.gt-filter-section-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.gt-filter-section-title {
    flex: 1;
    font-size: 15px;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.gt-filter-section-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.gt-filter-section-arrow {
    flex-shrink: 0;
    transition: transform var(--transition-base) var(--ease-in-out);
    color: var(--text-secondary);
}

.gt-filter-section-header.expanded .gt-filter-section-arrow {
    transform: rotate(180deg);
}

.gt-filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) var(--ease-in-out);
}

.gt-filter-section-content.expanded {
    max-height: 1000px;
}

/* ============================================
   ПОИСК ВНУТРИ СЕКЦИИ
   ============================================ */
.gt-filter-search {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.gt-filter-search-input {
    width: 100%;
    padding: 10px 36px 10px var(--spacing-sm);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast) var(--ease-out);
}

.gt-filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.gt-filter-search-input::placeholder {
    color: var(--text-muted);
}

.gt-filter-search-icon {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ============================================
   СПИСОК ТЕРМИНОВ
   ============================================ */
.gt-filter-items {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gt-filter-items.has-scroll {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-tertiary);
}

.gt-filter-items.has-scroll::-webkit-scrollbar {
    width: 6px;
}

.gt-filter-items.has-scroll::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.gt-filter-items.has-scroll::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}

.gt-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--spacing-sm);
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.gt-filter-item:last-child {
    margin-bottom: 0;
}

.gt-filter-item:hover {
    background: var(--bg-secondary);
}

.gt-filter-item.active {
    background: rgba(212, 175, 55, 0.15);
}

.gt-filter-item.hidden {
    display: none;
}

.gt-filter-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gt-filter-checkbox-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-secondary);
    border-radius: 4px;
    background: var(--bg-primary);
    transition: all var(--transition-fast) var(--ease-out);
    flex-shrink: 0;
}

.gt-filter-checkbox:checked + .gt-filter-checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.gt-filter-checkbox:checked + .gt-filter-checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(-45deg);
}

.gt-filter-item-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.gt-filter-item-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.gt-filter-item-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    flex-shrink: 0;
}
/* ============================================
   КНОПКА "ПОКАЗАТЬ ЕЩЁ"
   ============================================ */
.gt-filter-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: var(--spacing-xs);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--font-semibold);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
}

.gt-filter-show-more:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.gt-filter-show-more svg {
    transition: transform var(--transition-fast) var(--ease-out);
}

.gt-filter-show-more.expanded svg {
    transform: rotate(180deg);
}

/* ============================================
   ФУТЕР САЙДБАРА (кнопки)
   ============================================ */
.gt-sidebar-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.gt-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex: 1;
    padding: 14px var(--spacing-lg);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    user-select: none;
}

.gt-sidebar-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gt-sidebar-btn-reset {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.gt-sidebar-btn-reset:hover {
    background: var(--bg-primary);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.gt-sidebar-btn-apply {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
}

.gt-sidebar-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.gt-sidebar-btn-apply:active {
    transform: translateY(0);
}

/* ============================================
   ИНДИКАТОР ЗАГРУЗКИ
   ============================================ */
.gt-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gt-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gt-loading-overlay p {
    margin-top: var(--spacing-lg);
    font-size: 16px;
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.gt-grid.loading {
    position: relative;
    min-height: 400px;
}

/* ============================================
   СООБЩЕНИЕ "НИЧЕГО НЕ НАЙДЕНО"
   ============================================ */
.gt-filter-no-results {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-top: var(--spacing-sm);
    animation: fadeIn 0.3s ease;
}

.no-results-found {
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin: var(--spacing-2xl) 0;
}

.no-results-found p {
    font-size: 18px;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты (≤1024px) */
@media (max-width: 1024px) {
    .gt-filters-toggle-btn,
    .gt-quick-filter-item {
        padding: 10px var(--spacing-xs) !important;
        gap: 6px !important;
        min-width: 100px !important;
        max-width: 120px !important;
        min-height: 100px !important;
    }
    
    .gt-quick-filter-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .gt-filters-toggle-btn svg {
        width: 45px !important;
        height: 45px !important;
    }
    
    .gt-quick-filter-label,
    .gt-filters-toggle-text {
        font-size: 13px !important;
        line-height: 1.2 !important;
        min-height: 31px !important;
    }
    
    .gt-sidebar {
        width: 340px;
    }
}

/* Мобильные (≤768px) */
@media (max-width: 768px) {
    .gt-filters-wrapper {
        margin: var(--spacing-lg) 0;
    }
    
    .gt-quick-filters {
        padding: 15px;
        border-radius: 10px;
    }
    
    .gt-quick-filters-inner {
        gap: 10px;
    }
    
    .gt-filters-toggle-btn,
    .gt-quick-filter-item {
        padding: var(--spacing-xs) 6px !important;
        gap: 4px !important;
        min-width: 85px !important;
        max-width: 100px !important;
        min-height: 90px !important;
    }
    
    .gt-quick-filter-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .gt-filters-toggle-btn svg {
        width: 38px !important;
        height: 38px !important;
    }
    
    .gt-quick-filter-label,
    .gt-filters-toggle-text {
        font-size: 11px !important;
        line-height: 1.1 !important;
        min-height: 24px !important;
    }
    
    .gt-quick-filter-count,
    .gt-filters-active-count {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        top: 5px !important;
        right: 5px !important;
    }
    
    .gt-active-filters {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .gt-active-filters-inner {
        gap: 10px;
    }
    
    .gt-active-filters-label {
        font-size: 14px;
    }
    
    .gt-active-filter-badge {
        font-size: 13px;
        padding: 6px var(--spacing-sm);
    }
    
    .gt-load-more-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
    
    .gt-sidebar {
        width: 100%;
        max-width: 400px;
    }
    
    .gt-sidebar-header {
        padding: var(--spacing-lg);
    }
    
    .gt-sidebar-title {
        font-size: 16px;
    }
    
    .gt-sidebar-content {
        padding: var(--spacing-md);
    }
    
    .gt-sidebar-footer {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* Очень маленькие экраны (≤480px) */
@media (max-width: 480px) {
    .gt-filters-toggle-btn,
    .gt-quick-filter-item {
        padding: 6px 6px !important;
        gap: 3px !important;
        min-width: 75px !important;
        max-width: 85px !important;
        min-height: 80px !important;
    }
    
    .gt-quick-filter-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .gt-filters-toggle-btn svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .gt-quick-filter-label,
    .gt-filters-toggle-text {
        font-size: 10px !important;
        line-height: 1.1 !important;
        min-height: 22px !important;
    }
    
    .gt-sidebar {
        width: 100%;
        max-width: none;
    }
    
    .gt-sidebar-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 14px;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */
.gt-filters-wrapper * {
    box-sizing: border-box;
}

/* Отключаем выделение текста при быстрых кликах */
.gt-quick-filter-item,
.gt-filters-toggle-btn,
.gt-clear-all-filters,
.gt-load-more-btn,
.gt-sidebar-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Плавные переходы */
.gt-filters-wrapper *,
.gt-sidebar *,
.gt-sidebar-overlay {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ХУКИ ДЛЯ КАСТОМИЗАЦИИ
   ============================================ */

/* Хук для кастомной высоты quick-filters */
.gt-quick-filters.custom-height .gt-quick-filter-item,
.gt-quick-filters.custom-height .gt-filters-toggle-btn {
    min-height: var(--custom-filter-height, 110px);
}

/* Хук для кастомной ширины sidebar */
.gt-sidebar.custom-width {
    width: var(--custom-sidebar-width, 380px);
}

/* Хук для альтернативной цветовой схемы (если понадобится светлая тема) */
.gt-filters-wrapper.light-theme {
    /* Можно добавить переопределения для светлой темы */
}

/* ============================================
   PRINT STYLES (для печати)
   ============================================ */
@media print {
    .gt-sidebar,
    .gt-sidebar-overlay,
    .gt-filters-toggle-btn,
    .gt-load-more-btn,
    .scroll-button {
        display: none !important;
    }
    
    .gt-quick-filters {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================
   ACCESSIBILITY (доступность)
   ============================================ */

/* Фокус для клавиатурной навигации */
.gt-quick-filter-item:focus,
.gt-filters-toggle-btn:focus,
.gt-filter-checkbox:focus + .gt-filter-checkbox-custom,
.gt-sidebar-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Высокая контрастность для людей с нарушениями зрения */
@media (prefers-contrast: high) {
    .gt-quick-filter-item,
    .gt-filter-item,
    .gt-sidebar-btn {
        border-width: 3px;
    }
    
    .gt-quick-filter-item.active,
    .gt-filter-item.active {
        border-color: var(--primary-hover);
    }
}

/* Уменьшенная анимация для людей с вестибулярными расстройствами */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gt-sidebar,
    .gt-sidebar-overlay,
    .scroll-button {
        transition: none !important;
    }
}

/* ============================================
   DEBUG MODE (для разработки)
   ============================================ */
.gt-filters-wrapper.debug * {
    outline: 1px solid rgba(255, 0, 0, 0.3);
}

.gt-filters-wrapper.debug *:hover {
    outline: 2px solid rgba(255, 0, 0, 0.8);
}

/* ============================================
   ФИЛЬТРЫ ДЛЯ КАЗИНО (ДРОПДАУНЫ)
   ✅ Добавлено v1.3.0 - Стили для выпадающих списков казино
   ============================================ */

/* Обёртка дропдауна */
.gt-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-xs);
    flex: 1; /* ✅ Растягивается на всю доступную ширину */
    min-width: 150px; /* ✅ Минимум для мобильных */
    min-height: 110px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-base) var(--ease-in-out);
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.gt-dropdown-wrapper:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gt-dropdown-wrapper.has-value {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

/* Лейбл над дропдауном */
.gt-dropdown-label {
    font-size: 13px;
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Сам <select> */
.gt-dropdown {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    text-align: center;
}

.gt-dropdown:hover {
    border-color: var(--border-secondary);
}

.gt-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.gt-dropdown option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px;
    text-align: left;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ ДРОПДАУНОВ КАЗИНО
   ============================================ */

/* Планшеты (≤1024px) */
@media (max-width: 1024px) {
    .gt-dropdown-wrapper {
        min-width: 160px;
        max-width: 200px;
        min-height: 100px;
    }
    
    .gt-dropdown-label {
        font-size: 12px;
    }
    
    .gt-dropdown {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Мобильные (≤768px) */
@media (max-width: 768px) {
    .gt-dropdown-wrapper {
        padding: var(--spacing-xs) 6px;
        gap: 4px;
        min-width: 85px;
        max-width: 100px;
        min-height: 90px;
    }
    
    .gt-dropdown-label {
        font-size: 10px;
    }
    
    .gt-dropdown {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* Очень маленькие экраны (≤480px) */
@media (max-width: 480px) {
    .gt-dropdown-wrapper {
        padding: 6px 6px;
        gap: 3px;
        min-width: 75px;
        max-width: 85px;
        min-height: 80px;
    }
}

/* Accessibility для дропдаунов */
.gt-dropdown:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Отключаем выделение текста при быстрых кликах */
.gt-dropdown {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   ПРАВКА 3: СТИЛИЗАЦИЯ РАДИО-КНОПОК СОРТИРОВКИ
   Квадратные с галочкой как чекбоксы для единого стиля
   ============================================ */

/* Скрытый radio input */
.gt-filter-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Кастомный визуальный элемент (квадрат как у чекбоксов) */
.gt-filter-radio-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-secondary);
    border-radius: 4px; /* ✅ Квадратный как чекбокс */
    background: var(--bg-primary);
    transition: all var(--transition-fast) var(--ease-out);
    flex-shrink: 0;
}

/* Состояние :checked - золотой фон */
.gt-filter-radio:checked + .gt-filter-radio-custom {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

/* Галочка внутри квадрата */
.gt-filter-radio:checked + .gt-filter-radio-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(-45deg);
}

/* Hover эффект */
.gt-filter-item:hover .gt-filter-radio-custom {
    border-color: var(--primary);
}

/* Фокус для клавиатурной навигации */
.gt-filter-radio:focus + .gt-filter-radio-custom {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Дополнительный стиль для элемента сортировки */
.gt-filter-sort-item {
    /* Наследует все стили от .gt-filter-item */
}

/* ============================================
   КОНЕЦ СТИЛЕЙ РАДИО-КНОПОК
   ============================================ */

