/* Dual Presence Cards */
.presence-container {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  width: 100%;
}

.presence-card {
  flex: 1;
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.music-card {
  flex: 1;
  display: none;
  align-items: center;
  gap: 14px;
  background: hex(1C1C1E);
  padding: 14px 16px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 27, 27, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay */
.presence-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.presence-card:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.presence-card:hover::before {
  opacity: 1;
}

.presence-avatar,
.presence-cover {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.presence-card:hover .presence-avatar,
.presence-card:hover .presence-cover {
  border-color: var(--primary-color, #00ced1);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb, 0, 206, 209), 0.4);
  transform: scale(1.05);
}

.presence-cover {
  border-radius: 12px;
}

.presence-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.presence-name {
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.presence-card:hover .presence-name {
  color: var(--primary-color, #00ced1);
}

.presence-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  transition: color 0.3s ease;
}

.presence-card:hover .presence-status {
  color: rgba(255, 255, 255, 0.85);
}

/* Music Progress Bar */
.music-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}

.music-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.music-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #fa233b,
    color-mix(in srgb, #fa233b 80%, white)
  );
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(250, 35, 59, 0.5);
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .presence-container {
    gap: 12px;
  }

  .presence-card {
    padding: 12px 14px;
  }

  .presence-avatar,
  .presence-cover {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 430px) {
  .presence-container {
    flex-direction: column;
    gap: 10px;
  }

  .presence-card {
    padding: 12px 14px;
  }

  .presence-avatar,
  .presence-cover {
    width: 44px;
    height: 44px;
  }

  .presence-name {
    font-size: 13px;
  }

  .presence-status {
    font-size: 11px;
  }

  .music-progress-bar {
    height: 3px;
  }
}

/* Theme-specific enhancements */
.hacker-theme .presence-card {
  border-color: rgba(34, 197, 94, 0.2);
}

.rain-theme .presence-card {
  border-color: rgba(30, 58, 138, 0.2);
}

.anime-theme .presence-card {
  border-color: rgba(220, 38, 38, 0.2);
}

.car-theme .presence-card {
  border-color: rgba(234, 179, 8, 0.2);
}

/* Music Card (Apple Music Style) */
.card.music {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 340px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
}

.cover-wrapper {
  flex-shrink: 0;
}

.cover {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.artist {
  font-size: 0.9rem;
  color: #777;
  margin: 0 0 10px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.progress-bar {
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fa2a55, #ff4d4d);
  transition: width 0.2s linear;
}

/* Responsive */
@media (max-width: 640px) {
  .presence-container {
    flex-direction: column;
    align-items: center;
  }
}
