import Link from "next/link";
import type { CSSProperties } from "react";
import styles from "../resources/resources.module.css";

type Resource = {
  name: string;
  description: string;
  href: string;
  note?: string;
  callHref?: string;
  callLabel?: string;
  textHref?: string;
  textLabel?: string;
};

type ResourceGroup = {
  title: string;
  intro: string;
  resources: Resource[];
};

const groups: ResourceGroup[] = [
  {
    title: "Start Here",
    intro:
      "If you are not sure what kind of help you need, these are strong places to begin.",
    resources: [
      {
        name: "988 Suicide & Crisis Lifeline",
        description:
          "Free confidential crisis support for emotional distress or suicidal crisis.",
        href: "https://988lifeline.org/",
        callHref: "tel:988",
        callLabel: "Call 988",
        textHref: "sms:988",
        textLabel: "Text 988",
      },
      {
        name: "211",
        description:
          "Find local help for housing, food, utilities, health care, transportation and other basic needs.",
        href: "https://www.211.org/",
        callHref: "tel:211",
        callLabel: "Call 211",
      },
      {
        name: "FindTreatment.gov",
        description:
          "Anonymous federal locator for mental-health and substance-use treatment throughout the United States.",
        href: "https://findtreatment.gov/",
      },
      {
        name: "USA.gov Benefit Finder",
        description:
          "Answer a few questions to find government benefits and financial assistance you may qualify for.",
        href: "https://www.usa.gov/benefit-finder",
      },
      {
        name: "HRSA — Find a Health Center",
        description:
          "Find federally supported community health centers offering primary care and other services regardless of ability to pay.",
        href: "https://findahealthcenter.hrsa.gov/",
      },
      {
        name: "HealthCare.gov — Low-Cost Community Care",
        description:
          "Learn how to find nearby community health centers and low-cost medical care.",
        href: "https://www.healthcare.gov/community-health-centers/",
      },
    ],
  },
  {
    title: "Mental Health & Emotional Support",
    intro:
      "Free screening, peer support, local programs and treatment-finding resources.",
    resources: [
      {
        name: "NAMI — Find Your Local NAMI",
        description:
          "Find local mental-health support groups, education programs and community resources.",
        href: "https://www.nami.org/find-your-local-nami/",
      },
      {
        name: "NAMI Support Groups",
        description:
          "Free peer-led support groups for people living with mental-health conditions and their families.",
        href: "https://www.nami.org/support-groups/",
      },
      {
        name: "FindTreatment.gov — Mental Health",
        description:
          "Search mental-health treatment providers and facilities by location.",
        href: "https://findtreatment.gov/locator?sType=mh",
      },
      {
        name: "SAMHSA Treatment Locators",
        description:
          "Federal tools for finding mental-health, substance-use and early serious mental-illness treatment.",
        href: "https://www.samhsa.gov/find-help/locators",
      },
      {
        name: "Mental Health America — Free Screening",
        description:
          "Free, confidential mental-health screening tools for depression, anxiety, PTSD, ADHD and other concerns.",
        href: "https://screening.mhanational.org/screening-tools/",
      },
      {
        name: "Mental Health America — Find Help",
        description:
          "Search mental-health treatment, peer support and community resources.",
        href: "https://screening.mhanational.org/get-help/",
      },
      {
        name: "HRSA — Find a Health Center",
        description:
          "Find community health centers that may provide or refer for behavioral and mental-health care.",
        href: "https://findahealthcenter.hrsa.gov/",
      },
    ],
  },
  {
    title: "Addiction & Recovery",
    intro:
      "Treatment locators, national helplines and free peer-support meetings.",
    resources: [
      {
        name: "SAMHSA National Helpline",
        description:
          "Free, confidential treatment referral and information for mental-health and substance-use concerns.",
        href: "https://www.samhsa.gov/find-help/helplines",
        callHref: "tel:18006624357",
        callLabel: "Call 1-800-662-HELP",
      },
      {
        name: "Alcoholics Anonymous",
        description:
          "Find local and online A.A. meetings and recovery resources.",
        href: "https://www.aa.org/find-aa",
      },
      {
        name: "Narcotics Anonymous",
        description:
          "Find N.A. resources, local service contacts, phonelines and meetings.",
        href: "https://na.org/meetingsearch/",
      },
      {
        name: "SMART Recovery",
        description:
          "Free self-empowering mutual-support meetings for addictive behaviors.",
        href: "https://meetings.smartrecovery.org/meetings/",
      },
      {
        name: "Co-Dependents Anonymous",
        description:
          "Find in-person, online and telephone meetings focused on healthier relationships and recovery from codependence.",
        href: "https://coda.org/find-a-meeting/",
      },
      {
        name: "Al-Anon & Alateen",
        description:
          "Peer support for people affected by someone else's drinking, including meetings for teens.",
        href: "https://al-anon.org/al-anon-meetings/",
      },
    ],
  },
  {
    title: "Domestic Violence & Relationship Abuse",
    intro:
      "Confidential support, safety planning, legal information and connections to local services.",
    resources: [
      {
        name: "National Domestic Violence Hotline",
        description:
          "Free, confidential support, safety planning and connections to local domestic-violence resources.",
        href: "https://www.thehotline.org/get-help/",
      },
      {
        name: "WomensLaw — Advocates & Shelters",
        description:
          "Search by state for shelters, advocates, counseling, safety-planning assistance and local programs for survivors of abuse.",
        href: "https://www.womenslaw.org/find-help/advocates-and-shelters",
      },
      {
        name: "StrongHearts Native Helpline",
        description:
          "Confidential, culturally appropriate support and resources for Native Americans and Alaska Natives affected by domestic or sexual violence.",
        href: "https://strongheartshelpline.org/get-help",
      },
    ],
  },
  {
    title: "Sexual Assault & Abuse",
    intro:
      "Confidential support, local advocacy, medical information and healing resources for survivors and those supporting them.",
    resources: [
      {
        name: "RAINN National Sexual Assault Hotline",
        description:
          "Free, confidential support and referrals for survivors of sexual assault or abuse.",
        href: "https://rainn.org/help-and-healing/hotline/",
      },
      {
        name: "National Sexual Violence Resource Center — Find Help",
        description:
          "Find community rape-crisis centers, trained advocates, state coalitions and confidential local services.",
        href: "https://www.nsvrc.org/find-help/",
      },
      {
        name: "RAINN — After Sexual Assault",
        description:
          "Practical information about medical care, reporting options, forensic exams, trauma and recovery after sexual violence.",
        href: "https://rainn.org/help-and-healing/if-youve-been-assaulted/",
      },
    ],
  },
  {
    title: "Child Abuse & Youth Safety",
    intro:
      "Support for children, teens, survivors, parents, caregivers and people concerned about a child's safety.",
    resources: [
      {
        name: "Childhelp National Child Abuse Hotline",
        description:
          "Support and guidance for children, teens, adults and anyone concerned about child abuse or neglect.",
        href: "https://childhelphotline.org/",
      },
      {
        name: "Childhelp Resource Library",
        description:
          "Find state reporting information plus resources for parents, caregivers, schools and professionals.",
        href: "https://childhelp.org/resource-library/",
      },
      {
        name: "National Center for Missing & Exploited Children",
        description:
          "Resources for missing children, child exploitation, online safety and families seeking help.",
        href: "https://www.ncmec.org/",
      },
      {
        name: "NCMEC — Take It Down",
        description:
          "A free service designed to help remove or stop the online sharing of intimate images taken when someone was under 18.",
        href: "https://takeitdown.ncmec.org/",
      },
    ],
  },
  {
    title: "Human Trafficking & Exploitation",
    intro:
      "Support, information and service connections for people affected by sex trafficking, labor trafficking or exploitation.",
    resources: [
      {
        name: "National Human Trafficking Hotline",
        description:
          "Confidential help, safety planning and connections to services for people experiencing or concerned about trafficking.",
        href: "https://humantraffickinghotline.org/en/get-help",
      },
      {
        name: "DHS Blue Campaign",
        description:
          "Federal resources for recognizing human trafficking, understanding warning signs and learning how to respond.",
        href: "https://www.dhs.gov/blue-campaign",
      },
      {
        name: "Office for Victims of Crime — Human Trafficking",
        description:
          "Federal information, survivor resources and connections to trafficking services and task forces.",
        href: "https://ovc.ojp.gov/program/human-trafficking/overview",
      },
    ],
  },
  {
    title: "Crime Victims",
    intro:
      "Support, rights information, compensation resources and connections to victim-service programs.",
    resources: [
      {
        name: "VictimConnect Resource Center",
        description:
          "Trauma-informed information, emotional support and referrals for people affected by crime.",
        href: "https://victimconnect.org/",
      },
      {
        name: "Office for Victims of Crime — Service Directory",
        description:
          "Search thousands of nonprofit and public victim-service programs in the United States and abroad.",
        href: "https://ovc.ojp.gov/directory-crime-victim-services",
      },
      {
        name: "Office for Victims of Crime — Help for Victims",
        description:
          "Federal information about victim assistance, compensation, rights and where to find additional help.",
        href: "https://ovc.ojp.gov/help-for-victims/overview",
      },
    ],
  },
  {
    title: "Grief & Loss",
    intro:
      "Information, peer connection and support for people grieving a death or helping someone who is grieving.",
    resources: [
      {
        name: "Dougy Center — National Grief Center",
        description:
          "Free grief information and resources for children, teens, young adults, families and supporters.",
        href: "https://www.dougy.org/faqs/where-do-i-find-resources-and-information",
      },
      {
        name: "GriefShare",
        description:
          "Find in-person and online grief-support groups for people grieving the death of someone close to them.",
        href: "https://find.griefshare.org/find",
      },
      {
        name: "American Foundation for Suicide Prevention — I've Lost Someone",
        description:
          "Support, peer connections and resources specifically for people who have lost someone to suicide.",
        href: "https://afsp.org/ive-lost-someone/",
      },
    ],
  },
  {
    title: "Scams, Fraud & Identity Theft",
    intro:
      "Free prevention, reporting and recovery resources if you were scammed, lost money, exposed personal information or suspect someone is using your identity.",
    resources: [
      {
        name: "Scam Prevention & Identity Protection Guide",
        description:
          "Learn common warning signs, how to verify suspicious requests, protect accounts and identity, report fraud, and begin recovering after a loss.",
        href: "/scam-prevention",
      },
      {
        name: "FTC — ReportFraud",
        description:
          "Report scams, fraud and deceptive business practices to the Federal Trade Commission.",
        href: "https://reportfraud.ftc.gov/",
      },
      {
        name: "IdentityTheft.gov",
        description:
          "Report identity theft and receive a personalized federal recovery plan with step-by-step actions and sample documents.",
        href: "https://www.identitytheft.gov/",
      },
      {
        name: "FBI Internet Crime Complaint Center — IC3",
        description:
          "Report internet-enabled fraud, scams, account compromise, cybercrime and other online financial crimes to the FBI.",
        href: "https://www.ic3.gov/",
      },
      {
        name: "CFPB — Fraud & Scams",
        description:
          "Federal consumer guidance on recognizing scams, identity theft, unauthorized transactions and financial exploitation.",
        href: "https://www.consumerfinance.gov/consumer-tools/fraud/",
      },
      {
        name: "FTC — Credit Freezes & Fraud Alerts",
        description:
          "Learn how to place free credit freezes and fraud alerts to make it harder for identity thieves to open accounts in your name.",
        href: "https://consumer.ftc.gov/articles/credit-freezes-and-fraud-alerts",
      },
      {
        name: "Identity Theft Resource Center",
        description:
          "Nonprofit providing free identity-theft and fraud recovery information and victim-assistance resources.",
        href: "https://www.idtheftcenter.org/",
      },
      {
        name: "BBB Scam Tracker",
        description:
          "Search reported scams by business, website, email, phone number, location or scam type before sending money or information.",
        href: "https://www.bbb.org/scamtracker",
      },
    ],
  },
  {
    title: "Gambling",
    intro:
      "Help for problem gambling, gambling addiction and the families or friends affected by it.",
    resources: [
      {
        name: "National Council on Problem Gambling",
        description:
          "National information and connections to help and treatment for gambling-related problems.",
        href: "https://www.ncpgambling.org/help-treatment/",
      },
      {
        name: "Gamblers Anonymous",
        description:
          "Find peer-support meetings for people seeking recovery from compulsive gambling.",
        href: "https://gamblersanonymous.org/usa-meetings/",
      },
      {
        name: "Gam-Anon",
        description:
          "Peer support for family members and friends affected by another person's gambling.",
        href: "https://www.gam-anon.org/",
      },
    ],
  },
  {
    title: "Eating Disorders",
    intro:
      "Screening, peer support, treatment information and help overcoming financial or insurance barriers to care.",
    resources: [
      {
        name: "ANAD",
        description:
          "Peer support, recovery resources and treatment information for people affected by eating disorders.",
        href: "https://anad.org/get-help/",
      },
      {
        name: "National Eating Disorders Association",
        description:
          "Free screening, treatment information, support options and free or low-cost recovery resources.",
        href: "https://www.nationaleatingdisorders.org/get-help/",
      },
      {
        name: "Project HEAL",
        description:
          "Free programs that can help people facing financial, insurance or systemic barriers to eating-disorder treatment.",
        href: "https://www.theprojectheal.org/our-programs",
      },
    ],
  },

  {
    title: "Housing & Homelessness",
    intro:
      "Emergency shelter, rent help, housing counseling and longer-term affordable housing resources.",
    resources: [
      {
        name: "HUD Find Shelter",
        description:
          "Search by location for shelters, food pantries, health clinics and clothing resources.",
        href: "https://www.hud.gov/findshelter",
      },
      {
        name: "211 Housing Help",
        description:
          "Find local help with homelessness, rent, utilities, emergency housing and related services.",
        href: "https://www.211.org/get-help/housing-expenses",
      },
      {
        name: "USA.gov — Emergency Housing",
        description:
          "Find immediate shelter and temporary housing resources if you are homeless or at risk of homelessness.",
        href: "https://www.usa.gov/emergency-housing",
      },
      {
        name: "USA.gov — Emergency Rent Assistance",
        description:
          "Find state and local programs that may help with overdue rent or an immediate housing crisis.",
        href: "https://www.usa.gov/emergency-pay-rent",
      },
      {
        name: "HUD Housing Counselor Locator",
        description:
          "Find HUD-approved counselors for rental problems, eviction concerns, homelessness, foreclosure and housing decisions.",
        href: "https://www.hud.gov/counseling",
      },
      {
        name: "USA.gov — Subsidized Housing",
        description:
          "Learn how to find lower-rent apartments and government-supported affordable housing.",
        href: "https://www.usa.gov/subsidized-rental-housing",
      },
      {
        name: "HUD — Find Your Public Housing Agency",
        description:
          "Locate the local agency responsible for public housing and Housing Choice Voucher programs.",
        href: "https://www.hud.gov/contactus/public-housing-contacts",
      },
      {
        name: "USA.gov — Rental Assistance",
        description:
          "Find information about Section 8, public housing, subsidized apartments and rental help for specific groups.",
        href: "https://www.usa.gov/rental-housing-programs",
      },
    ],
  },
  {
    title: "Food & Basic Needs",
    intro:
      "Free food, groceries, nutrition benefits and local assistance for individuals and families.",
    resources: [
      {
        name: "Feeding America — Find Free Food",
        description:
          "Enter your ZIP code to find nearby food banks, pantries, meal programs and grocery distributions.",
        href: "https://www.feedingamerica.org/need-help-find-food",
      },
      {
        name: "211 — Food Programs & Benefits",
        description:
          "Find local food pantries, meal programs, food benefits and other community assistance.",
        href: "https://www.211.org/get-help/food-programs-food-benefits",
      },
      {
        name: "USA.gov — Emergency Food Assistance",
        description:
          "Find immediate food help, food pantries, emergency programs and government food assistance.",
        href: "https://www.usa.gov/emergency-food-assistance",
      },
      {
        name: "USA.gov — SNAP",
        description:
          "Learn whether you may qualify for SNAP food benefits and find your state office to apply.",
        href: "https://www.usa.gov/food-stamps",
      },
      {
        name: "USA.gov — WIC",
        description:
          "Food, nutrition support and referrals for eligible pregnant people, new parents, infants and young children.",
        href: "https://www.usa.gov/food-assistance",
      },
      {
        name: "Meals on Wheels — Find Meals & Services",
        description:
          "Find local meal delivery and support programs for older adults who may have difficulty shopping or preparing food.",
        href: "https://www.mealsonwheelsamerica.org/find-meals-and-services/",
      },
      {
        name: "Feeding America — Free Summer Meals for Kids",
        description:
          "Find free summer meal programs for children and teens when school is out.",
        href: "https://www.feedingamerica.org/our-work/hunger-relief-programs/summer-food-service-program",
      },
      {
        name: "Feeding America — Food Programs",
        description:
          "Explore mobile pantries, food distributions, SNAP assistance, kids programs and other free food options.",
        href: "https://www.feedingamerica.org/our-work/hunger-relief-programs",
      },
    ],
  },
  {
    title: "Legal, Financial & Benefits Help",
    intro:
      "Free or low-cost legal aid, government benefits, disability assistance and help navigating financial hardship.",
    resources: [
      {
        name: "USA.gov — Free & Low-Cost Legal Help",
        description:
          "Find civil legal-aid programs, pro-bono lawyers and free or low-cost legal resources.",
        href: "https://www.usa.gov/legal-aid",
      },
      {
        name: "Legal Services Corporation — Find Legal Help",
        description:
          "Find nonprofit civil legal-aid organizations funded to assist low-income people across the United States.",
        href: "https://www.lsc.gov/",
      },
      {
        name: "LawHelp.org",
        description:
          "Find free legal information, self-help tools, forms and civil legal-aid organizations by state.",
        href: "https://www.lawhelp.org/",
      },
      {
        name: "USA.gov Benefit Finder",
        description:
          "Find government assistance for food, housing, disability, health care, jobs, families and financial hardship.",
        href: "https://www.usa.gov/benefit-finder",
      },
      {
        name: "USA.gov — Disability Benefits",
        description:
          "Find government benefits and programs that may be available when living with a disability or serious illness.",
        href: "https://www.usa.gov/benefit-finder/disability",
      },
      {
        name: "Social Security — Disability Benefits",
        description:
          "Official information about Social Security Disability Insurance and Supplemental Security Income.",
        href: "https://www.ssa.gov/disability",
      },
    ],
  },
  {
    title: "Disability & Independent Living",
    intro:
      "Disability-rights information, independent-living services, benefits, accessibility guidance and local advocacy.",
    resources: [
      {
        name: "DIAL — Disability Information & Access Locator",
        description:
          "Federal locator connecting people with disabilities to local organizations supporting independent living.",
        href: "https://dial.acl.gov/home",
      },
      {
        name: "ADA National Network",
        description:
          "Free information and guidance about disability rights, accessibility and accommodations under the ADA.",
        href: "https://adata.org/",
      },
      {
        name: "Centers for Independent Living",
        description:
          "Find local disability-led organizations providing peer support, skills training, referrals and advocacy.",
        href: "https://ncil.org/about/find-your-cil/",
      },
      {
        name: "ACL — Centers for Independent Living Directory",
        description:
          "Federal directory of Centers for Independent Living and statewide independent-living councils.",
        href: "https://acl.gov/programs/centers-independent-living/list-cils-and-spils",
      },
      {
        name: "USA.gov — Disability Benefits",
        description:
          "Find financial, health and other government benefits for people living with disabilities.",
        href: "https://www.usa.gov/benefit-finder/disability",
      },
      {
        name: "Social Security — Disability",
        description:
          "Learn about federal disability benefits, eligibility and how to apply.",
        href: "https://www.ssa.gov/disability",
      },
    ],
  },
  {
    title: "Older Adults & Caregivers",
    intro:
      "Local aging services, caregiver support, benefits and guidance for helping an older adult remain safe and independent.",
    resources: [
      {
        name: "Eldercare Locator",
        description:
          "Federal service connecting older adults and caregivers with local aging and community resources.",
        href: "https://eldercare.acl.gov/home",
      },
      {
        name: "National Institute on Aging — Caregiving",
        description:
          "Practical federal guidance for caring for an aging family member or friend.",
        href: "https://www.nia.nih.gov/health/caregiving",
      },
      {
        name: "NIA Caregiving Toolkit",
        description:
          "A current collection of caregiver tools covering support services, benefits, respite, dementia and long-term care.",
        href: "https://www.nia.nih.gov/toolkits/caregiving",
      },
      {
        name: "Caregiver Action Network",
        description:
          "Free education, peer support and practical resources for family caregivers.",
        href: "https://www.caregiveraction.org/",
      },
      {
        name: "BenefitsCheckUp",
        description:
          "Free screening tool that helps older adults and adults with disabilities find benefits and assistance programs.",
        href: "https://benefitscheckup.org/",
      },
      {
        name: "Alzheimer's Association — Help & Support",
        description:
          "Resources, education, support groups and local programs for people living with dementia and their caregivers.",
        href: "https://www.alz.org/help-support/resources",
      },
    ],
  },
  {
    title: "Memory Changes, Dementia & When Someone Refuses Help",
    intro:
      "Resources for early memory concerns, dementia caregiving and the difficult situation where someone may not recognize that they need an evaluation or support.",
    resources: [
      {
        name: "Alzheimer's Association — 10 Steps to Approach Memory Concerns",
        description:
          "A practical guide for noticing changes, planning the conversation, offering to attend a doctor's appointment and trying again when the first conversation does not work.",
        href: "https://www.alz.org/alzheimers-dementia/10-steps",
      },
      {
        name: "Alzheimer's Association — Understanding Anosognosia",
        description:
          "Explains how some people with dementia may genuinely be unable to recognize their own cognitive decline, and offers communication and safety strategies for caregivers.",
        href: "https://www.alz.org/alzheimers-dementia/what-is-dementia/related_conditions/anosognosia",
      },
      {
        name: "National Institute on Aging — Memory Loss & Forgetfulness",
        description:
          "Information about memory changes, possible warning signs and when cognitive changes deserve medical attention.",
        href: "https://www.nia.nih.gov/health/memory-loss-and-forgetfulness",
      },
      {
        name: "National Institute on Aging — Does an Older Adult Need Help?",
        description:
          "Signs that an older adult may need additional support and practical steps families can take when concerns emerge.",
        href: "https://www.nia.nih.gov/health/caregiving/does-older-adult-your-life-need-help",
      },
      {
        name: "HHS — Sharing Concerns With a Health Care Provider",
        description:
          "Explains that privacy rules do not prevent a health-care provider from listening to concerns provided by family members or caregivers, even when the provider may be unable to disclose information back.",
        href: "https://www.hhs.gov/hipaa/for-professionals/faq/2095/what-options-do-family-members-adult-patient-mental-illness-have-if-they-are-concerned-about.html",
      },
      {
        name: "Alzheimer's Association — Diagnosis & Doctor Visits",
        description:
          "Learn what a memory evaluation may involve, why evaluation matters and what to expect when seeing a doctor about cognitive changes.",
        href: "https://www.alz.org/alzheimers-dementia/diagnosis",
      },
    ],
  },
  {
    title: "Veterans",
    intro:
      "Crisis support, caregiver assistance, housing programs and other services for Veterans and their families.",
    resources: [
      {
        name: "Veterans Crisis Line",
        description:
          "Confidential crisis support for Veterans, service members and the people who care about them.",
        href: "https://www.veteranscrisisline.net/",
      },
      {
        name: "VA Caregiver Support Program",
        description:
          "Education, coaching, peer support, referrals and other services for people caring for Veterans.",
        href: "https://www.caregiver.va.gov/",
      },
      {
        name: "VA Homeless Programs",
        description:
          "Housing, health care, employment, outreach and support resources for Veterans who are homeless or at risk of homelessness.",
        href: "https://www.va.gov/homeless/",
      },
    ],
  },
  {
    title: "LGBTQ+ Support",
    intro:
      "Confidential peer support, community resources and specialized help for LGBTQ+ people, young people and families.",
    resources: [
      {
        name: "The Trevor Project",
        description:
          "Crisis counseling and support designed specifically for LGBTQ+ young people.",
        href: "https://www.thetrevorproject.org/get-help/",
      },
      {
        name: "PFLAG — Get Support",
        description:
          "Peer support through local chapters, virtual meetings and resources for LGBTQ+ people and the people who love them.",
        href: "https://pflag.org/get-support/",
      },
      {
        name: "LGBT National Help Center",
        description:
          "Free confidential peer support, online programs and connections to local LGBTQ+ resources for people of different ages.",
        href: "https://lgbthotline.org/",
      },
    ],
  },

  {
    title: "Whistleblowers, Corruption & Retaliation",
    intro:
      "Official reporting channels and protections for people reporting fraud, waste, abuse, corruption, regulatory violations or retaliation. The correct agency depends on what happened.",
    resources: [
      {
        name: "FBI — Public Corruption",
        description:
          "Learn about and report suspected bribery, kickbacks, extortion, government contract fraud, election crimes and other public corruption.",
        href: "https://www.fbi.gov/investigate/public-corruption",
      },
      {
        name: "Oversight.gov — Report Fraud, Waste, Abuse or Retaliation",
        description:
          "Use the federal Inspector General system to identify the correct agency for reporting government fraud, waste, abuse, misconduct or whistleblower retaliation.",
        href: "https://www.oversight.gov/where-report-fraud-waste-abuse-or-retaliation",
      },
      {
        name: "U.S. Office of Special Counsel — Disclosure of Wrongdoing",
        description:
          "Secure federal channel for eligible current or former federal executive-branch employees and applicants reporting violations, gross mismanagement, waste, abuse of authority or serious dangers.",
        href: "https://www.osc.gov/services/disclosure-of-wrongdoing/overview/",
      },
      {
        name: "GAO FraudNet",
        description:
          "Report suspected fraud, waste, abuse or mismanagement involving federal funds or federal programs to the Government Accountability Office.",
        href: "https://www.gao.gov/about/what-gao-does/fraudnet",
      },
      {
        name: "SEC Whistleblower Program",
        description:
          "Official channel for tips involving possible violations of federal securities laws, including certain investment and corporate misconduct.",
        href: "https://www.sec.gov/enforcement-litigation/whistleblower-program",
      },
      {
        name: "CFTC Whistleblower Program",
        description:
          "Report potential Commodity Exchange Act violations involving commodities, derivatives, market manipulation or related fraud.",
        href: "https://www.whistleblower.gov/",
      },
      {
        name: "IRS Whistleblower Office",
        description:
          "Official information for reporting significant tax noncompliance and understanding the IRS whistleblower claim process.",
        href: "https://www.irs.gov/compliance/whistleblower-office",
      },
      {
        name: "DOJ Office of Inspector General Hotline",
        description:
          "Report fraud, waste, abuse, misconduct or whistleblower reprisal involving Department of Justice employees, programs, contracts or grants.",
        href: "https://oig.justice.gov/hotline",
      },
    ],
  },


  {
    title: "Disasters & Traumatic Events",
    intro:
      "Emotional support, emergency assistance and recovery resources following natural or human-caused disasters.",
    resources: [
      {
        name: "SAMHSA Disaster Distress Helpline",
        description:
          "Crisis counseling and emotional support for distress related to disasters and traumatic events.",
        href: "https://www.samhsa.gov/find-help/helplines",
      },
      {
        name: "American Red Cross — Disaster Recovery",
        description:
          "Information about emergency shelter, disaster assistance and steps to begin recovering after a disaster.",
        href: "https://www.redcross.org/get-help/disaster-relief-and-recovery-services.html",
      },
      {
        name: "DisasterAssistance.gov",
        description:
          "Federal starting point for locating and applying for disaster assistance after a federally declared disaster.",
        href: "https://www.disasterassistance.gov/",
      },
    ],
  },
];

const page: CSSProperties = {
  minHeight: "100vh",
  background:
    "radial-gradient(circle at 75% 10%, rgba(181,139,70,.17), transparent 32%), #0c1c16",
  color: "#f6f3ea",
};

const shell: CSSProperties = {
  width: "min(1120px, calc(100% - 36px))",
  margin: "0 auto",
};

const header: CSSProperties = {
  display: "flex",
  justifyContent: "space-between",
  alignItems: "center",
  gap: 20,
  padding: "28px 0",
};

const hero: CSSProperties = {
  padding: "80px 0 54px",
  maxWidth: 850,
};

const eyebrow: CSSProperties = {
  color: "#d3a354",
  textTransform: "uppercase",
  letterSpacing: ".16em",
  fontWeight: 700,
  fontSize: 13,
};

const title: CSSProperties = {
  fontFamily: "Georgia, 'Times New Roman', serif",
  fontSize: "clamp(44px, 7vw, 78px)",
  lineHeight: 1.02,
  fontWeight: 500,
  margin: "18px 0 24px",
};

const button: CSSProperties = {
  display: "inline-block",
  padding: "11px 15px",
  background: "#d3a354",
  color: "#102019",
  textDecoration: "none",
  fontWeight: 700,
  borderRadius: 3,
  marginTop: 14,
};

const secondaryButton: CSSProperties = {
  ...button,
  background: "transparent",
  color: "#f6f3ea",
  border: "1px solid rgba(246,243,234,.35)",
  marginRight: 8,
};

type HelpDirectoryProps = {
  standalone?: boolean;
};

export default function HelpDirectory({
  standalone = false,
}: HelpDirectoryProps) {
  return (
    <section id="find-help" style={page}>
      <div style={shell}>
        {standalone && (
          <>

        <header style={header}>
          <Link
            href="/"
            style={{ color: "#f6f3ea", textDecoration: "none", fontWeight: 700 }}
          >
            Toshin Samuels
          </Link>

          <Link
            href="/"
            style={{ color: "#d8d6ce", textDecoration: "none", fontSize: 14 }}
          >
            ← The Steward&apos;s Promise
          </Link>
        </header>
          </>
        )}

        <section style={hero}>
          <p style={eyebrow}>Free Resources</p>
          <h1 style={title}>Find the help you need. Start here.</h1>
          <p
            style={{
              color: "#d8d6ce",
              fontSize: 20,
              lineHeight: 1.7,
              maxWidth: 760,
            }}
          >
            This page brings together free national helplines, nonprofit
            organizations, treatment locators, support groups and practical
            resources. You do not have to know exactly what kind of help you
            need before reaching out.
          </p>
        </section>

        <aside
          style={{
            border: "1px solid rgba(211,163,84,.4)",
            background: "rgba(211,163,84,.08)",
            padding: 24,
            borderRadius: 8,
            marginBottom: 55,
          }}
        >
          <strong style={{ color: "#d3a354" }}>If you need help right now</strong>
          <p style={{ lineHeight: 1.65, color: "#e5e1d7" }}>
            If there is immediate danger or a life-threatening emergency, call
            911. For suicidal crisis or emotional distress, call or text 988.
            If you are unsure where to begin with local services, call 211.
          </p>

          <a href="tel:988" style={secondaryButton}>
            Call 988
          </a>
          <a href="sms:988" style={secondaryButton}>
            Text 988
          </a>
          <a href="tel:211" style={secondaryButton}>
            Call 211
          </a>
        </aside>

        {groups.map((group) => (
          <section
            key={group.title}
            style={{
              padding: "42px 0",
              borderTop: "1px solid rgba(255,255,255,.11)",
            }}
          >
            <p style={eyebrow}>Find Help</p>
            <h2
              style={{
                fontFamily: "Georgia, 'Times New Roman', serif",
                fontSize: "clamp(30px, 4vw, 44px)",
                fontWeight: 500,
                margin: "8px 0 10px",
              }}
            >
              {group.title}
            </h2>

            <p style={{ color: "#bfc4bd", lineHeight: 1.65, maxWidth: 720 }}>
              {group.intro}
            </p>

            <div className={styles.rail}>
              {group.resources.map((resource) => (
                <article key={resource.name} className={styles.card}>
                  <div>
                    <h3 style={{ marginTop: 0, fontSize: 20 }}>
                      {resource.name}
                    </h3>
                    <p
                      style={{
                        color: "#c8cbc5",
                        lineHeight: 1.6,
                        fontSize: 15,
                      }}
                    >
                      {resource.description}
                    </p>
                  </div>

                  <div>
                    {resource.callHref && resource.callLabel && (
                      <a href={resource.callHref} style={secondaryButton}>
                        {resource.callLabel}
                      </a>
                    )}

                    {resource.textHref && resource.textLabel && (
                      <a href={resource.textHref} style={secondaryButton}>
                        {resource.textLabel}
                      </a>
                    )}

                    <a
                      href={resource.href}
                      target="_blank"
                      rel="noopener noreferrer"
                      style={button}
                    >
                      Visit Resource ↗
                    </a>
                  </div>
                </article>
              ))}
            </div>
          </section>
        ))}

        <footer
          style={{
            padding: "55px 0 80px",
            borderTop: "1px solid rgba(255,255,255,.11)",
            color: "#aeb5ad",
            fontSize: 14,
            lineHeight: 1.7,
          }}
        >
          <p>
            These organizations and services are independent of ToshinSamuels.com
            and Overcomers Society. Inclusion is intended to help people find a
            starting point and does not constitute medical, legal or professional
            advice or an endorsement of any particular treatment or organization.
            Services, eligibility and availability can change.
          </p>
          <p>Resource links reviewed August 20, 2026.</p>
        </footer>
      </div>
    </section>
  );
}
