/* ------------ MAIN ------------ */

/* Profile Container */
.profile-container {
  background-color: #f5f5f8;
  position: relative;
  padding-bottom: 60px;
}

/* Profile Header */
.profile-header {
  height: 300px;
  background-color: #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
  z-index: 1;
}

.profile-header h1 {
  color: #1d97a0;
  opacity: 0.5;
  font-size: 32px;
  font-weight: 700;
}

.profile-content-wrapper {
  position: relative;
  z-index: 2;
  margin-top: -90px;
}

/* Profile Card */
.profile-card {
  background-color: white;
  border-radius: 0px;
  padding: 30px;
  margin-bottom: 30px;
}

.profile-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 0%;
  background-color: #fbbd1300;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 500;
  margin-right: 30px;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0%;
}

.profile-details {
  flex: 1;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Новый стиль для выравнивания имени пользователя и звездочки */
.user-name-display {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.admin-star {
    color: #fbbd13; /* Золотой цвет для звездочки */
    font-size: 1em; /* Немного больше, чем обычный текст */
    margin-left: 5px;
    transform: translateY(-0.15em); /* Смещаем вверх для лучшего выравнивания */
}

/* Custom Admin Tooltip */
.admin-tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #e3e3e3;
    color: #1D98A1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none; /* Allows clicks on elements below the tooltip */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transform: translateY(-5px); /* Initial slight offset */
}

.admin-tooltip.show {
    opacity: 1;
    transform: translateY(0); /* Animate to normal position */
}

.profile-tag {
  font-size: 20px;
  font-weight: 700;
  color: #1d97a0;
  margin-bottom: 20px;
}

.profile-stats {
  display: flex;
  gap: 50px;
}

.stat-item {
  font-size: 20px;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* Unified button styles */
.back-to-profile,
.edit-profile {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid #868686;
  border-radius: 5px;
  cursor: pointer;
  background-color: white;
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.back-to-profile:hover,
.edit-profile:hover {
  background-color: #f5f5f8;
}

.back-to-profile img,
.edit-profile img {
  width: 28px;
  height: 28px;
  margin-left: 10px;
}

/* Profile Tabs - Improved Version */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 30px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.tab {
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.tab.active {
  color: #1d97a0;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1d97a0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 0;
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.empty-state p {
  font-size: 20px;
  font-weight: 500;
  color: #555;
}

/* Achievements */
.achievements {
  background-color: white;
  border-radius: 0px;
  padding: 30px;
}

.achievements h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .profile-header {
    height: 200px;
    margin-bottom: 20px;
  }
  
  .profile-header h1 {
    font-size: 24px;
  }
  
  .profile-content-wrapper {
    margin-top: -60px;
  }
  
  .profile-card {
    padding: 20px;
  }
  
  .profile-info {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .profile-details {
    width: 100%;
    text-align: center;
  }
  
  .profile-name {
    width: 100%;
    font-size: 28px;
    margin-bottom: 5px;
    justify-content: center;
    align-items: center;
  }
  
  .profile-tag {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .profile-stats {
    gap: 30px;
    justify-content: center;
  }
  
  .stat-item {
    font-size: 18px;
  }
  
  .profile-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .back-to-profile,
  .edit-profile {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  /* Unified button styles for mobile */
  .back-to-profile,
  .edit-profile {
    padding: 8px 15px;
    font-size: 16px;
  }
  
  .back-to-profile img,
  .edit-profile img {
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }
  
  /* Improved Tabs for Mobile */
  .profile-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
  }
  
  .profile-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .tab {
    padding: 10px 15px;
    font-size: 16px;
  }
  
  .empty-state h2 {
    font-size: 20px;
  }
  
  .empty-state p {
    font-size: 16px;
  }
  
  .achievements {
    padding: 20px;
  }
  
  .achievements h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .profile-header {
    height: 150px;
    margin-bottom: 10px;
  }
  
  .profile-header h1 {
    font-size: 20px;
  }
  
  .profile-content-wrapper {
    margin-top: -40px;
  }
  
  .profile-card {
    padding: 15px;
  }
  
  .profile-info {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .profile-details {
    text-align: center;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .profile-tag {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .profile-stats {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    font-size: 14px;
  }
  
  .profile-actions {
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
  }
  
  /* Unified button styles for mobile */
  .back-to-profile,
  .edit-profile {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .back-to-profile img,
  .edit-profile img {
    width: 20px;
    height: 20px;
    margin-left: 6px;
  }
  
  /* Improved Tabs for Mobile */
  .profile-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
  }
  
  .profile-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .tab {
    padding: 10px 10px;
    font-size: 14px;
  }
  
  .empty-state h2 {
    font-size: 18px;
  }
  
  .empty-state p {
    font-size: 14px;
  }
  
  .achievements {
    padding: 15px;
  }
  
  .achievements h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}