/* ===================================
   USER PANEL MODULE
   =================================== */

/* Import submodules */
@import url("./user_panel_submodules/auth_buttons.css");
@import url("./user_panel_submodules/social_section.css");
@import url("./user_panel_submodules/settings_modal.css");

/* Core user panel styles */
.user-panel {
  background: transparent;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 350px;
  text-align: center;
}

.user-panel.hidden {
  display: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info span {
  color: #333;
  font-weight: 500;
}

.settings-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  background: linear-gradient(45deg, #7f8c8d, #6c7b7d);
  transform: translateY(-2px);
}

.logout-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: linear-gradient(45deg, #c0392b, #a93226);
  transform: translateY(-2px);
}

/* Responsive adjustments for user panel */
@media (max-width: 768px) {
  .user-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    max-width: 280px;
    padding: 0.6rem 1rem;
  }
  
  .user-info {
    flex-direction: row;
    gap: 0.5rem;
    text-align: center;
    flex-wrap: nowrap;
  }
  
  .user-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  
  .logout-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .user-panel {
    top: 5px;
    right: 5px;
    max-width: 250px;
    padding: 0.5rem 0.8rem;
  }
  
}