import { Link } from "react-router-dom";
import { ArrowRight, CheckCircle2, XCircle, Heart, Stethoscope, GraduationCap, Shield } from "lucide-react";
import { Layout } from "@/components/layout/Layout";
import { SEO } from "@/components/SEO";
import { useForceLanguage } from "@/hooks/useForceLanguage";
import vrSjukvardImage from "@/assets/solutions/vr-sjukvard-demo.jpg";
import karolinskaImage from "@/assets/cases/karolinska-vr-medical.png";
import linGlucoseImage from "@/assets/cases/lin-glucose.jpg";

const problemPoints = [
  { title: "Access to patients for training is limited", description: "Ethical and practical barriers make it difficult to train clinical skills on real patients. Students gain too little hands-on experience before encountering their first real patient." },
  { title: "Rare conditions cannot always be demonstrated", description: "How do you train diagnosing a disease that occurs once per thousand patients? Traditional clinical training does not provide exposure to the full spectrum of conditions." },
  { title: "Mistakes during training can have real consequences", description: "Even under supervision, there is always a risk that training errors affect patient health. The stress this creates inhibits learning." },
  { title: "Difficult to standardise training quality", description: "Depending on which clinic, supervisor, and patient a student encounters, training quality varies significantly between individuals." }
];

const howVRUsed = [
  { icon: Stethoscope, title: "Clinical skills training", description: "Practise examination techniques, procedures, and patient interactions in realistic virtual environments." },
  { icon: Heart, title: "Acute medical scenarios", description: "Train life-threatening situations — cardiac arrest, trauma, anaphylaxis — without real risk." },
  { icon: GraduationCap, title: "Medical education", description: "Visualise anatomy, physiology, and disease processes in 3D for deeper understanding." },
  { icon: Shield, title: "Patient safety", description: "Identify and train away risky behaviours before they reach real patients." }
];

const whenRight = [
  "Training requires hands-on practice that is hard to get in clinic",
  "You want to expose staff to rare but critical conditions",
  "Standardising training quality is important",
  "You need to measure clinical competence objectively",
  "Training must be repeatable until the skill is mastered"
];

const whenNotRight = [
  "Training requires real physical feedback (e.g. palpation)",
  "Equipment and IT support are unavailable at the training site",
  "The target group is unfamiliar with digital technology and lacks support",
  "Simple theory reviews that could just as easily be e-learning"
];

export default function VRHealthcareEn() {
  useForceLanguage("en");

  return (
    <Layout>
      <SEO
        title="VR for Healthcare and Medical Training | Suteki Studios"
        description="VR simulations for surgical training, patient communication and medical education. Proven across leading healthcare organisations."
        lang="en"
        canonicalUrl="https://sutekistudios.com/en/vr-healthcare"
        alternateSv="https://sutekistudios.com/vr-sjukvard"
        alternateEn="https://sutekistudios.com/en/vr-healthcare"
      />

      {/* ── HERO ─────────────────────────────────────── */}
      <section className="min-h-[70vh] flex items-end relative overflow-hidden" data-hero="true">
        <div className="absolute inset-0 bg-cover bg-center" style={{ backgroundImage: `url(${vrSjukvardImage})` }} />
        <div className="absolute inset-0" style={{ background: 'linear-gradient(to top, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.50) 50%, rgba(8,12,20,0.25) 100%)' }} />
        <div className="container mx-auto px-6 lg:px-8 relative z-10 pb-20 pt-40">
          <div className="max-w-3xl">
            <p className="hero-eyebrow mb-5">VR IN HEALTHCARE</p>
            <h1 className="display mb-6">VR in Healthcare – Medical Training in Virtual Environments</h1>
            <p className="text-lg hero-text-body max-w-xl mb-8 leading-relaxed">
              VR gives healthcare professionals the opportunity to train clinical skills, acute scenarios, and patient interaction in realistic environments — without compromising patient safety. As part of{" "}
              <Link to="/vr" className="underline underline-offset-2 hover:opacity-80">Suteki Studios' VR offering</Link>{" "}
              we develop medical training solutions that deliver more confident staff and better care.
            </p>
            <div className="flex flex-wrap gap-4">
              <a href="https://calendly.com/sutekistudios/strategic-project-discussion" target="_blank" rel="noopener noreferrer" className="btn-white inline-flex items-center gap-2">
                Book a Meeting <ArrowRight className="h-4 w-4" />
              </a>
              <Link to="/vr" className="btn-outline inline-flex items-center gap-2" style={{ color: '#fff', borderColor: 'rgba(255,255,255,0.2)' }}>
                Back to VR Overview
              </Link>
            </div>
          </div>
        </div>
      </section>

      {/* ── PROBLEM ──────────────────────────────────── */}
      <section className="section-white py-[var(--space-section)]">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-2xl mb-[var(--space-block)]">
            <p className="eyebrow mb-3">The Challenge</p>
            <h2>Challenges with Traditional Medical Training</h2>
            <p className="text-muted-foreground mt-4">Healthcare education has unique limitations that VR can address.</p>
          </div>
          <div className="grid md:grid-cols-2 gap-6">
            {problemPoints.map((point, i) => (
              <div key={i} className="enterprise-card p-6">
                <h3 className="text-lg font-semibold mb-2">{point.title}</h3>
                <p className="text-muted-foreground leading-relaxed">{point.description}</p>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* ── HOW VR IS USED ──────────────────────────── */}
      <section className="section-beige py-[var(--space-section)]">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-2xl mb-[var(--space-block)]">
            <p className="eyebrow mb-3">Applications</p>
            <h2>How VR Is Used in Healthcare</h2>
          </div>
          <div className="grid md:grid-cols-2 gap-8">
            {howVRUsed.map((item) => {
              const Icon = item.icon;
              return (
                <div key={item.title} className="flex gap-5">
                  <div className="flex-shrink-0 w-12 h-12 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center">
                    <Icon className="h-5 w-5 text-primary" />
                  </div>
                  <div>
                    <h3 className="text-lg font-semibold mb-2">{item.title}</h3>
                    <p className="text-muted-foreground leading-relaxed">{item.description}</p>
                  </div>
                </div>
              );
            })}
          </div>
        </div>
      </section>

      {/* ── CASE STUDIES ─────────────────────────────── */}
      <section className="section-dark py-[var(--space-section)]" data-theme="dark">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-2xl mb-[var(--space-block)]">
            <p className="eyebrow mb-3">Verified Results</p>
            <h2>Real-World Examples</h2>
          </div>
          <div className="grid md:grid-cols-2 gap-8">
            <div className="dark-card overflow-hidden rounded-xl">
              <div className="aspect-video overflow-hidden">
                <img src={karolinskaImage} alt="KaroVR medical training" loading="lazy" className="w-full h-full object-cover opacity-80 hover:opacity-100 transition-opacity duration-500" />
              </div>
              <div className="p-6">
                <p className="eyebrow-muted mb-2">Medical Education</p>
                <h3 className="text-xl font-semibold mb-3">Karolinska University Hospital – KaroVR</h3>
                <p style={{ color: 'rgba(255,255,255,0.7)' }} className="mb-4 leading-relaxed">
                  VR-based medical education for medical students and specialists at Karolinska University Hospital. Training of clinical skills in a controlled, safe environment.
                </p>
                <Link to="/cases/karolinska-karovr-medical-training" className="inline-flex items-center text-sm font-medium hover:opacity-80 transition-opacity" style={{ color: 'hsl(220 91% 64%)' }}>
                  Read more about the project <ArrowRight className="ml-1 h-4 w-4" />
                </Link>
              </div>
            </div>
            <div className="dark-card overflow-hidden rounded-xl">
              <div className="aspect-video overflow-hidden">
                <img src={linGlucoseImage} alt="LIN Education VR training" loading="lazy" className="w-full h-full object-cover opacity-80 hover:opacity-100 transition-opacity duration-500" />
              </div>
              <div className="p-6">
                <p className="eyebrow-muted mb-2">Care Training</p>
                <h3 className="text-xl font-semibold mb-3">LIN Education – Glucose Monitoring</h3>
                <p style={{ color: 'rgba(255,255,255,0.7)' }} className="mb-4 leading-relaxed">
                  VR training for care staff in handling glucose monitoring equipment. Practical skills training that can be repeated until the knowledge sticks.
                </p>
                <Link to="/cases/lin-education-glucose-training" className="inline-flex items-center text-sm font-medium hover:opacity-80 transition-opacity" style={{ color: 'hsl(220 91% 64%)' }}>
                  Read more about the project <ArrowRight className="ml-1 h-4 w-4" />
                </Link>
              </div>
            </div>
          </div>

          {/* Editorial quote */}
          <div className="mt-12 max-w-2xl">
            <blockquote className="border-l-3 pl-6" style={{ borderLeftColor: 'hsl(220 91% 54%)', borderLeftWidth: '3px' }}>
              <p className="text-xl font-medium italic" style={{ color: 'rgba(255,255,255,0.9)' }}>
                "VR gives us the ability to expose students to clinical situations they would otherwise not encounter until late in their education."
              </p>
              <footer className="mt-3" style={{ color: 'rgba(255,255,255,0.5)' }}>— Karolinska University Hospital, KaroVR project</footer>
            </blockquote>
          </div>
        </div>
      </section>

      {/* ── WHEN RIGHT / NOT RIGHT ──────────────────── */}
      <section className="section-white py-[var(--space-section)]">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-2xl mb-[var(--space-block)]">
            <h2>When Is VR Right for Medical Training?</h2>
            <p className="text-muted-foreground mt-4">VR does not replace clinical practice — but complements it.</p>
          </div>
          <div className="grid md:grid-cols-2 gap-12">
            <div>
              <h3 className="text-lg font-semibold mb-5 flex items-center gap-2">
                <CheckCircle2 className="h-5 w-5 text-primary" /> VR is the right choice when:
              </h3>
              <ul className="space-y-4">
                {whenRight.map((item, i) => (
                  <li key={i} className="flex items-start gap-3">
                    <CheckCircle2 className="h-5 w-5 text-primary flex-shrink-0 mt-0.5" />
                    <span className="text-muted-foreground">{item}</span>
                  </li>
                ))}
              </ul>
            </div>
            <div>
              <h3 className="text-lg font-semibold mb-5 flex items-center gap-2">
                <XCircle className="h-5 w-5 text-destructive" /> VR is not the right choice when:
              </h3>
              <ul className="space-y-4">
                {whenNotRight.map((item, i) => (
                  <li key={i} className="flex items-start gap-3">
                    <XCircle className="h-5 w-5 text-destructive flex-shrink-0 mt-0.5" />
                    <span className="text-muted-foreground">{item}</span>
                  </li>
                ))}
              </ul>
            </div>
          </div>
        </div>
      </section>

      {/* ── RELATED ─────────────────────────────────── */}
      <section className="section-beige py-[var(--space-block)]">
        <div className="container mx-auto px-6 lg:px-8">
          <h2 className="mb-8">Related VR Solutions</h2>
          <div className="grid md:grid-cols-3 gap-6">
            {[
              { to: "/vr", title: "VR Training", desc: "Hands-on training with measurable results." },
              { to: "/en/vr-simulation", title: "VR Simulation", desc: "Acute scenarios and decision training under pressure." },
              { to: "/offentlig-sektor", title: "VR for Public Sector", desc: "Training for government and justice system." },
            ].map((link) => (
              <Link key={link.to} to={link.to} className="enterprise-card p-6 group">
                <h3 className="font-semibold mb-2 group-hover:text-accent transition-colors">{link.title}</h3>
                <p className="text-sm text-muted-foreground">{link.desc}</p>
              </Link>
            ))}
          </div>
        </div>
      </section>

      {/* ── CTA ─────────────────────────────────────── */}
      <section className="section-dark py-[var(--space-section)]" data-theme="dark">
        <div className="container mx-auto px-6 lg:px-8">
          <div className="max-w-3xl mx-auto text-center">
            <h2 className="mb-4">Want to Evaluate VR for Medical Training?</h2>
            <p className="text-lg mb-4" style={{ color: 'rgba(255,255,255,0.7)' }}>
              Book a strategic meeting where we discuss how VR can complement your clinical education. We often start with a pilot phase to validate pedagogical impact and user acceptance.
            </p>
            <p className="mb-8" style={{ color: 'rgba(255,255,255,0.5)' }}>
              Suteki Studios collaborates with Karolinska University Hospital on the KaroVR project — we are happy to share our experiences from medical VR training.
            </p>
            <a href="https://calendly.com/sutekistudios/strategic-project-discussion" target="_blank" rel="noopener noreferrer" className="btn-white inline-flex items-center gap-2">
              Book a Strategic Meeting <ArrowRight className="h-4 w-4" />
            </a>
          </div>
        </div>
      </section>
    </Layout>
  );
}
