/* ============================================
   FILTERS PANEL - Modern Design v2.0
   Matching Aurora theme with SVG icons
   ============================================ */

/* Overlay */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* NO backdrop-filter for performance */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 980;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.filters-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    
    /* Solid dark background - NO backdrop-filter */
    background: rgba(22, 20, 32, 0.98);
    
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    
    /* HIDDEN by default */
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
    
    transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
    
    /* z-index НИЖЕ чем bottom-bar (1000) */
    z-index: 990;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filters-panel.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

/* Header */
.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.filters-header h3 svg {
    opacity: 0.8;
}

.filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.filters-close:active {
    transform: scale(0.95);
}

/* Content */
.filters-content,
.filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Filter Group */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.filter-group-title svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: #1a1a2e;
}

.filter-chip:active {
    transform: scale(0.97);
}

/* Footer */
.filters-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    /* Учитываем bottom bar (70px) + safe area */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-footer .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.filters-footer .btn svg {
    flex-shrink: 0;
}

/* Secondary Button (Reset) */
.filters-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.filters-footer .btn-secondary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.06);
}

/* Primary Button (Apply) */
.filters-footer .btn-primary {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(245, 245, 250, 0.9) 100%
    );
    color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.filters-footer .btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(250, 250, 255, 0.95) 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.filters-footer .btn-primary:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(
        135deg,
        rgba(230, 230, 235, 0.95) 0%,
        rgba(220, 220, 228, 0.9) 100%
    );
}

/* ============================================
   TOAST NOTIFICATIONS - Modern Design
   ============================================ */

.toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    
    /* Solid dark background - NO backdrop-filter */
    background: rgba(25, 22, 35, 0.95);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

/* Toast variants */
.toast.toast-success .toast-icon {
    color: #4ade80;
}

.toast.toast-info .toast-icon {
    color: #60a5fa;
}

.toast.toast-warning .toast-icon {
    color: #fbbf24;
}

.toast.toast-error .toast-icon {
    color: #f87171;
}

