// data.jsx — mock data for the Psyche prototype
// All Cyprus-flavored: districts, Greek/Cypriot names, GeSY (national health system).

const APPROACHES = [
  { id: 'cbt',           name: 'CBT',          name_el: 'CBT',            long: 'Cognitive Behavioural Therapy', short: 'Practical, structured, focuses on patterns of thought + behaviour. Strong for anxiety, phobias, OCD.' },
  { id: 'psychodynamic', name: 'Psychodynamic', name_el: 'Ψυχοδυναμική', long: 'Psychodynamic',                 short: 'Long-term, explores how past relationships shape present feelings. Good for chronic patterns.' },
  { id: 'humanistic',    name: 'Humanistic',    name_el: 'Ανθρωπιστική', long: 'Humanistic / Person-centred',   short: 'Warm, non-directive, focused on self-acceptance. Good for self-esteem, life transitions.' },
  { id: 'emdr',          name: 'EMDR',          name_el: 'EMDR',          long: 'Eye Movement Desensitisation',  short: 'Trauma-focused. Reprocesses distressing memories using bilateral stimulation.' },
  { id: 'act',           name: 'ACT',           name_el: 'ACT',           long: 'Acceptance & Commitment',       short: 'Values-led. Helps you carry difficult feelings while still doing what matters.' },
  { id: 'systemic',      name: 'Systemic',      name_el: 'Συστημική',     long: 'Systemic / Family',             short: 'Treats relationships and family systems, not just individuals. Good for couples, families.' },
  { id: 'gestalt',       name: 'Gestalt',       name_el: 'Gestalt',       long: 'Gestalt',                       short: 'Present-moment awareness, embodied work. Good for emotional disconnection.' },
  { id: 'integrative',   name: 'Integrative',   name_el: 'Ολοκληρωτική', long: 'Integrative',                   short: 'Blends approaches case-by-case. Common in experienced practitioners.' },
];

const SPECIALIZATIONS = [
  { id: 'anxiety',    name: 'Anxiety',                name_el: 'Άγχος' },
  { id: 'depression', name: 'Depression',             name_el: 'Κατάθλιψη' },
  { id: 'trauma',     name: 'Trauma / PTSD',          name_el: 'Τραύμα / PTSD' },
  { id: 'couples',    name: 'Couples',                name_el: 'Ζευγάρια' },
  { id: 'child',      name: 'Children & adolescents', name_el: 'Παιδιά & έφηβοι' },
  { id: 'addiction',  name: 'Addiction',              name_el: 'Εξαρτήσεις' },
  { id: 'eating',     name: 'Eating disorders',       name_el: 'Διατροφικές διαταραχές' },
  { id: 'lgbtq',      name: 'LGBTQ+ affirmative',     name_el: 'LGBTQ+ υποστηρικτικό' },
  { id: 'grief',      name: 'Grief & loss',           name_el: 'Πένθος & απώλεια' },
  { id: 'ocd',        name: 'OCD',                    name_el: 'ΙΨΔ / OCD' },
  { id: 'work',       name: 'Burnout & work stress',  name_el: 'Εξάντληση & εργασιακό άγχος' },
];

const DISTRICTS = ['Nicosia', 'Limassol', 'Larnaca', 'Paphos', 'Famagusta', 'Kyrenia'];

const LANGUAGES = ['Greek', 'English', 'Russian', 'Turkish'];

// Helper: deterministic "verified-review" count
// PSYS is now empty — psychologist profiles are loaded from /api/psychologists
// The array below is kept only as a fallback shape reference; it is not used.
const PSYS = [
  {
    id: 'p1',
    name: 'Dr. Elena Constantinou',
    credentials: 'PsyD, Licensed Clinical Psychologist · #ΠΣΨΨ 1284',
    avatarVariant: 'a',
    initials: 'EC',
    bio: "I work mostly with adults navigating anxiety, perfectionism, and burnout. My approach is collaborative and structured — we'll figure out what's keeping you stuck, and build small, repeatable habits to shift it. Sessions in Greek or English.",
    longBio: "I've been practising in Nicosia for 12 years. I trained at the University of Cyprus and completed CBT certification at the Beck Institute in 2016. I work mostly with high-functioning adults — engineers, lawyers, doctors — who feel like they're holding everything together on the outside while struggling internally. My style is warm but practical: we'll name the pattern, understand where it came from, and build tools you can actually use between sessions.",
    approaches: ['cbt', 'act'],
    primaryApproach: 'cbt',
    specializations: ['anxiety', 'work', 'depression', 'ocd'],
    district: 'Nicosia',
    address: '12 Stasikratous, Office 4B, 1065 Nicosia',
    modes: ['in-person', 'online'],
    gesy: true,
    pricePerSession: 70,
    languages: ['Greek', 'English'],
    yearsExperience: 12,
    education: [
      { year: '2012', text: 'PsyD, Clinical Psychology — University of Cyprus' },
      { year: '2014', text: 'MSc, Cognitive Therapy — King\'s College London' },
      { year: '2016', text: 'CBT Certification — Beck Institute, Philadelphia' },
    ],
    experience: [
      { year: '2019—', text: 'Private practice, Nicosia' },
      { year: '2014—2019', text: 'Senior Psychologist, Makarios III Hospital' },
      { year: '2012—2014', text: 'Clinical Fellow, Athalassa Psychiatric Hospital' },
    ],
    verified: true,
    rating: 4.9,
    reviewCount: 87,
    responseHours: 4,
    introCall: true,
    chatEnabled: true,
    nextAvailable: 'Tomorrow, 14:30',
  },
  {
    id: 'p2',
    name: 'Andreas Papadopoulos',
    credentials: 'MSc, Counselling Psychologist · #ΠΣΨΨ 0941',
    avatarVariant: 'b',
    initials: 'AP',
    bio: "Person-centred work with adults in life transitions — career changes, divorce, becoming a parent, losing one. I'll meet you where you are, no agenda imposed.",
    longBio: "Trained originally as a teacher before moving into psychology in my early thirties — a career change of my own. I work humanistically: I trust that you know yourself better than I ever will, and my job is to create the space for that knowing to surface. I see clients in Limassol and online across Cyprus and the diaspora.",
    approaches: ['humanistic', 'gestalt'],
    primaryApproach: 'humanistic',
    specializations: ['grief', 'depression', 'work', 'lgbtq'],
    district: 'Limassol',
    address: '8 Agiou Andreou, 3036 Limassol',
    modes: ['in-person', 'online'],
    gesy: false,
    pricePerSession: 60,
    languages: ['Greek', 'English'],
    yearsExperience: 8,
    education: [
      { year: '2017', text: 'MSc, Counselling Psychology — University of Nicosia' },
      { year: '2020', text: 'Certificate, Gestalt Therapy — Hellenic Institute of Gestalt' },
    ],
    experience: [
      { year: '2020—', text: 'Private practice, Limassol' },
      { year: '2017—2020', text: 'Counsellor, Cyprus Samaritans' },
    ],
    verified: true,
    rating: 4.8,
    reviewCount: 54,
    responseHours: 8,
    introCall: true,
    chatEnabled: true,
    nextAvailable: 'Thursday, 10:00',
  },
  {
    id: 'p3',
    name: 'Dr. Maria Iacovou',
    credentials: 'PhD, Clinical Psychologist · EMDR Europe Accredited · #ΠΣΨΨ 0612',
    avatarVariant: 'c',
    initials: 'MI',
    bio: "Trauma-focused work. EMDR, somatic approaches. I see survivors of accidents, violence, and complex childhood trauma. Cyprus / English / Russian.",
    longBio: "Most of my clients come to me after years of trying other things that didn't quite land. Trauma lives in the body as much as the mind, and EMDR — with somatic grounding — gives us a way in that talk alone often can't. I'm patient, I won't push you faster than is safe, and I'll teach you tools to feel grounded between sessions.",
    approaches: ['emdr', 'integrative'],
    primaryApproach: 'emdr',
    specializations: ['trauma', 'anxiety', 'grief'],
    district: 'Nicosia',
    address: 'Athalassis 23, 2nd floor, 2102 Nicosia',
    modes: ['in-person'],
    gesy: true,
    pricePerSession: 85,
    languages: ['Greek', 'English', 'Russian'],
    yearsExperience: 16,
    education: [
      { year: '2008', text: 'PhD, Clinical Psychology — Aristotle University of Thessaloniki' },
      { year: '2013', text: 'EMDR Europe Accreditation' },
    ],
    experience: [
      { year: '2015—', text: 'Private practice' },
      { year: '2008—2015', text: 'Senior Clinical Psychologist, Cyprus Ministry of Health' },
    ],
    verified: true,
    rating: 4.9,
    reviewCount: 142,
    responseHours: 24,
    introCall: false,
    chatEnabled: false,
    nextAvailable: 'Next Tuesday, 16:00',
  },
  {
    id: 'p4',
    name: 'Sofia Charalambous',
    credentials: 'MSc, Couples & Family Therapist · #ΠΣΨΨ 1422',
    avatarVariant: 'd',
    initials: 'SC',
    bio: "Couples and families. Systemic / Gottman-informed work. We won't pick sides — we'll look at the pattern between you and find new moves.",
    longBio: "I've worked with couples for ten years — together, before they split, after they split, while they're trying to decide. The single most useful thing I've learned: most fights aren't actually about what the fight is about. We'll find what's underneath, and you'll both feel heard. I work in Larnaca evenings, Saturdays online.",
    approaches: ['systemic', 'integrative'],
    primaryApproach: 'systemic',
    specializations: ['couples', 'child', 'grief'],
    district: 'Larnaca',
    address: 'Ermou 67, 6021 Larnaca',
    modes: ['in-person', 'online'],
    gesy: false,
    pricePerSession: 95,
    sessionLengthMin: 75,
    languages: ['Greek', 'English'],
    yearsExperience: 10,
    education: [
      { year: '2015', text: 'MSc, Family Therapy — University of Reading' },
      { year: '2018', text: 'Gottman Method, Level 3 Training' },
    ],
    experience: [
      { year: '2018—', text: 'Private practice, Larnaca' },
      { year: '2015—2018', text: 'Family Therapist, Hope For Children CRC' },
    ],
    verified: true,
    rating: 4.7,
    reviewCount: 36,
    responseHours: 12,
    introCall: true,
    chatEnabled: true,
    nextAvailable: 'Saturday, 11:00',
  },
  {
    id: 'p5',
    name: 'Dr. Christos Loizides',
    credentials: 'DClinPsy, Adult & Adolescent · #ΠΣΨΨ 0788',
    avatarVariant: 'e',
    initials: 'CL',
    bio: "Psychodynamic work — slower, deeper, more about the why than the what. I work with adults and older adolescents over months and years.",
    longBio: "If you've been in CBT and it helped, but something keeps coming back — that pattern that has your name on it — psychodynamic work might be what's missing. I see clients weekly, often for a year or more. It's not a quick fix; it's a different kind of work.",
    approaches: ['psychodynamic', 'integrative'],
    primaryApproach: 'psychodynamic',
    specializations: ['depression', 'anxiety', 'child', 'eating'],
    district: 'Paphos',
    address: 'Apostolou Pavlou 45, 8046 Paphos',
    modes: ['in-person', 'online'],
    gesy: true,
    pricePerSession: 75,
    languages: ['Greek', 'English'],
    yearsExperience: 18,
    education: [
      { year: '2007', text: 'DClinPsy — University of Edinburgh' },
      { year: '2012', text: 'Psychoanalytic Training — Tavistock Clinic, London' },
    ],
    experience: [
      { year: '2014—', text: 'Private practice, Paphos' },
      { year: '2007—2014', text: 'NHS Adult Mental Health, Lothian' },
    ],
    verified: true,
    rating: 4.8,
    reviewCount: 61,
    responseHours: 36,
    introCall: false,
    chatEnabled: false,
    nextAvailable: 'Next Monday, 09:00',
  },
  {
    id: 'p6',
    name: 'Anna Petrova',
    credentials: 'MSc, Psychologist · #ΠΣΨΨ 1597',
    avatarVariant: 'a',
    initials: 'AP',
    bio: "ACT and mindfulness-based work. Plain-language sessions for high performers, parents, and people who don't think therapy is for them.",
    longBio: "I work with people who tend to over-think and under-feel. ACT isn't about getting rid of difficult thoughts — it's about not letting them run the show. I see a lot of expats, parents of young children, and people in their late 20s/30s asking 'is this it?'",
    approaches: ['act', 'cbt'],
    primaryApproach: 'act',
    specializations: ['anxiety', 'depression', 'work', 'lgbtq'],
    district: 'Limassol',
    address: 'Spyrou Kyprianou 12, 4001 Limassol',
    modes: ['online'],
    gesy: false,
    pricePerSession: 55,
    languages: ['English', 'Russian'],
    yearsExperience: 6,
    education: [
      { year: '2019', text: 'MSc, Psychology — Higher School of Economics, Moscow' },
      { year: '2022', text: 'ACT Certification — Association for Contextual Behavioural Science' },
    ],
    experience: [
      { year: '2022—', text: 'Private practice (online)' },
    ],
    verified: true,
    rating: 4.6,
    reviewCount: 22,
    responseHours: 2,
    introCall: true,
    chatEnabled: true,
    nextAvailable: 'Today, 19:00',
  },
];
// In production, PSYS is populated at runtime from /api/psychologists.
// Screens that previously referenced PSYS should fetch from the API instead.

// Reviews — loaded from /api/reviews/:psyId (kept as empty fallback)
const REVIEWS = {
  p1: [
    { id: 'r1', author: 'A.K.', initials: 'AK', when: '2 weeks ago', rating: 5, verified: true, sessions: 12, body: "I came to Dr. Constantinou because I was panicking before every work presentation. After three sessions I had concrete tools I could actually use. After twelve, I gave a talk to 200 people. She doesn't waste your time." },
    { id: 'r2', author: 'M.', initials: 'M', when: '1 month ago', rating: 5, verified: true, sessions: 8, body: "Warm and direct, in a way that I needed. She'll call you on patterns you've been hiding from yourself, but you never feel judged. Worth every euro." },
    { id: 'r3', author: 'P.S.', initials: 'PS', when: '2 months ago', rating: 4, verified: true, sessions: 6, body: "Helpful work on perfectionism. CBT felt very structured — sometimes I wished we'd gone deeper into the why, not just the what. That's a style thing more than a quality thing." },
  ],
  p2: [
    { id: 'r4', author: 'D.H.', initials: 'DH', when: '3 weeks ago', rating: 5, verified: true, sessions: 20, body: "Andreas got me through my divorce. He never told me what to do. He just made it possible for me to hear what I already knew." },
    { id: 'r5', author: 'C.', initials: 'C', when: '5 weeks ago', rating: 5, verified: true, sessions: 14, body: "I came out at 38 with his help. He created the safest space I've ever been in. I cannot recommend him enough." },
  ],
  p3: [
    { id: 'r6', author: 'L.M.', initials: 'LM', when: '2 weeks ago', rating: 5, verified: true, sessions: 30, body: "EMDR with Dr. Iacovou changed my life. I had a car accident in 2019 that I'd never been able to talk about. After about ten sessions the flashbacks just… stopped. She is exceptional." },
    { id: 'r7', author: 'Α.Δ.', initials: 'ΑΔ', when: '1 month ago', rating: 5, verified: true, sessions: 22, body: "Δεν περίμενα ότι θα δούλευα ξανά με έναν ψυχολόγο αφού η πρώτη μου εμπειρία ήταν κακή. Η Δρ. Ιακώβου είναι υπομονετική και επαγγελματίας." },
  ],
  p4: [],
  p5: [],
  p6: [],
};

// Community posts (peer-to-peer Q&A)
const COMMUNITY_POSTS = [
  {
    id: 'c1',
    title: "First session tomorrow — what do I actually say?",
    author: 'anon_4f2a',
    when: '3 hours ago',
    tags: ['first-time'],
    replies: 14,
    likes: 32,
    excerpt: "I've finally booked. I have no idea how to start. Do I just… dump everything? Do they ask questions? I'm a planner so going in blind is making me anxious about the appointment that's supposed to help with my anxiety, ironically.",
    expertReply: {
      who: 'Dr. Elena Constantinou',
      verified: true,
      body: "It is okay to walk in and say exactly that. \"I don't know where to start.\" That's a real, useful sentence and any psychologist worth their licence will take it from there. The first session is mostly us getting to know each other and figuring out what you want to work on — no one expects a polished story."
    }
  },
  {
    id: 'c2',
    title: "Is GeSY actually usable for therapy in Nicosia?",
    author: 'nicosia_2025',
    when: '1 day ago',
    tags: ['gesy', 'nicosia'],
    replies: 23,
    likes: 41,
    excerpt: "Asking because I tried and waited 4 months for a referral that never came. Curious if anyone has made it work, or if I should just budget for private."
  },
  {
    id: 'c3',
    title: "Switched from CBT to psychodynamic after a year — anyone else?",
    author: 'still_learning',
    when: '2 days ago',
    tags: ['cbt', 'psychodynamic'],
    replies: 9,
    likes: 18,
    excerpt: "CBT was useful but felt like I was managing symptoms without understanding them. Switched 3 months ago and it's a completely different experience. Slower. Harder. But things are shifting in a way they weren't before."
  },
  {
    id: 'c4',
    title: "Online sessions vs in-person — does it actually matter?",
    author: 'fr0gprince',
    when: '4 days ago',
    tags: ['online', 'practical'],
    replies: 31,
    likes: 27,
    excerpt: "I live in Paphos but the psychologist I want to work with is in Nicosia. Is doing it over video genuinely fine, or am I missing something important by not being in the room?",
    expertReply: {
      who: 'Andreas Papadopoulos',
      verified: true,
      body: "Honestly, for most clients, online works. The relationship is what matters more than the room. A few exceptions: EMDR is harder remotely, trauma work often benefits from being physically with someone, and if you struggle to focus at home you may want in-person. For ongoing weekly talk therapy — it's fine."
    }
  },
];

// Time slots for booking (simple pre-generated)
const SLOTS_BY_DAY = {
  0: [], // disabled
  1: ['09:00','10:30','14:30','16:00'],
  2: ['11:00','13:00','17:30'],
  3: [],
  4: ['09:00','10:30','12:00','15:30','17:00'],
  5: ['10:00','13:30'],
  6: [],
};

// Mood journal sample data — last 7 days
const MOOD_LOG = [
  { day: 'Mon', value: 0.4, note: 'Slept badly. Tense morning, better afternoon.' },
  { day: 'Tue', value: 0.5, note: '' },
  { day: 'Wed', value: 0.3, note: 'Argument with M. Couldn\'t focus at work.' },
  { day: 'Thu', value: 0.6, note: 'Walked at lunch. Helped a lot.' },
  { day: 'Fri', value: 0.7, note: '' },
  { day: 'Sat', value: 0.85, note: 'Good day with family.' },
  { day: 'Sun', value: 0.55, note: 'Sunday dread is real.' },
];

Object.assign(window, {
  APPROACHES, SPECIALIZATIONS, DISTRICTS, LANGUAGES, PSYS, REVIEWS,
  COMMUNITY_POSTS, SLOTS_BY_DAY, MOOD_LOG,
});
