/**
 * Community Badges CSS
 * Styling for community badges, badge showcase, and related components
 */

/* Badge System Container */
.badge-system-container {
  width: 100%;
  margin: 0 auto;
}

/* Badge Grid Layout */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Badge Categories Navigation */
.badge-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.badge-category-btn {
  background: var(--card-bg, #23272e);
  color: var(--text-color, #e0e0e0);
  border: 1px solid var(--border-color, #333);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
}

.badge-category-btn:hover,
.badge-category-btn.active {
  background: var(--accent-color, #667eea);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Individual Badge Card */
.badge-card {
  background: var(--card-bg, #23272e);
  border-radius: 15px;
  border: 1px solid var(--border-color, #333);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.badge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.badge-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.badge-icon-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2em;
  margin-bottom: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.badge-content {
  padding: 20px;
  text-align: center;
}

.badge-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.badge-description {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.4;
}

.badge-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.75em;
  margin-bottom: 10px;
}

.badge-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color, #333);
  font-size: 0.85em;
}

.badge-tier {
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-points {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Badge Tier Styles */
.badge-tier-bronze .badge-icon-container {
  background: linear-gradient(135deg, #CD7F32 0%, #e9b380 100%);
}

.badge-tier-silver .badge-icon-container {
  background: linear-gradient(135deg, #C0C0C0 0%, #e9e9e9 100%);
}

.badge-tier-gold .badge-icon-container {
  background: linear-gradient(135deg, #FFD700 0%, #FFEB99 100%);
}

.badge-tier-platinum .badge-icon-container {
  background: linear-gradient(135deg, #E5E4E2 0%, #FFFFFF 100%);
}

.badge-tier-diamond .badge-icon-container {
  background: linear-gradient(135deg, #B9F2FF 0%, #E1FFFD 100%);
}

.badge-tier-special .badge-icon-container {
  background: linear-gradient(135deg, #FF00FF 0%, #FF69B4 100%);
}

/* User Badges Display */
.user-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.user-badge {
  display: flex;
  align-items: center;
  background: var(--card-bg, #23272e);
  border: 1px solid var(--border-color, #333);
  border-radius: 50px;
  padding: 3px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.user-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.user-badge .badge-details {
  padding: 0 10px 0 5px;
  max-width: 150px;
}

.user-badge .badge-name {
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-badge .badge-category {
  font-size: 0.7em;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-more-indicator {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted, #999);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge Statistics Section */
.badge-statistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.badge-stat-card {
  background: var(--card-bg, #23272e);
  border: 1px solid var(--border-color, #333);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.badge-stat-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.badge-stat-number {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 5px;
}

.badge-stat-label {
  font-size: 0.9em;
  opacity: 0.7;
}

/* Recent Badge Awards Section */
.recent-badge-awards {
  margin: 20px 0;
}

.badge-award-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--card-bg, #23272e);
  border: 1px solid var(--border-color, #333);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.badge-award-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-award-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.badge-award-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.badge-award-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.badge-award-details {
  flex: 1;
}

.badge-award-title {
  font-weight: 500;
  margin-bottom: 3px;
}

.badge-award-description {
  font-size: 0.85em;
  opacity: 0.8;
}

.badge-award-time {
  font-size: 0.8em;
  opacity: 0.7;
  white-space: nowrap;
}

/* Community Badges and Rewards Section for Community Page */
.community-badges-section {
  background: var(--card-bg, #23272e);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #333);
  margin-bottom: 30px;
}

.badges-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.badge-card-compact {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.badge-title {
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 5px;
}

.badge-description {
  font-size: 0.8em;
  opacity: 0.7;
  line-height: 1.4;
}

/* Profile Badge Display */
.profile-badges {
  margin: 20px 0;
}

.profile-badges-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.profile-badges-title {
  font-size: 1.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-all-badges {
  font-size: 0.9em;
  color: var(--accent-color, #667eea);
  text-decoration: none;
}

/* Top Badge Holders */
.top-badge-holders {
  margin: 20px 0;
}

.badge-holder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border-color, #333);
}

.badge-holder-item:last-child {
  border-bottom: none;
}

.badge-holder-rank {
  font-weight: 600;
  font-size: 1.2em;
  width: 30px;
  text-align: center;
}

.badge-holder-info {
  flex: 1;
}

.badge-holder-name {
  font-weight: 500;
}

.badge-holder-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85em;
  margin-top: 3px;
}

.badge-holder-count,
.badge-holder-level {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Badge Showcase (featured view) */
.badge-showcase {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.badge-showcase-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
}

.badge-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.badge-showcase-item {
  text-align: center;
}

.badge-showcase-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 10px;
}

.badge-showcase-name {
  font-size: 0.8em;
  margin-bottom: 5px;
}

/* Badge Glow Effects */
@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
}

.badge-tier-diamond .badge-icon-container,
.badge-tier-special .badge-icon-container {
  animation: badgeGlow 3s infinite;
}

/* Community badges list improvements */
.community-badges-list {
  margin: 15px 0;
}

.badges-list {
  margin: 0;
  padding: 0;
}

.badge-award-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  border: 1px solid var(--border-color, #333);
  background-color: var(--card-bg, #23272e);
}

.badge-award-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--card-hover-bg, #2a2e35);
}

.badge-award-details {
  flex: 1;
  overflow: hidden;
  margin-left: 15px;
  margin-right: 15px;
}

.badge-award-title {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.badge-award-title .username,
.badge-award-title .badge-name {
  font-weight: 600;
}

.badge-award-time {
  font-size: 0.8rem;
  color: var(--muted-color, #888);
}

.badge-award-icon {
  width: 36px;
  height: 36px;
  min-width: 36px; /* Prevents shrinking */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px; /* Prevents shrinking */
  border-radius: 50%;
  background-color: var(--accent-color, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  overflow: hidden;
}

.user-avatar .user-initial {
  font-size: 1.2rem;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge statistics improvements */
.badge-statistics {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.badge-stat-card {
  background: var(--card-bg, #23272e);
  border-radius: 10px;
  padding: 15px;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--border-color, #333);
  transition: all 0.2s ease;
}

.badge-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge-stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.badge-stat-title {
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-stat-label {
  font-size: 0.8rem;
  color: var(--muted-color, #888);
}

/* Badge showcase improvements */
.community-badges-section {
  background: var(--section-bg, rgba(0, 0, 0, 0.2));
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  border: 1px solid var(--border-color, #333);
}

.section-description {
  margin: 10px 0 20px;
  color: var(--text-color, #e0e0e0);
  max-width: 800px;
}

.badges-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.badge-card-compact {
  background: var(--card-bg, #23272e);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color, #333);
  position: relative;
  overflow: hidden;
}

.badge-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced badge hover effects */
.badge-card-compact {
  background: var(--card-bg, #23272e);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color, #333);
  position: relative;
  overflow: hidden;
}

.badge-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Badge tooltip on hover */
.badge-card-compact::after {
  content: attr(data-tier) + " Tier: " + attr(data-description);
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  font-size: 0.9em;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 20;
  pointer-events: none;
  text-align: center;
  border-top: 1px solid var(--border-color, #333);
}

.badge-card-compact:hover::after {
  bottom: 0;
  opacity: 1;
}

/* New badge hover details feature */
.badge-hover-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 5;
  text-align: left;
  border-top: 1px solid var(--accent-color, #667eea);
}

.badge-card-compact:hover .badge-hover-details {
  transform: translateY(0);
}

.badge-detail-tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-tier-bronze .badge-detail-tier {
  color: #cd7f32;
  background: rgba(205, 127, 50, 0.2);
}

.badge-tier-silver .badge-detail-tier {
  color: #c0c0c0;
  background: rgba(192, 192, 192, 0.2);
}

.badge-tier-gold .badge-detail-tier {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
}

.badge-tier-platinum .badge-detail-tier {
  color: #e5e4e2;
  background: rgba(229, 228, 226, 0.2);
}

.badge-tier-diamond .badge-detail-tier {
  color: #b9f2ff;
  background: rgba(185, 242, 255, 0.2);
}

.badge-tier-special .badge-detail-tier {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.badge-detail-requirement {
  font-size: 0.8rem;
  margin-top: 5px;
  color: var(--muted-color, #888);
}

.badge-content {
  width: 100%;
  margin-top: 15px;
}

.badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.badge-tier-bronze .badge-icon {
  box-shadow: 0 5px 15px rgba(205, 127, 50, 0.3);
}

.badge-tier-silver .badge-icon {
  box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
}

.badge-tier-gold .badge-icon {
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.badge-tier-platinum .badge-icon {
  box-shadow: 0 5px 15px rgba(229, 228, 226, 0.4);
}

.badge-tier-diamond .badge-icon {
  box-shadow: 0 5px 15px rgba(185, 242, 255, 0.5);
  animation: badgeGlow 2s infinite alternate;
}

.badge-tier-special .badge-icon {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
  animation: badgeGlow 3s infinite alternate;
}

.badge-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 15px 0 8px;
  color: var(--heading-color, white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-description {
  font-size: 0.85rem;
  color: var(--text-color, #e0e0e0);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 60px; /* Fixed height to maintain consistency */
}

.badge-tier-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tier-bronze .badge-tier-indicator {
  background: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
}

.badge-tier-silver .badge-tier-indicator {
  background: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
}

.badge-tier-gold .badge-tier-indicator {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.badge-tier-platinum .badge-tier-indicator {
  background: rgba(229, 228, 226, 0.2);
  color: #e5e4e2;
}

.badge-tier-diamond .badge-tier-indicator {
  background: rgba(185, 242, 255, 0.2);
  color: #b9f2ff;
}

.badge-tier-special .badge-tier-indicator {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.badges-section-footer {
  text-align: center;
  margin-top: 30px;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted-color, #888);
  background: var(--card-bg, rgba(35, 39, 46, 0.5));
  border-radius: 10px;
  margin: 20px 0;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .badge-statistics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-badge .badge-details {
    max-width: 100px;
  }
  
  .badges-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .badges-grid {
    grid-template-columns: 1fr;
  }
  
  .badge-statistics {
    grid-template-columns: 1fr;
  }
  
  .badge-award-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .badge-award-user {
    margin-bottom: 10px;
  }
  
  .badges-showcase {
    grid-template-columns: 1fr;
  }
  
  .badge-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} 

/* Large badge card hover effects */
.badge-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.badge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.badge-card .badge-hover-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-card:hover .badge-hover-details {
  transform: translateY(0);
}

.badge-detail-earned {
  margin-top: 15px;
  font-weight: 600;
  color: var(--accent-color, #667eea);
  background: rgba(102, 126, 234, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

/* Improve text containment */
.badge-title, .badge-name, h3.badge-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.badge-description, p.badge-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 60px; /* ~3 lines of text */
}

.badge-detail-description {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Animated fade-in for hover details */
@keyframes fadeInDetails {
  from { opacity: 0; }
  to { opacity: 1; }
}

.badge-hover-details {
  animation: fadeInDetails 0.3s ease forwards;
}

/* Badge earned indicator enhancements */
.badge-earned-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color, #667eea);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* Profile Badge Dropdown Styles */
.community-badges-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.badges-dropdown-btn {
  background: var(--card-bg, rgba(35, 39, 46, 0.8));
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-color, #e0e0e0);
}

.badges-dropdown-btn:hover {
  background: var(--card-bg-hover, rgba(35, 39, 46, 1));
  border-color: var(--accent-color, #667eea);
}

.badges-preview {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-preview-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-more-indicator {
  background: var(--accent-color, #667eea);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.badges-dropdown-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.badges-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg, rgba(35, 39, 46, 0.95));
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.community-badges-dropdown:hover .badges-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color, #333);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color, #e0e0e0);
}

.badge-count {
  font-size: 0.8rem;
  color: var(--muted-color, #888);
  background: var(--accent-color, #667eea);
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
}

.badges-list {
  padding: 10px;
}

.badge-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.badge-dropdown-item:hover {
  background: var(--card-bg-hover, rgba(35, 39, 46, 0.5));
}

.badge-dropdown-item .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.badge-dropdown-item .badge-info {
  flex: 1;
  min-width: 0;
}

.badge-dropdown-item .badge-name {
  font-weight: 600;
  color: var(--text-color, #e0e0e0);
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.badge-dropdown-item .badge-description {
  font-size: 0.8rem;
  color: var(--muted-color, #888);
  margin-bottom: 4px;
  line-height: 1.3;
}

.badge-dropdown-item .badge-earned-date {
  font-size: 0.7rem;
  color: var(--accent-color, #667eea);
  font-weight: 500;
}

.dropdown-footer {
  padding: 10px 15px;
  border-top: 1px solid var(--border-color, #333);
  text-align: center;
}

.view-all-badges-link {
  color: var(--accent-color, #667eea);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.view-all-badges-link:hover {
  color: var(--accent-color-hover, #5a6fd8);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .community-badges-dropdown {
    margin-left: 5px;
  }
  
  .badges-dropdown-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .badge-preview-item {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .badges-dropdown-content {
    min-width: 280px;
    max-height: 350px;
  }
} 