/* المواصفات الوظيفية للمحرك — ملف 02 */

.spec-page {
  padding: 24px 0 64px;
}

.spec-hero {
  background: linear-gradient(128deg, #0a1628 0%, #12263f 45%, #1a3a5c 100%);
  color: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  margin-bottom: 18px;
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.35);
}

.spec-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: #ffffff !important;
}

.spec-hero p {
  margin: 0 0 14px;
  max-width: 75ch;
  line-height: 1.75;
  color: rgba(255, 245, 247, 0.96) !important;
  font-size: 15px;
}

.spec-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.spec-chain span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 800;
}

.spec-chain i {
  opacity: 0.65;
  font-size: 10px;
}

.spec-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.spec-kpi {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.spec-kpi strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #0f3d6e;
}

.spec-kpi span {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.spec-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.spec-toolbar input {
  flex: 1 1 220px;
  min-height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
}

.spec-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-filters button {
  border: 1px solid #dbe3ee;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  color: #334155;
}

.spec-filters button.is-active {
  background: #0f3d6e;
  border-color: #0f3d6e;
  color: #fff;
}

.spec-section-head {
  margin: 22px 0 12px;
}

.spec-section-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.spec-section-head p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.spec-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.spec-phase {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 12px 14px;
}

.spec-phase strong {
  display: block;
  font-size: 11px;
  color: #0f3d6e;
  margin-bottom: 4px;
}

.spec-phase h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.spec-phase ul {
  margin: 0;
  padding: 0 16px 0 0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

.spec-list {
  display: grid;
  gap: 14px;
}

.spec-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.spec-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.spec-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.spec-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
}

.spec-badge--done {
  background: #dcfce7;
  color: #166534;
}

.spec-badge--partial {
  background: #fef3c7;
  color: #92400e;
}

.spec-badge--missing {
  background: #fee2e2;
  color: #991b1b;
}

.spec-goal {
  margin: 0 0 12px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.spec-grid div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
}

.spec-grid dt {
  font-size: 11px;
  font-weight: 900;
  color: #0f3d6e;
  margin-bottom: 2px;
}

.spec-grid dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.55;
}

.spec-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #dbe3ee;
  color: #0f172a;
  background: #fff;
}

.spec-actions a.primary {
  background: #0f3d6e;
  border-color: #0f3d6e;
  color: #fff;
}

@media (max-width: 640px) {
  .spec-hero {
    padding: 22px 16px;
  }
}
