export type PartnerProfile = {
  name: string;
  description: string;
  logo?: string;
  url?: string;
  /** Renders “Your logo here” slot instead of name text */
  isPlaceholder?: boolean;
};

export type PartnerSection = {
  id: string;
  title: string;
  tierLabel?: string;
  partners: PartnerProfile[];
};

const placeholder = (n: number): PartnerProfile => ({
  name: `Partner slot ${n}`,
  description: "Reserved for a summit partner. Contact us to feature your logo and brand story here.",
  isPlaceholder: true,
});

const placeholderRow = (count: number) =>
  Array.from({ length: count }, (_, i) => placeholder(i + 1));

export const partnersIntro = {
  eyebrow: "Partners 2025",
  headline: "Meet the organizations that make GRV Summit possible",
  subheadline:
    "Partner logos and profiles below are placeholders — your brand could be featured here. Get in touch to secure a slot.",
};

export const sponsorSections: PartnerSection[] = [
  {
    id: "presenting",
    title: "Our Sponsors",
    tierLabel: "Presented By",
    partners: [placeholder(1)],
  },
  {
    id: "lead",
    title: "Our Sponsors",
    tierLabel: "Lead Sponsor",
    partners: placeholderRow(2),
  },
  {
    id: "gold",
    title: "Our Sponsors",
    tierLabel: "Gold Sponsor",
    partners: placeholderRow(3),
  },
];

export const exhibitorSections: PartnerSection[] = [
  {
    id: "exhibitors",
    title: "Exhibitors",
    partners: placeholderRow(4),
  },
];

export const supporterSections: PartnerSection[] = [
  {
    id: "supporters",
    title: "Supporters",
    partners: placeholderRow(3),
  },
];

export const mediaPartnerSections: PartnerSection[] = [
  {
    id: "media",
    title: "Media Partners",
    partners: placeholderRow(2),
  },
];

/** @deprecated Use sponsorSections — kept for homepage marquee */
export const partnerTiers = sponsorSections.map((s) => ({
  id: s.id,
  name: s.tierLabel ?? s.title,
  partners: s.partners,
}));

export const marqueePartners = [
  "Your logo here",
  "Your logo here",
  "Your logo here",
  "Your logo here",
  "Your logo here",
  "Your logo here",
];

export const partnershipCta = {
  eyebrow: "Join them!",
  headline: "Let's get your brand in front of Ethiopia's top innovators.",
  subheadline:
    "Request partnership information and connect with investors, founders, and leaders across agriculture, healthcare, and education.",
};

export const championStartupCopy = {
  title: "Champion a startup",
  intro:
    "Know a venture that deserves a spot at GRV Summit or in our pitch pipeline? Recommend them here.",
  disclaimer:
    "Not every recommendation will be selected for programming or grants. This channel exists so we can also consider founders who may not reach us directly or feel hesitant to apply on their own.",
  consentLabel:
    "I agree that my information and the startup details I provide may be collected and used by the Ethiopian Diaspora Trust Fund to evaluate partnership and programming opportunities, in line with the summit privacy policy.",
};
