/* Profile Page Styles - Updated to match website design */
.main-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Profile page content */
.profile-hero {
  padding: 0; /* Remove padding since main-content handles it */
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

.profile-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #a56dff;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(165, 109, 255, 0.3);
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #a56dff, #d100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.profile-id {
  color: #ccc;
  font-size: 1rem;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(165, 109, 255, 0.15);
  border-color: rgba(165, 109, 255, 0.3);
}

.action-card h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: #a56dff;
  flex-shrink: 0;
}

.action-card p {
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

/* Bot status styling that matches the action buttons */
.bot-status-text {
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 0 0 1.5rem 0;
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-status-text.joined {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.bot-status-text.not-joined {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.bot-status-text.checking {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Consistent button styling */
.action-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  margin-top: auto;
  min-height: 54px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bot toggle button states */
.action-btn.add-bot {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.action-btn.add-bot:hover:not(:disabled) {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-btn.remove-bot {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.action-btn.remove-bot:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.spotify-btn {
  background: linear-gradient(135deg, #1db954, #1ed760);
  color: white;
}

.spotify-btn:hover {
  background: linear-gradient(135deg, #1ed760, #1aa34a);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.config-btn {
  background: linear-gradient(135deg, #a56dff, #d100ff);
  color: white;
}

.config-btn:hover {
  background: linear-gradient(135deg, #d100ff, #9254ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(165, 109, 255, 0.3);
}

.soundcloud-btn {
  background: linear-gradient(135deg, #ff5500, #ff7700);
  color: white;
}

.soundcloud-btn:hover {
  background: linear-gradient(135deg, #ff7700, #ff5500);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.action-note {
  font-size: 0.85rem;
  color: #ffc107;
  margin-top: 1rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 6px;
}

/* Delete data button */
.delete-data-button {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto 0 auto;
  max-width: 300px;
  text-decoration: none;
}

.delete-data-button:hover {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-info h1 {
    font-size: 2rem;
  }
  
  .profile-actions {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .action-card {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .profile-container {
    padding: 2rem;
  }
  
  .user-info .username {
    display: none;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 1.5rem;
  }
  
  .profile-info h1 {
    font-size: 1.8rem;
  }
  
  .action-card {
    padding: 1.25rem;
  }
}