/* Filterleisten, Command Palette, Achievement-Icons und Animationen */

/* Filter Bar Groups mit sauberem Rahmen zur Trennung */
.filter-groups-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.filter-group-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}
:root[data-theme="light"] .filter-group-line {
  background: rgba(0, 0, 0, 0.02);
}
.filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 65px;
}

/* Command Palette Spotlight */
.cmd-palette-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cmd-palette-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 30px rgba(245, 197, 24, 0.1);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-overlay.active .cmd-palette-card {
  transform: translateY(0) scale(1);
}
.cmd-palette-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.cmd-palette-icon { font-size: 18px; margin-right: 12px; }
#cmdPaletteInput {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
#cmdPaletteInput:focus {
  box-shadow: none;
  outline: none;
}
.cmd-palette-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 0.12s ease;
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-item-icon { font-size: 16px; }
.cmd-item-desc { font-size: 12px; color: var(--text-dim); }
.cmd-item.active, .cmd-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
.cmd-palette-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Achievement Bild-Icons */
.achievement-icon-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: filter 0.3s ease, transform 0.2s ease;
}
.achievement-card:hover .achievement-icon-img {
  transform: scale(1.05);
}
.achievement-card.locked .achievement-icon-img {
  filter: grayscale(1) brightness(0.35) contrast(1.2);
}
.achievement-card.hidden-locked .achievement-icon-img {
  filter: grayscale(1) brightness(0.2) blur(1px);
}
.achievement-toast .achievement-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* 1. Weicher Grid-Fade-In beim Wechseln von Tabs & Medien */
@keyframes gridFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  animation: gridFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Federnder Checkmark-Pop beim Abhaken von Episoden & Filmen */
@keyframes checkPop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.08); }
}

.ep-check.checked {
  animation: checkPop 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. Favoriten-Stern Pop & Dreh-Feedback */
@keyframes starActivate {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.24) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.favorite-star-btn.active {
  animation: starActivate 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 4. Bento-Dashboard Spotlight-Glow beim Hovern */
.dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}

.dashboard-card:hover::after {
  left: 100%;
}

/* 5. Sanfter Season-Accordion Einblendeffekt */
.season-body.open {
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
