/* Sidebar Component Styles */

/* === SIDEBAR MAIN STYLES === */

.sidebar {
  width: 280px;
  background: rgba(0, 0, 0, 0.4);
  border: 3px solid #9333ea;
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  max-height: 100%;
  overflow-y: auto;
  flex-shrink: 0;

  /* Custom scrollbar styling */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #a855f7 rgba(0, 0, 0, 0.1); /* Firefox */
}

/* Sidebar scrollbar styling (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
  width: 1px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* === PROFILE SECTION === */

.sidebar-profile-box {
  background: rgba(168, 85, 247, 0.05);
  border: 2px solid #9333ea;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.sidebar-profile {
  text-align: center;
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.profile-picture {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
}

.astro-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  overflow: hidden;
  border: 3px solid #a855f7;
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.6),
    0 0 40px rgba(168, 85, 247, 0.4),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
  animation: profileGlow 3s ease-in-out infinite alternate;
}

.astro-avatar::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, #a855f7, #9333ea, #7c3aed, #a855f7);
  z-index: -1;
  opacity: 0.8;
  animation: borderRotate 4s linear infinite;
}

@keyframes profileGlow {
  0% {
    box-shadow: 
      0 0 20px rgba(168, 85, 247, 0.6),
      0 0 40px rgba(168, 85, 247, 0.4),
      inset 0 0 20px rgba(168, 85, 247, 0.1);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(168, 85, 247, 0.8),
      0 0 60px rgba(168, 85, 247, 0.6),
      inset 0 0 30px rgba(168, 85, 247, 0.2);
  }
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-name {
  margin: 0 0 0.5rem 0;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-description {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

.profile-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.3),
    transparent
  );
  margin: 1rem 0;
}

/* === SOCIAL LINKS === */

.social-links {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #a855f7;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.5rem;
}

.social-link:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  transform: translateX(2px);
}

.social-icon {
  font-size: 1.1rem;
  width: 20px;
  height: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.social-links-centered {
  justify-content: center;
  align-items: center;
}

.social-links-centered .social-link {
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  align-items: center;
  gap: 0.5rem;
}

.social-links-centered .social-link span {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

.social-links-centered .social-link:hover {
  background: rgba(168, 85, 247, 0.15);
  transform: translateY(-1px);
}

/* === SIDEBAR NAVIGATION === */

.sidebar-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-navigation .sidebar-nav-btn + .sidebar-nav-btn {
  margin-top: 0.5rem !important;
}

/* Ensure social buttons also keep spacing */
.action-buttons .action-btn + .action-btn {
  margin-top: 0.5rem !important;
}

.nav-section-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Add spacing above the Navigation heading specifically */
.sidebar-navigation .nav-section-title {
  margin-top: 1rem;
}


/* Make navigation buttons match social buttons */
.sidebar-nav-btn {
  background: #a855f7;
  border: 1px solid #a855f7;
  border-radius: 8px;
  color: white;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.sidebar-nav-btn:hover {
  background: #9333ea;
  border-color: #9333ea;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.sidebar-nav-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.sidebar-nav-btn.logout-btn {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.sidebar-nav-btn.logout-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
}

.nav-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* === ACTION BUTTONS === */

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-btn {
  background: #a855f7;
  border: 1px solid #a855f7;
  border-radius: 8px;
  color: white;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.action-btn:hover {
  background: #9333ea;
  border-color: #9333ea;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.action-btn.active-friends-btn {
  background: #9333ea !important;
  border-color: #9333ea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4) !important;
}

.action-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .sidebar-profile-box {
    padding: 1rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .sidebar-profile-box {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .astro-avatar {
    width: 70px;
    height: 70px;
  }
  
  .profile-name {
    font-size: 1.3rem;
  }
  
  .profile-description {
    font-size: 0.8rem;
    max-width: 180px;
  }
} 