/* Badge System - Minimalistisk stil */
/* Overskriver gaming-tema med rent, moderne design */

/* ============================================
   BADGE SECTION - MINIMALISTISK
   ============================================ */

.badges-section {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-lg);
  margin-top: 0;
  margin-bottom: var(--space-xl);
  position: relative;
}

.badges-section::before {
  display: none;
}

.badges-section h3 {
  color: var(--color-text-primary);
  text-shadow: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-md);
}

/* ============================================
   BADGES GRID
   ============================================ */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
  margin-top: 0;
}

/* ============================================
   INDIVIDUAL BADGE ITEMS
   ============================================ */

.badge-item,
.badge-item.pixel-badge {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.badge-item:hover,
.badge-item.pixel-badge:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-text-primary);
}

.badge-item.pixel-badge::after {
  display: none;
}

/* ============================================
   BADGE ICON
   ============================================ */

.badge-icon,
.badge-icon-pixel {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  font-size: 36px;
}

.badge-icon-pixel svg {
  width: 100%;
  height: 100%;
}

.badge-item:hover .badge-icon-pixel,
.badge-item.pixel-badge:hover .badge-icon-pixel {
  filter: none;
  animation: none;
}

/* ============================================
   BADGE TEXT
   ============================================ */

.badge-name,
.badge-item.pixel-badge .badge-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-shadow: none;
  margin-bottom: 0;
  font-family: var(--font-body);
  line-height: 1.3;
}

.badge-requirement {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-shadow: none;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.7;
  margin-top: 0;
}

/* ============================================
   BADGE PLACEHOLDER
   ============================================ */

.badge-placeholder {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-secondary);
  grid-column: 1 / -1;
}

.badge-placeholder .placeholder-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: block;
  opacity: 0.2;
  font-size: 48px;
  filter: none;
}

.badge-placeholder p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-size: var(--text-sm);
}

.badge-hint {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-shadow: none;
  font-weight: 400;
}

/* ============================================
   LEVEL PROGRESS BAR - MINIMALISTISK
   ============================================ */

.level-progress-section {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: var(--space-lg);
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

.level-progress-section h3 {
  color: var(--color-text-primary);
  text-shadow: none;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.progress-bar {
  background: #f0f0f0;
  border: none;
  border-radius: var(--radius-full);
  height: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.progress-fill {
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  position: relative;
  box-shadow: none;
  transition: width 0.4s ease-out;
}

.progress-fill::after {
  display: none;
}

.progress-text {
  color: var(--color-text-secondary);
  text-shadow: none;
  font-weight: 400;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}

/* ============================================
   STAT CARDS - MINIMALISTISK
   ============================================ */

.stat-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: border-color var(--transition-fast);
}

.stat-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-text-primary);
}

.stat-icon {
  filter: none;
  font-size: var(--text-2xl);
  display: none;
}

.stat-value {
  color: var(--color-text-primary);
  text-shadow: none;
  font-weight: 500;
  font-family: var(--font-heading);
}

.stat-label {
  color: var(--color-text-secondary);
  text-shadow: none;
}

/* ============================================
   BADGE GUIDE INFO BOX - MINIMALISTISK
   ============================================ */

.badge-guide {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  box-shadow: none;
}

.badge-guide h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-primary);
  text-shadow: none;
  margin-bottom: var(--space-md);
  text-align: left;
}

.badge-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.badge-category {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.category-icon {
  font-size: var(--text-lg);
  filter: none;
  flex-shrink: 0;
}

.badge-category h5 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  text-shadow: none;
  margin: 0;
  line-height: 1.3;
}

.badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.badge-list li {
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
}

.badge-list li:last-child {
  border-bottom: none;
}

.badge-list strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.badge-tip {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--color-text-secondary);
  text-align: left;
  font-size: var(--text-sm);
  margin: 0;
}

.badge-tip strong {
  color: var(--color-text-primary);
}

/* ============================================
   ACHIEVEMENT POPUP - MINIMALISTISK
   ============================================ */

.achievement-popup {
  position: fixed;
  top: 80px;
  right: -400px;
  width: 320px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: right 0.4s ease-out;
  cursor: pointer;
}

.achievement-popup.show {
  right: var(--space-md);
}

.achievement-popup::before {
  display: none;
}

.achievement-content {
  padding: var(--space-md);
}

.achievement-header {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-primary);
  text-shadow: none;
  margin-bottom: var(--space-sm);
  text-align: left;
  animation: none;
}

.achievement-body {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.achievement-icon svg {
  width: 100%;
  height: 100%;
  filter: none;
}

.achievement-text {
  flex: 1;
}

.achievement-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  text-shadow: none;
  margin-bottom: var(--space-xs);
}

.achievement-description {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: var(--space-sm);
  }

  .badge-icon,
  .badge-icon-pixel {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .badge-categories {
    grid-template-columns: 1fr;
  }

  .achievement-popup {
    width: calc(100% - var(--space-lg));
    right: -100%;
  }

  .achievement-popup.show {
    right: var(--space-sm);
  }
}
