/* SE Health Graph — entity page styles
   sheniekimi.ge colour scheme: red #C0392B, dark #1a1a1a, border #e0e0e0 */

:root {
  --sehg-red:    #C0392B;
  --sehg-red-bg: #fdf0ef;
  --sehg-dark:   #1a1a1a;
  --sehg-grey:   #6b6b6b;
  --sehg-border: #e0e0e0;
  --sehg-green:  #27AE60;
  --sehg-blue:   #2980B9;
  --sehg-warn:   #E67E22;
}

/* EMERGENCY BANNER */
.sehg-emergency-banner {
  background: var(--sehg-red);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 16px;
}
.sehg-emergency-banner a { color: #fff; text-decoration: underline; }

/* ENTITY PAGE WRAPPER */
.sehg-entity-page { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* SECTION */
.sehg-section {
  border: 1px solid var(--sehg-border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}
.sehg-section-head {
  background: #f8f8f8;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sehg-dark);
  border-bottom: 1px solid var(--sehg-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sehg-section-body { padding: 14px 16px; }

/* ID BLOCK */
.sehg-id-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.sehg-id-block img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sehg-entity-title { font-size: 22px; font-weight: 700; color: var(--sehg-dark); margin: 0 0 4px; }
.sehg-entity-subtitle { font-size: 14px; color: var(--sehg-grey); margin: 0 0 8px; }

/* BADGES */
.sehg-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sehg-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  display: inline-block;
}
.sehg-badge-green  { background: #e8f5e9; color: var(--sehg-green); }
.sehg-badge-red    { background: var(--sehg-red-bg); color: var(--sehg-red); }
.sehg-badge-blue   { background: #e3f2fd; color: var(--sehg-blue); }
.sehg-badge-grey   { background: #f5f5f5; color: var(--sehg-grey); border: 1px solid var(--sehg-border); }
.sehg-badge-warn   { background: #fff3e0; color: var(--sehg-warn); }

/* LINK CHIPS — connections */
.sehg-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sehg-link-chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  background: #f0f4ff;
  border: 1px solid #c5d0f0;
  color: var(--sehg-blue);
  text-decoration: none;
  display: inline-block;
}
.sehg-link-chip:hover { background: #e3eaff; }
.sehg-link-chip.empty { background: #f8f8f8; border: 1px dashed var(--sehg-border); color: #aaa; cursor: default; }

/* FIELDS GRID */
.sehg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .sehg-fields { grid-template-columns: 1fr; } }
.sehg-field-label { font-size: 11px; color: var(--sehg-grey); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.sehg-field-value { font-size: 13px; color: var(--sehg-dark); }
.sehg-field-empty { font-size: 13px; color: #bbb; font-style: italic; }

/* PHONE / MAP — mobile tap targets */
.sehg-tap-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sehg-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  margin-right: 6px;
}
.sehg-tap-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sehg-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

/* UPDATE FORM */
.sehg-update-form { background: #f8f8f8; padding: 16px; border-radius: 8px; }
.sehg-update-form h4 { margin: 0 0 12px; font-size: 14px; }
.sehg-update-form input,
.sehg-update-form textarea,
.sehg-update-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--sehg-border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
  font-family: inherit;
}
.sehg-update-form textarea { height: 100px; resize: vertical; }
.sehg-update-form button {
  background: var(--sehg-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sehg-update-form button:hover { background: #a93226; }

/* DISCLAIMER */
.sehg-disclaimer {
  font-size: 11px;
  color: var(--sehg-grey);
  background: #fff9e6;
  border: 1px solid #f0d060;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;
}

/* EVIDENCE BADGE */
.sehg-evidence-A { background: #e8f5e9; color: #1b5e20; }
.sehg-evidence-B { background: #e3f2fd; color: #0d47a1; }
.sehg-evidence-C { background: #fff3e0; color: #e65100; }
.sehg-evidence-D { background: #fce4ec; color: #880e4f; }
.sehg-evidence-T { background: #f3e5f5; color: #4a148c; }

/* MOBILE FIRST */
@media (max-width: 600px) {
  .sehg-id-block { flex-direction: column; }
  .sehg-id-block img { width: 60px; height: 60px; }
  .sehg-entity-title { font-size: 18px; }
}
