/* profile.css - پروفایل کاربر (حرفه‌ای و آرام) */

.profile-info {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

.profile-avatar-large {
  width: 5rem;
  height: 5rem;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 163, 127, 0.15);
}

.profile-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: right;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* دکمه‌های داخل پروفایل */
.profile-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.profile-actions .btn-secondary {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 2em;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.profile-actions .btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

/* فرم تغییر رمز */
.profile-form {
  margin-top: 1rem;
}

.profile-form .form-group {
  margin-bottom: 1rem;
}

.profile-form .form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.profile-form .form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.profile-form .form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: none;
}

.profile-form .btn-primary {
  width: 100%;
  padding: 0.7rem;
  border-radius: 2em;
  background: var(--accent-color);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.profile-form .btn-primary:hover {
  background: var(--accent-hover);
}

/* پیام‌های بازخورد */
.profile-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.profile-message.success {
  color: #059669;
}

.profile-message.error {
  color: #e53e3e;
}
