/* Einklappbare Filter, Games-Tracker und Screenshot-Galerie */

/* ---------- Einklappbare Filter-Leisten (Status / Plattform / Genre) ---------- */
.filter-group-line {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  width: 100%;
  gap: 8px;
}

.filter-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-active-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 1px 7px;
  border-radius: 999px;
}

.filter-chevron {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: bold;
}

.filter-group-header:hover .filter-chevron,
.filter-group-header:hover .filter-group-label {
  color: var(--text);
}

.filter-group-content {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ---------- Games Tracker Styles & Platforms ---------- */

.badge-platform {
  background: rgba(147, 51, 234, 0.12) !important;
  color: #c084fc !important;
  border-color: rgba(147, 51, 234, 0.35) !important;
  font-weight: 700 !important;
}

.badge-playtime {
  background: rgba(245, 197, 24, 0.1) !important;
  color: var(--accent) !important;
  border-color: rgba(245, 197, 24, 0.3) !important;
}

.badge-metacritic {
  background: rgba(102, 204, 51, 0.15) !important;
  color: #66cc33 !important;
  border-color: rgba(102, 204, 51, 0.4) !important;
  font-weight: 800 !important;
}

/* Mastered Trophy Corner Badge */
.mastered-badge-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f5c518 0%, #d97706 100%);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* ---------- Achievement Fresh Highlight & Game Detail Expansion ---------- */

/* Goldenes Pulsieren für frische Erfolge */
.achievement-card.new-unlocked {
  border-color: var(--accent) !important;
  box-shadow: 0 0 16px var(--accent-glow), inset 0 0 12px rgba(245, 197, 24, 0.08) !important;
  animation: glowPulse 2.2s infinite ease-in-out;
}
.achievement-new-badge {
  background: linear-gradient(135deg, #f5c518 0%, #d97706 100%);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes glowPulse {
  0%, 100% { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
  50% { border-color: #ffd700; box-shadow: 0 0 24px rgba(255, 215, 0, 0.45); }
}

/* Screenshot Galerie */
.game-screenshots-wrap {
  margin-top: 24px;
}
.game-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.game-screenshot-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-screenshot-thumb:hover {
  transform: scale(1.04);
  border-color: var(--accent);
}

/* Persönlicher Tracking-Kasten */
.game-user-tracker-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%), var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-tracker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .game-tracker-grid { grid-template-columns: 1fr; }
}

.game-notes-area {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.game-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
