import type { CategorySlug } from "@/config/site";

export interface ArticleCardData {
  slug: string;
  title: string;
  summary: string;
  category: CategorySlug;
  sourceName: string;
  sourceUrl?: string;
  imageUrl?: string;
  publishedAt: string; // ISO
  readingTimeMinutes: number;
  views: number;
  isBreaking?: boolean;
}

/** Another outlet covering the same event — powers "تغطية الخبر" (spec §7). */
export interface CoverageSource {
  sourceName: string;
  sourceUrl: string;
}

export interface ArticleDetailData extends ArticleCardData {
  originalTitle: string;
  tags: string[];
  relatedTopics: string[];
  coverage: CoverageSource[]; // other sources reporting the same topic
  relatedSlugs: string[]; // manually curated related-article slugs
}

