/* Neon Purple Theme */
:root {
  --neon-purple: #c724ff;
  --neon-purple-light: rgba(199, 36, 255, 0.3);
  --neon-purple-dark: rgba(100, 10, 150, 0.8);
  --neon-glow: 0 0 10px #c724ff, 0 0 20px rgba(199, 36, 255, 0.5);
  --dark-bg: rgba(20, 5, 35, 0.95);
  --light-text: #ffffff;
  --darker-bg: rgba(10, 2, 20, 0.9);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Main Compact Container */
.compact-filter-container {
  padding: 12px 18px;
  margin: 0 30px 15px;
  background: var(--dark-bg);
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(199, 36, 255, 0.2);
  border: 1px solid var(--neon-purple-light);
  max-width: 100%;
  overflow: hidden;
  transition: var(--transition);
}

/* Header */
.compact-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-text);
}

.filter-toggle i.fa-sliders-h {
  color: var(--neon-purple);
  font-size: 16px;
}

.filter-toggle span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.expand-icon {
  color: var(--neon-purple);
  font-size: 12px;
  transition: var(--transition);
  margin-left: 5px;
}

.clear-filter-btn {
  background: transparent;
  color: var(--neon-purple);
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-filter-btn:hover {
  background: rgba(199, 36, 255, 0.1);
  text-shadow: 0 0 8px var(--neon-purple);
}

.clear-filter-btn i {
  font-size: 14px;
}

/* Expanded Content */
.filter-expansion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.filter-expansion.expanded {
  max-height: 500px; /* Adjust based on your content */
  margin-top: 15px;
}

/* Tag Options */
.tag-filter-main {
  width: 100%;
  position: relative;
}

.tag-options-scroll-container {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.tag-options-scroll-container::-webkit-scrollbar {
  display: none;
}

.tag-options-container {
  display: inline-flex;
  gap: 10px;
  padding: 0 2px;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--darker-bg);
  border: 1px solid var(--neon-purple-light);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.tag-option:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 4px 12px rgba(199, 36, 255, 0.2);
}

.tag-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 16px;
  width: 16px;
  background-color: transparent;
  border: 2px solid var(--neon-purple-light);
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.checkmark i {
  color: transparent;
  font-size: 10px;
  transition: var(--transition);
  transform: scale(0.8);
}

.selection-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(199, 36, 255, 0.1);
  border-radius: 24px;
  transform: scale(0.9);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.tag-option input:checked ~ .checkmark {
  background-color: var(--neon-purple);
  border-color: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
}

.tag-option input:checked ~ .checkmark i {
  color: white;
  transform: scale(1);
}

.tag-option input:checked ~ .selection-indicator {
  opacity: 1;
  transform: scale(1);
}

.tag-option input:checked ~ .option-text {
  color: white;
  font-weight: 500;
}

.option-text {
  color: var(--light-text);
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

/* Selected Tags */
.selected-tags-container {
  width: 100%;
  min-height: 36px;
  overflow: hidden;
}

.selected-tags-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.selected-tag {
  background: rgba(199, 36, 255, 0.15);
  color: var(--neon-purple);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--neon-purple-light);
  transition: var(--transition);
  animation: tagAppear 0.3s ease-out;
}
@media (max-width: 768px) {
  .compact-filter-container {
    padding: 8px 12px;
    margin: 0 8px 12px;
    border-radius: 10px;
  }

  .filter-toggle span {
    font-size: 13px;
  }

  .clear-filter-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .tag-option {
    padding: 6px 10px;
    font-size: 12px;
  }

  .checkmark {
    height: 14px;
    width: 14px;
    margin-right: 6px;
  }

  .selected-tag {
    padding: 4px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .compact-filter-container {
    padding: 6px 10px;
    margin: 0 6px 10px;
  }

  .filter-toggle span {
    font-size: 12px;
  }

  .clear-filter-btn {
    padding: 3px 6px;
    font-size: 10px;
  }

  .clear-filter-btn span {
    display: none;
  }

  .tag-option {
    padding: 5px 9px;
    font-size: 11px;
  }

  .checkmark {
    height: 13px;
    width: 13px;
    margin-right: 5px;
  }

  .selected-tag {
    padding: 3px 8px;
    font-size: 10px;
    gap: 5px;
  }

  .remove-tag {
    font-size: 10px;
  }
}





  .lazy-bg {
    background-color: #111;
    background-size: cover;
    background-position: center;
  }

.spicy-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
   background: linear-gradient(145deg, rgba(128, 0, 255, 0.85), rgba(75, 0, 130, 0.85));
display: none; /* hidden by default */
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 64, 129, 0.6);
    z-index: 10;
    backdrop-filter: blur(6px);
    animation: softPulse 2s ease-in-out infinite;
}

.spicy-counter .count {
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Pulse Animation */
.pulse {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.selected-tag {
  display: inline-flex;
  align-items: center;
  background-color: #6f42c1;
  color: #fff;
  border-radius: 12px;
  padding: 4px 10px;
  margin: 4px 6px 4px 0;
  font-size: 14px;
  user-select: none;
}

.selected-tag .remove-tag-btn {
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  margin-left: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  user-select: none;
  transition: color 0.2s ease;
}

.selected-tag .remove-tag-btn:hover {
  color: #d9534f; /* red on hover */
}

