/**
 * Notifications Styles
 */

.notification-dropdown {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 380px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.notification-actions {
  display: flex;
  gap: 8px;
}

.notification-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.notification-actions button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notification-list {
  overflow-y: auto;
  max-height: 400px;
  padding: 8px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item.unread {
  background: rgba(var(--accent-primary-rgb), 0.05);
}

.notification-item.unread:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notification-icon.achievement {
  background: rgba(255, 215, 0, 0.2);
}

.notification-icon.level {
  background: rgba(0, 200, 255, 0.2);
}

.notification-icon.friend {
  background: rgba(0, 255, 100, 0.2);
}

.notification-icon.trade {
  background: rgba(255, 100, 0, 0.2);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notification-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.notification-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Collector's Podium */
.podium-section {
  margin: 32px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.podium-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.podium-header h2::before {
  content: '🏆';
}

.podium-edit-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.podium-edit-btn:hover {
  background: var(--accent-primary);
  color: white;
}

.podium-display {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  padding: 40px 0;
  min-height: 320px;
}

.podium-slot {
  position: relative;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-slot.position-1 {
  order: 2;
  transform: translateY(-30px);
}

.podium-slot.position-2 {
  order: 1;
}

.podium-slot.position-3 {
  order: 3;
}

.podium-rank {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.podium-car {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.podium-car:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.podium-car img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-car.empty {
  border-style: dashed;
  cursor: pointer;
}

.podium-car.empty:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.podium-car.empty::after {
  content: '+';
  font-size: 40px;
  color: var(--text-muted);
}

/* Position-specific glow effects */
.podium-slot.position-1 .podium-car {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  animation: goldGlow 2s ease-in-out infinite alternate;
}

.podium-slot.position-2 .podium-car {
  border-color: #c0c0c0;
  box-shadow: 0 0 25px rgba(192, 192, 192, 0.4), 0 0 50px rgba(192, 192, 192, 0.15);
  animation: silverGlow 2s ease-in-out infinite alternate;
}

.podium-slot.position-3 .podium-car {
  border-color: #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.4), 0 0 40px rgba(205, 127, 50, 0.15);
  animation: bronzeGlow 2s ease-in-out infinite alternate;
}

@keyframes goldGlow {
  0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2); }
  100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.7), 0 0 80px rgba(255, 215, 0, 0.3); }
}

@keyframes silverGlow {
  0% { box-shadow: 0 0 25px rgba(192, 192, 192, 0.4), 0 0 50px rgba(192, 192, 192, 0.15); }
  100% { box-shadow: 0 0 35px rgba(192, 192, 192, 0.6), 0 0 70px rgba(192, 192, 192, 0.25); }
}

@keyframes bronzeGlow {
  0% { box-shadow: 0 0 20px rgba(205, 127, 50, 0.4), 0 0 40px rgba(205, 127, 50, 0.15); }
  100% { box-shadow: 0 0 30px rgba(205, 127, 50, 0.6), 0 0 60px rgba(205, 127, 50, 0.25); }
}

.podium-car-name {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.podium-base {
  width: 100%;
  height: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.podium-base.gold {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.podium-base.silver {
  background: linear-gradient(90deg, #c0c0c0, #e0e0e0);
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.podium-base.bronze {
  background: linear-gradient(90deg, #cd7f32, #daa520);
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

/* Podium Edit Modal */
.podium-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
}

.podium-selector-car {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.podium-selector-car:hover {
  background: var(--bg-hover);
}

.podium-selector-car.selected {
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.podium-selector-car img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.podium-selector-car span {
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 768px) {
  .notification-dropdown {
    width: calc(100vw - 40px);
    right: 10px;
  }
  
  .podium-display {
    gap: 8px;
  }
  
  .podium-slot {
    width: 140px;
  }
  
  .podium-car {
    width: 120px;
    height: 120px;
  }
  
  .podium-rank {
    font-size: 40px;
  }
  
  .podium-car-name {
    font-size: 14px;
  }
}
