/* Modern People (همراهان) page specific styles */
.people-page .site-header {
  top: 30px;
}

/* Comparison Switcher Bar */
.comparison-banner {
  background: #ffffff;
  border-bottom: 1px solid #e7ece8;
  padding: 12px 20px;
  margin-top: 100px;
  position: relative;
  z-index: 10;
}

.comparison-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.comparison-text {
  font-size: 0.88rem;
  color: #606863;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-toggle {
  display: inline-flex;
  background: #f0f4f1;
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
}

.comparison-link {
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #606863;
  transition: all .2s ease;
  font-weight: 500;
}

.comparison-link:hover {
  color: var(--green);
}

.comparison-link.active {
  background: #ffffff;
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.people-heading {
  background: radial-gradient(circle at 50% 20%, #eaf1eb 0%, #f5f6f4 65%, #edf3ee 100%);
  padding: 180px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.people-heading::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(204, 162, 89, 0.18) 0%, rgba(204, 162, 89, 0) 70%);
  pointer-events: none;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(12, 82, 64, 0.08);
  border: 1px solid rgba(204, 162, 89, 0.35);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(204, 162, 89, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 162, 89, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(204, 162, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 162, 89, 0); }
}

.people-heading h1 {
  font-size: 3rem;
  line-height: 1.5;
  color: var(--green);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.people-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Form Section */
.people-form-section {
  padding: 60px 0 35px;
}

.form-card-container {
  background: #ffffff;
  border: 1px solid rgba(204, 162, 89, 0.25);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 16px 45px rgba(12, 82, 64, 0.07);
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.form-header-area {
  text-align: center;
  margin-bottom: 34px;
}

.form-eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-header-area h2 {
  font-size: 1.85rem;
  color: var(--green);
  margin-bottom: 10px;
}

.form-header-area p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Avatar upload & circular preview */
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #f7faf8 0%, #edf4ef 100%);
  padding: 24px 28px;
  border-radius: 18px;
  margin-bottom: 30px;
  border: 1px dashed rgba(204, 162, 89, 0.7);
  transition: border-color .2s;
}

.avatar-preview-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-preview-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid #ffffff;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(12, 82, 64, 0.15), 0 0 0 2px var(--gold);
  transition: transform .2s;
}

.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #ffffff;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background .2s, transform .15s;
}

.camera-badge svg {
  width: 16px;
  height: 16px;
}

.camera-badge:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.avatar-upload-info {
  flex: 1;
}

.upload-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.avatar-upload-info label.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(12, 82, 64, 0.2);
}

.avatar-upload-info label.upload-btn:hover {
  background: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 82, 64, 0.28);
}

.upload-filename {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-upload-info input[type="file"] {
  display: none;
}

.avatar-upload-info .upload-hint {
  font-size: 0.82rem;
  color: #777;
  margin-top: 10px;
  line-height: 1.6;
}

/* Form inputs layout */
.people-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--green);
}

.required-star {
  color: #c5221f;
  margin-right: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 16px;
  border: 1.5px solid #e2e8e4;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  color: inherit;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(204, 162, 89, 0.22);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
  font-size: 0.9rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.btn-submit-member {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #cca259 0%, #b88d44 100%);
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(204, 162, 89, 0.38);
}

.btn-submit-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(204, 162, 89, 0.5);
  background: linear-gradient(135deg, #d4ab65 0%, #be9249 100%);
}

.btn-submit-member .btn-arrow {
  transition: transform .2s;
}

.btn-submit-member:hover .btn-arrow {
  transform: translateX(-4px);
}

.form-feedback-msg {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  display: none;
}

.form-feedback-msg.success {
  display: inline-block;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.form-feedback-msg.error {
  display: inline-block;
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* Directory Section */
.directory-section {
  padding: 40px 0 100px;
}

.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 228, 0.9);
  border-radius: 18px;
  padding: 14px 22px;
  margin-bottom: 40px;
  box-shadow: 0 6px 25px rgba(12, 82, 64, 0.05);
}

.directory-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 270px;
  background: #f5f7f5;
  border-radius: 12px;
  padding: 10px 16px;
  border: 1px solid #e4eae5;
  transition: border-color .2s, box-shadow .2s;
}

.directory-search-box:focus-within {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(204, 162, 89, 0.15);
}

.directory-search-box svg {
  width: 20px;
  height: 20px;
  color: #777;
  flex-shrink: 0;
}

.directory-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
  outline: none;
}

.directory-filter-tabs {
  display: flex;
  background: #edf3ef;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.filter-tab .tab-icon {
  font-size: 0.95rem;
}

.filter-tab:hover {
  color: var(--green);
}

.filter-tab.active {
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.directory-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  background: #fcf8f0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(204, 162, 89, 0.3);
}

/* Modern Member Cards Grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.member-card {
  background: #ffffff;
  border: 1px solid #e8ede9;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(12, 82, 64, 0.06);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s;
  position: relative;
}

.member-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(12, 82, 64, 0.12);
  border-color: rgba(204, 162, 89, 0.6);
}

.member-card.new-highlight {
  animation: pulseNewCard 2.5s ease-out;
}

@keyframes pulseNewCard {
  0% {
    box-shadow: 0 0 0 5px var(--gold);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 8px 30px rgba(12, 82, 64, 0.06);
    transform: scale(1);
  }
}

/* Card Header Banner */
.member-card-banner {
  height: 72px;
  background: linear-gradient(135deg, #0c5240 0%, #15624d 60%, #cca259 100%);
  position: relative;
}

.member-card-body {
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

/* Circular Avatar with Floating Frame */
.member-avatar-anchor {
  position: relative;
  margin-top: -50px;
  margin-bottom: 14px;
}

.member-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(12, 82, 64, 0.16);
  background: #ffffff;
  transition: transform .2s;
}

.member-card:hover .member-card-avatar {
  transform: scale(1.04);
}

.member-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.online-dot {
  position: absolute;
  bottom: 4px;
  left: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Name and Gender Badge */
.member-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  width: 100%;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  margin: 0;
}

.gender-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
}

.gender-badge.female {
  background: #fdf0f4;
  color: #b0305c;
  border: 1px solid #f8c9d8;
}

.gender-badge.male {
  background: #edf4fc;
  color: #1a73e8;
  border: 1px solid #c8dafc;
}

.gender-badge.other {
  background: #f5f6f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}

/* Meta Line */
.member-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Modern Quote Box */
.member-quote-box {
  background: #f9fbf9;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #edf2ee;
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-bio {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3b4b41;
  margin: 0;
  font-style: normal;
}

.quote-icon {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  opacity: 0.8;
}

/* Interest Tag */
.member-interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204, 162, 89, 0.12);
  color: #8c6a28;
  border: 1px solid rgba(204, 162, 89, 0.3);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 700;
}

.member-join-date {
  font-size: 0.78rem;
  color: #94a399;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.directory-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px dashed #d5ded8;
  display: none;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.directory-empty h3 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 6px;
}

.directory-empty p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .people-heading {
    padding: 160px 0 45px;
  }

  .people-heading h1 {
    font-size: 2.2rem;
  }

  .people-stats {
    flex-direction: column;
    gap: 14px;
    border-radius: 20px;
    padding: 20px 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .form-card-container {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .people-form-grid {
    grid-template-columns: 1fr;
  }

  .avatar-upload-row {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .upload-btn-group {
    justify-content: center;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit-member {
    width: 100%;
    justify-content: center;
  }

  .directory-toolbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .directory-filter-tabs {
    justify-content: center;
  }
}
