/**
 * Guide visuals — CSS diagrams, frames, heroes (no JS).
 * Load after tailwind.css / common.css on guide pages.
 */

/* --- Hub hero (Arabic / compact guides) --- */
.gv-hub-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 2rem;
  margin-bottom: 2rem;
  min-height: 12rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
}
.gv-hub-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  z-index: 0;
}
.gv-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.42) 48%,
    rgba(22, 101, 52, 0.45) 100%
  );
}
.gv-hub-hero-inner {
  position: relative;
  z-index: 2;
}
.gv-hub-hero h2,
.gv-hub-hero .gv-hub-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
}
.gv-hub-hero p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 42rem;
}
.gv-hub-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.gv-hub-hero .gv-hub-cta {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: #14532d;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.gv-hub-hero .gv-hub-cta:hover {
  filter: brightness(1.05);
}

/* --- Spec strip (hub EN): pill row --- */
.gv-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.gv-spec-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  background: var(--tinted, #f4f4f5);
  border: 1px solid var(--border, #e4e4e7);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.gv-spec-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

/* --- Passport / ID frame mockups (pure CSS aspect ratios) --- */
.gv-frames {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.gv-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.gv-frame-slot {
  position: relative;
  width: 100px;
  border-radius: 4px;
  border: 3px solid #1e293b;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
/* Inner “face” silhouette */
.gv-frame-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 42%;
  height: 38%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  opacity: 0.85;
}
.gv-frame-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  max-width: 8rem;
  line-height: 1.3;
}
.gv-frame-dim {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

/* Aspect presets (height from width via aspect-ratio) */
.gv-frame-slot--35x45 {
  aspect-ratio: 35 / 45;
}
.gv-frame-slot--43x55 {
  aspect-ratio: 43 / 55;
}
.gv-frame-slot--40x50 {
  aspect-ratio: 40 / 50;
}
.gv-frame-slot--4x6 {
  aspect-ratio: 4 / 6;
}
.gv-frame-slot--2x2 {
  aspect-ratio: 1 / 1;
}

.gv-frame-slot--blue {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
}
.gv-frame-slot--blue::after {
  background: linear-gradient(180deg, #bfdbfe 0%, #64748b 100%);
}

/* Connector “vs” between two frames */
.gv-frame-vs {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  align-self: center;
  padding: 0 0.25rem;
}

/* --- Biometric head diagram (SVG block in HTML) --- */
.gv-bio-diagram {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.gv-bio-diagram figcaption {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.75rem;
  line-height: 1.45;
}

/* --- Step flow (numbered) --- */
.gv-steps {
  counter-reset: gv-step;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.gv-steps li {
  position: relative;
  padding-inline-start: 2.75rem;
  padding-bottom: 1.25rem;
  border-inline-start: 2px solid #e2e8f0;
  margin-inline-start: 0.75rem;
}
.gv-steps li:last-child {
  border-inline-start-color: transparent;
  padding-bottom: 0;
}
.gv-steps li::before {
  counter-increment: gv-step;
  content: counter(gv-step);
  position: absolute;
  inset-inline-start: -0.75rem;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}
[dir="rtl"] .gv-steps li::before {
  transform: translateX(50%);
}

/* --- Retail price band (FedEx / Staples style) --- */
.gv-price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.gv-price-card {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.gv-price-card strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.gv-price-card span {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: block;
}

/* --- Subtle motion (respects prefers-reduced-motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .gv-frame-slot {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .gv-frame:hover .gv-frame-slot {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  }
}

/* --- AI / compliance callout --- */
.gv-ai-alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
  margin: 1.5rem 0;
}
.gv-ai-alert-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gv-ai-alert p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #451a03;
}
