/* Discord Modal Styles - Enhanced */
.discord-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discord-modal-content {
  position: relative;
  background: linear-gradient(145deg, #2c2f33 0%, #23272a 50%, #1e2124 100%);
  margin: 3% auto;
  padding: 0;
  border: 2px solid rgba(114, 137, 218, 0.3);
  border-radius: 25px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0
    rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.discord-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(114, 137, 218, 0.1) 0%,
    transparent 25%,
    transparent 75%,
    rgba(114, 137, 218, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.discord-modal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10002;
}

.discord-modal-close {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.discord-modal-close:hover {
  background: rgba(240, 71, 71, 0.8);
  border-color: rgba(240, 71, 71, 0.5);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(240, 71, 71, 0.4);
}

.discord-profile {
  position: relative;
  z-index: 2;
}

.discord-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  position: relative;
  overflow: hidden;
}

.discord-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: bannerShimmer 3s ease-in-out infinite;
}

@keyframes bannerShimmer {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.discord-avatar-container {
  position: absolute;
  top: 80px;
  left: 25px;
  z-index: 3;
}

.discord-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 6px solid #2c2f33;
  overflow: hidden;
  background: linear-gradient(45deg, #36393f, #2c2f33);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(114, 137, 218, 0.3);
  transition: all 0.3s ease;
}

.discord-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(114, 137, 218, 0.6);
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.discord-status-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #2c2f33;
  background: #43b581;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 4;
  transition: all 0.3s ease;
}

.discord-status-indicator.online {
  background: #43b581;
  animation: statusPulse 2s infinite;
  box-shadow: 0 0 0 3px #2c2f33, 0 0 10px rgba(67, 181, 129, 0.5);
}

.discord-status-indicator.dnd {
  background: #f04747;
  box-shadow: 0 0 0 3px #2c2f33, 0 0 10px rgba(240, 71, 71, 0.5);
}

.discord-status-indicator.idle {
  background: #faa61a;
  box-shadow: 0 0 0 3px #2c2f33, 0 0 10px rgba(250, 166, 26, 0.5);
}

.discord-status-indicator.offline {
  background: #747f8d;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(67, 181, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 181, 129, 0);
  }
}

.discord-info {
  padding: 70px 25px 25px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.discord-username {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-username span:first-child {
  font-family: "Orbitron", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #fff, #b9bbbe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.discord-username span:last-child {
  font-size: 1rem;
  color: #b9bbbe;
  font-weight: 400;
  opacity: 0.8;
}

.discord-bio {
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.1), rgba(114, 137, 218, 0.05));
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #dcddde;
  border-left: 4px solid var(--primary-color);
  border: 1px solid rgba(114, 137, 218, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.discord-bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.discord-activities {
  margin-bottom: 20px;
}

.discord-activity {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.discord-activity:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  transform: translateX(8px) scale(1.02);
  border-color: rgba(114, 137, 218, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.activity-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.discord-activity:hover .activity-icon::before {
  left: 100%;
}

.spotify-activity .activity-icon {
  background: linear-gradient(135deg, #1db954, #1ed760);
  animation: spotifyPulse 2s ease-in-out infinite;
}

.activity-details {
  flex: 1;
}

.activity-name {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.activity-state {
  font-size: 0.85rem;
  color: #b9bbbe;
  opacity: 0.9;
}

.discord-member-since {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #72767d;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.discord-member-since i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Loading State */
.discord-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #b9bbbe;
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.05), rgba(114, 137, 218, 0.02));
  border-radius: 15px;
  margin: 20px;
}

.discord-loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(114, 137, 218, 0.3);
  border-top: 3px solid #7289da;
  border-radius: 50%;
  animation: discordSpin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes discordSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.discord-loading h3 {
  font-family: "Orbitron", monospace;
  color: #7289da;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #7289da, #5865f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Error State */
.discord-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #f04747;
  text-align: center;
  background: linear-gradient(135deg, rgba(240, 71, 71, 0.05), rgba(240, 71, 71, 0.02));
  border-radius: 15px;
  margin: 20px;
  border: 1px solid rgba(240, 71, 71, 0.2);
}

.discord-error i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #f04747;
}

.discord-error h3 {
  font-family: "Orbitron", monospace;
  margin-bottom: 10px;
}

/* Enhanced Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(15px);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Improvements */
@media (max-width: 480px) {
  .discord-modal-content {
    width: 95%;
    margin: 5% auto;
    border-radius: 20px;
  }

  .discord-avatar-container {
    left: 20px;
  }

  .discord-avatar {
    width: 80px;
    height: 80px;
  }

  .discord-info {
    padding: 60px 20px 20px;
  }

  .discord-username span:first-child {
    font-size: 1.4rem;
  }
}

/* Spotify Progress Bar */
.spotify-progress {
  margin-top: 10px;
  padding: 0 15px;
}

.spotify-progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.spotify-progress-fill {
  background: linear-gradient(90deg, #1db954, #1ed760);
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

.spotify-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Add new styles for demo notice and better notifications */

.demo-notice {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ffc107;
}

.demo-notice i {
  font-size: 1rem;
  flex-shrink: 0;
}

.discord-notification {
  font-family: "Rajdhani", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-notification::before {
  content: "ℹ️";
  font-size: 1rem;
}

.discord-notification-success::before {
  content: "✅";
}

.discord-error .btn {
  margin-top: 15px;
  background: linear-gradient(135deg, #f04747, #d73527);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discord-error .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 71, 71, 0.3);
}

/* Enhanced avatar placeholder */
.discord-avatar img[src*="placeholder"] {
  background: linear-gradient(135deg, #7289da, #5865f2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.discord-activity::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(114, 137, 218, 0.1), transparent);
  transition: left 0.5s ease;
}

.discord-activity:hover::before {
  left: 100%;
}

/* Spotify progress animation */
@keyframes spotifyPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Better responsive design */
@media (max-width: 480px) {
  .demo-notice {
    font-size: 0.8rem;
    padding: 10px;
  }

  .discord-notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }

  .discord-notification.show {
    transform: translateY(0);
  }
}
