/* =============================================
   صفحات کارفرمایان و پروژه‌ها
   ============================================= */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}


/* ---------------------------------------------
   سربرگ کارفرما
   --------------------------------------------- */

.employer-hero {
  width: min(560px, 92%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.employer-logo {
  width: min(190px, 62%);
  height: auto;
  object-fit: contain;
  border-radius: var(--r-lg);
  margin-bottom: 8px;
}

.employer-hero h1 {
  margin: 0;
  font-size: clamp(16pt, 2.6vw, 22pt);
  line-height: 1.45;
}

.employer-hero p {
  margin: 0;
  color: var(--text-2);
  font-size: 12pt;
}


/* ---------------------------------------------
   شبکه پروژه‌ها
   --------------------------------------------- */

.projects {
  width: min(1200px, 92%);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: var(--r-lg);
  cursor: default;
  text-align: center;
}

.project-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.project-card p {
  margin: 0;
  font-size: 11.5pt;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text);
}

.project-client {
  font-size: 10pt;
  line-height: 1.7;
  color: var(--text-3);
  margin-top: auto;
}

.project-status {
  padding: 3px 15px;
  border-radius: var(--r-pill);
  font-size: 9.5pt;
  font-weight: 700;
  line-height: 1.9;
  white-space: nowrap;
}

.project-status.done {
  background: rgba(16, 185, 129, 0.18);
  color: #0b6b4f;
}

.project-status.ongoing {
  background: rgba(37, 99, 235, 0.18);
  color: #1b4ed8;
}

:root[data-theme="dark"] .project-status.done {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

:root[data-theme="dark"] .project-status.ongoing {
  background: rgba(59, 130, 246, 0.24);
  color: #93c5fd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project-status.done {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
  }

  :root:not([data-theme="light"]) .project-status.ongoing {
    background: rgba(59, 130, 246, 0.24);
    color: #93c5fd;
  }
}


@media (max-width: 720px) {
  .projects {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .project-card {
    padding: 0.9rem 0.7rem 1rem;
  }

  .project-card img {
    width: 64px;
    height: 64px;
  }

  .project-card p {
    font-size: 10pt;
  }

  .project-client {
    font-size: 9pt;
  }
}
