/* ═══════════════════════════════════════════════════════════════
   DIGITAL X-RAY PAGE — digital-xray.css
═══════════════════════════════════════════════════════════════ */

/* ── HERO GRID ── */
.xray-hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}
.xray-hero-text {
  padding: 32px 40px 40px 32px;
}
.xray-hero-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}

/* ── COMPARISON PANEL ── */
.xray-compare-panel {
  background: rgba(0,0,0,.25);
  border-left: 1px solid rgba(255,255,255,.1);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
}
.xray-compare-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

/* Column header row */
.xray-cmp-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.xray-cmp-header-factor { font-size: 0; } /* invisible spacer */
.xray-cmp-header-dig,
.xray-cmp-header-film {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}
.xray-cmp-header-dig { color: #4ade80; }
.xray-cmp-header-film { color: #f87171; }

/* Data rows */
.xray-cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.xray-cmp-row:last-child { border-bottom: none; }

.xray-cmp-factor {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  line-height: 1.35;
}

/* Value cells */
.xray-cmp-dig,
.xray-cmp-film {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  padding: 6px 8px;
  border-radius: 7px;
}
.xray-cmp-dig {
  background: rgba(74,222,128,.1);
  color: #86efac;
}
.xray-cmp-film {
  background: rgba(248,113,113,.08);
  color: #fca5a5;
}
.xray-cmp-dig svg,
.xray-cmp-film svg {
  flex-shrink: 0;
}

/* ── THREE TECHNOLOGY CARDS ── */
.xray-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.xray-type {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.xray-type:hover {
  box-shadow: 0 6px 24px rgba(18,85,204,.1);
  border-color: rgba(18,85,204,.22);
}
.xray-type-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.xray-opg-header { background: linear-gradient(135deg,#1e3a8a,#1255cc); }
.xray-rvg-header { background: linear-gradient(135deg,#0e7490,#0891b2); }
.xray-ios-header { background: linear-gradient(135deg,#5b21b6,#7c3aed); }
.xray-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xray-type-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.xray-type-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
  font-weight: 500;
}
.xray-type-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.xray-type-body p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
  margin: 0;
}
.xray-used-for { flex: 1; }
.xray-uf-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--lite);
  margin-bottom: 8px;
}
.xray-uf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.xray-uf-list li {
  font-size: 12.5px;
  color: var(--mid);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.xray-uf-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.xray-rvg-header ~ .xray-type-body .xray-uf-list li::before { background: #0891b2; }
.xray-ios-header ~ .xray-type-body .xray-uf-list li::before { background: #7c3aed; }
.xray-duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: #f0fdfa;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-top: auto;
}

/* ── RESPONSIVE ── */
@media(max-width: 1100px) {
  .xray-hero-grid { grid-template-columns: 1fr; }
  .xray-hero-text { padding: 32px 32px 0; }
  .xray-compare-panel {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 32px 28px;
  }
  /* On tablet, make rows wider with more breathing room */
  .xray-cmp-row,
  .xray-cmp-header {
    grid-template-columns: 40% 1fr 1fr;
  }
  .xray-types { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 768px) {
  .xray-hero-text { padding: 28px 16px 0; }
  .xray-compare-panel { padding: 20px 16px 24px; }

  /* On mobile, stack each row vertically as a card */
  .xray-cmp-header { display: none; } /* hide header row — labels show on cards */

  .xray-cmp-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .xray-cmp-factor {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    margin-bottom: 4px;
  }
  .xray-cmp-dig,
  .xray-cmp-film {
    justify-content: flex-start;
    font-size: 12.5px;
    padding: 7px 12px;
  }
  /* Add labels back via pseudo-elements on mobile */
  .xray-cmp-dig::before {
    content: 'Digital: ';
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #4ade80;
    margin-right: 4px;
    opacity: .8;
  }
  .xray-cmp-film::before {
    content: 'Film: ';
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #f87171;
    margin-right: 4px;
    opacity: .8;
  }

  .xray-types { grid-template-columns: 1fr; }
}
