/* استایل‌های خاص صفحه پروفایل */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* هدر و پروفایل */
.header-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  color: white;
  box-shadow: var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  background: var(--secondary-color);
}

.admin-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-info h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-info p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* آمار */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat-card p {
  color: var(--text-light);
  font-weight: 500;
}

/* فرم ویرایش */
.update-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge {
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.form-control:read-only {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--secondary-color);
  border: 2px dashed var(--primary-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: var(--text-color);
}

.file-input-label:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: white;
}

/* پیش‌نمایش آواتار */
.avatar-preview {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-preview img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  object-fit: cover;
  margin-bottom: 10px;
}

.avatar-preview p {
  color: var(--text-light);
}

/* گروه‌های فرم */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* منو */
.menu-bar {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .profile-container {
    padding: 15px;
  }

  .profile-main {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .menu-bar {
    justify-content: center;
  }

  .update-section {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-section {
    padding: 20px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.update-section {
  animation: fadeInUp 0.6s ease-out;
}
