/* ============================================================
   Plastinject — Component Styles (light theme)
   Companion to main.css
   ============================================================ */

/* ---- Solution Grid ---- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) { .solution-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .solution-grid { grid-template-columns: 1fr; } }

.solution-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.solution-card:hover {
  box-shadow: 0 8px 32px rgba(26,61,92,0.10);
  transform: translateY(-3px);
  border-color: var(--color-secondary);
}

.solution-card-img {
  height: 200px;
  background: var(--color-surface-2);
  overflow: hidden;
  position: relative;
}
.solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solution-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.solution-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.solution-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

/* ---- Product List ---- */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1023px) { .product-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .product-list { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms, box-shadow 200ms;
}
.product-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 4px 20px rgba(26,61,92,0.08);
}

.product-card-img {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }

.product-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.product-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.product-card-specs {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-body);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.product-card-spec-row {
  display: flex;
  justify-content: space-between;
}
.product-card-spec-row span:first-child { color: var(--color-text-muted); }
.product-card-spec-row span:last-child { font-weight: 600; color: var(--color-text-primary); }

/* ---- Selection Table ---- */
.selection-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.selection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: var(--color-surface);
}
.selection-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.selection-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-body);
  vertical-align: middle;
}
.selection-table tbody tr:nth-child(even) td { background: #F9FAFB; }
.selection-table tbody tr:hover td { background: rgba(26,61,92,0.04); }
.selection-table tr:last-child td { border-bottom: none; }
.selection-table td:first-child {
  font-weight: 700;
  color: var(--color-primary);
}
.selection-table .check { color: var(--color-cert); font-weight: 700; }
.selection-table .dash  { color: var(--color-text-muted); }

/* ---- Process Steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .process-steps { grid-template-columns: 1fr; } }

.process-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- Tabs ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Highlight Box ---- */
.highlight-box {
  background: rgba(26,61,92,0.04);
  border: 1px solid rgba(26,61,92,0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.highlight-box.cert-highlight {
  background: var(--color-cert-bg);
  border-color: rgba(58,125,68,0.20);
}

/* ---- Two-col layout helper ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1023px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.three-col {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 1023px) { .three-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .three-col { grid-template-columns: 1fr; } }

/* ---- Spec list (key-value) ---- */
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  gap: 16px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li:nth-child(even) { background: #F9FAFB; }
.spec-list dt {
  color: var(--color-text-muted);
  font-weight: 500;
  flex: 1;
}
.spec-list dd {
  color: var(--color-text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.5;
}
.feature-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-cert-bg);
  border: 1px solid var(--color-cert);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-cert);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Alert / Note ---- */
.note {
  background: var(--color-pending-bg);
  border: 1px solid var(--color-pending);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.note-icon { color: var(--color-pending); flex-shrink: 0; font-size: 16px; }

/* ---- Download CTA card ---- */
.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.download-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 12px rgba(26,61,92,0.06);
}
.download-icon {
  width: 44px; height: 44px;
  background: rgba(26,61,92,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
}
.download-card-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.download-card-text span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---- Responsive helpers ---- */
@media (max-width: 767px) {
  .process-steps { grid-template-columns: 1fr; }
  .selection-table th, .selection-table td { padding: 10px 12px; font-size: 13px; }
}
