/* Profile Page Styles */
.profile-section {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff80;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}

.back-link:hover {
  color: var(--accent-color);
}

.back-link svg {
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Profile Card */
.profile-card {
  background-color: #0e0e0e;
  border-radius: 12px;
  overflow: hidden;
}

/* Profile Header */
.profile-header {
  position: relative;
  height: 140px;
}

.profile-banner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #1a1a2e 100%);
}

.profile-avatar-container {
  position: absolute;
  bottom: -50px;
  left: 24px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #0e0e0e;
  background-color: #141414;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background-color: #22c55e;
  border: 3px solid #0e0e0e;
  border-radius: 50%;
}

/* Profile Info */
.profile-info {
  padding: 60px 24px 24px 24px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-name {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name .verified-badge {
  color: var(--accent-color);
}

.profile-rate {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #55eaae;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-rate.robux {
  color: #55eaae;
}

.profile-rate .robux-icon {
  width: 18px;
  height: 18px;
}

.profile-rate span {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff50;
}

.profile-role {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff80;
  margin-bottom: 12px;
}

/* Profile Badges */
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.dev-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-badge svg {
  width: 12px;
  height: 12px;
}

.dev-badge.top-rated {
  background-color: #eae05520;
  color: #eae055;
}

.dev-badge.fast-delivery {
  background-color: #55eaae20;
  color: #55eaae;
}

.dev-badge.advanced {
  background-color: #ea955520;
  color: #ea9555;
}

.dev-badge.rising-star {
  background-color: #ea55bd20;
  color: #ea55bd;
}

/* Profile Rating */
.profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-rating .stars {
  display: flex;
  gap: 2px;
}

.profile-rating .stars svg {
  width: 16px;
  height: 16px;
  fill: #fbbf24;
}

.profile-rating .stars svg.empty-star {
  fill: #ffffff20;
}

.profile-rating .rating-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.profile-rating .review-count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #ffffff60;
}

/* Profile Bio */
.profile-bio {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff80;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* Profile Stats */
.profile-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ffffff60;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hire,
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
}

.btn-hire {
  background-color: var(--accent-color);
  color: var(--accent-text);
}

.btn-hire:hover {
  background-color: var(--accent-hover);
}

.btn-follow {
  background-color: transparent;
  color: #ffffff80;
  border: 1px solid #ffffff20;
}

.btn-follow:hover {
  background-color: #ffffff10;
  color: #ffffff;
}

.btn-follow.following {
  background-color: var(--accent-color);
  color: var(--accent-text);
  border-color: var(--accent-color);
}

.btn-follow.following:hover {
  background-color: var(--accent-hover);
}

/* Profile Details */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 24px 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff80;
}

.detail-item svg {
  color: #ffffff60;
  flex-shrink: 0;
}

/* Portfolio Section */
.profile-portfolio,
.profile-reviews {
  background-color: #0e0e0e;
  border-radius: 12px;
  padding: 24px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 20px 0;
}

/* Portfolio List */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-project {
  display: flex;
  gap: 20px;
  background-color: #141414;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ffffff08;
  transition: border-color 0.2s ease;
}

.portfolio-project:hover {
  border-color: #ffffff14;
}

.project-image {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  flex: 1;
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.project-type {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-color);
  background-color: var(--accent-15);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.project-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #ffffff70;
  line-height: 1.6;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff50;
  background-color: #ffffff08;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #ffffff08;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ffffff50;
}

.project-meta-item svg {
  color: #ffffff40;
}

/* Reviews Section */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  padding: 16px;
  background-color: #141414;
  border-radius: 8px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0e0e0e;
}

.review-info {
  flex: 1;
}

.review-author {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 12px;
  height: 12px;
  fill: #fbbf24;
}

.review-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ffffff40;
}

.review-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff80;
  line-height: 1.6;
  margin: 0;
}

/* Tablet breakpoint */
@media (max-width: 1919px) {
  .profile-section {
    max-width: calc(100% - 40px);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .main-content {
    padding-top: 62px;
  }

  .profile-section {
    max-width: 100%;
  }

  .profile-header {
    height: 120px;
  }

  .profile-avatar-container {
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-info {
    padding: 60px 20px 20px 20px;
    text-align: center;
  }

  .profile-name-row {
    flex-direction: column;
    align-items: center;
  }

  .profile-badges {
    justify-content: center;
  }

  .profile-rating {
    justify-content: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-actions {
    flex-direction: column;
  }

  .btn-hire,
  .btn-follow {
    width: 100%;
    justify-content: center;
  }

  .profile-details {
    padding: 0 20px 20px 20px;
    align-items: center;
  }

  .profile-portfolio,
  .profile-reviews {
    padding: 20px;
  }

  .portfolio-project {
    flex-direction: column;
  }

  .project-image {
    width: 100%;
  }

  .project-content {
    padding: 16px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Small device breakpoint */
@media (max-width: 480px) {
  .profile-name {
    font-size: 20px;
  }

  .profile-rate {
    font-size: 16px;
  }

  .profile-stats {
    gap: 20px;
  }

  .stat-value {
    font-size: 16px;
  }

  .project-title {
    font-size: 15px;
  }

  .project-description {
    font-size: 12px;
  }

  .project-meta {
    gap: 12px;
  }

  .review-header {
    flex-wrap: wrap;
  }

  .review-date {
    width: 100%;
    margin-top: 8px;
  }
}
