/* ===================================
   ENHANCED FILTER PANEL - PREMIUM DESIGN
   =================================== */

.filter-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.98),
    rgba(0, 0, 0, 0.95)
  );
  backdrop-filter: blur(20px);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
  border-left: 1px solid rgba(229, 9, 20, 0.3);
}

.filter-panel.active {
  right: 0;
}

/* Custom Scrollbar */
.filter-panel::-webkit-scrollbar {
  width: 8px;
}

.filter-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.filter-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), #b20710);
  border-radius: 10px;
}

.filter-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff1744, var(--primary-color));
}

/* Filter Header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2),
    rgba(0, 0, 0, 0.5)
  );
  border-bottom: 2px solid rgba(229, 9, 20, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.filter-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.close-filter {
  background: rgba(229, 9, 20, 0.2);
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s ease;
  padding: 0;
}

.close-filter:hover {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  border-color: #ffffff;
  color: #000;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.3);
}

.close-filter:active {
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Filter Content */
.filter-content {
  padding: 30px;
}

/* Filter Section */
.filter-section {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  border-radius: 15px;
  border: 1px solid rgba(229, 9, 20, 0.2);
  transition: all 0.3s ease;
}

.filter-section:hover {
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.2);
}

.filter-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-section h4::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-color), #b20710);
  border-radius: 2px;
}

/* Type Filter Options (Buttons) */
.filter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-option {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.filter-option:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.filter-option.active {
  background: linear-gradient(135deg, var(--primary-color), #b20710);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

/* Filter Select Dropdowns */
.filter-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-select:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
  background: rgba(0, 0, 0, 0.8);
}

.filter-select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

/* Filter Actions */
.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(229, 9, 20, 0.2);
}

.apply-filter,
.reset-filter {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.apply-filter::before,
.reset-filter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.apply-filter:hover::before,
.reset-filter:hover::before {
  width: 300px;
  height: 300px;
}

.apply-filter {
  background: linear-gradient(135deg, var(--primary-color), #b20710);
  color: #fff;
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.apply-filter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.6);
}

.apply-filter:active {
  transform: translateY(-1px);
}

.reset-filter {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.reset-filter:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.reset-filter:active {
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .filter-panel {
    width: 100%;
    right: -100%;
  }

  .filter-content {
    padding: 20px;
  }

  .filter-options {
    grid-template-columns: 1fr;
  }
}
