/* Profile List Page Styles */

.profile-list-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Page Header */
.profile-list-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-list-header h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-list-header p {
  font-size: 18px;
  color: var(--muted-fg);
  margin-bottom: 32px;
}

/* Stats */
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.profile-stat-label {
  font-size: 13px;
  color: var(--muted-fg);
  font-weight: 500;
}

/* Search and Filter Card */
.profile-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-search-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.profile-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-form-group input,
.profile-form-group select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: all var(--transition);
}

.profile-form-group input:focus,
.profile-form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.profile-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.profile-search-btn {
  height: 48px;
  padding: 0 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.profile-search-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Profiles Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* Profile Card */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: all var(--transition);
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.profile-card:hover::before {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Profile Avatar */
.profile-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  padding: 3px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-card-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  color: white;
  border: 2px solid var(--primary);
  padding: 3px;
  background-clip: content-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Profile Info */
.profile-card-username {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card-username a {
  color: var(--fg);
  transition: color var(--transition);
}

.profile-card-username a:hover {
  color: var(--primary);
}

.profile-card-fullname {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.profile-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 8px;
}

.profile-card-joined {
  font-size: 12px;
  color: var(--muted-fg);
  margin-bottom: 20px;
}

/* Profile Actions */
.profile-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.profile-card-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.profile-card-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.profile-card-btn--follow {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.profile-card-btn--follow:hover {
  /* background: var(--primary-hover); */
}

.profile-card-btn--unfollow {
  background: #ffffff;
  /* color: white; */
  border-color: var(--error);
}

.profile-card-btn--unfollow:hover {
  background: white;
  color: var(--error);
}

/* Empty State */
.profile-empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 32px;
  text-align: center;
}

.profile-empty-icon {
  font-size: 80px;
  opacity: 0.3;
  margin-bottom: 24px;
}

.profile-empty-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-empty-text {
  font-size: 16px;
  color: var(--muted-fg);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Pagination */
.profile-pagination {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.profile-pagination-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-pagination-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-pagination-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.profile-pagination-btn--active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.profile-pagination-info {
  text-align: center;
  font-size: 14px;
  color: var(--muted-fg);
}

/* Responsive */
@media (max-width: 1280px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-search-form {
    flex-wrap: wrap;
  }
  .profile-form-group {
    flex: 1 1 100%;
  }
  .profile-search-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .profile-list-header h1 {
    font-size: 32px;
  }
  .profile-list-header p {
    font-size: 16px;
  }
  .profile-stats {
    gap: 24px;
  }
  .profile-stat-value {
    font-size: 28px;
  }
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-list-container {
    padding: 0 16px 32px;
  }
  .profile-search-card {
    padding: 20px;
  }
}
