import type { TirthaEntry, TirthaSloka } from './types.js'

// The seven sacred rivers (sapta nadī) invoked in the snāna-mantra
// "Gaṅge ca Yamune caiva…". `location` carries the river’s flow/geography and
// `state` is omitted (rivers span several). Only Sarasvatī maps to an in-scope
// roster deity (the goddess of knowledge); the other river-goddesses are not in
// the 19-deity roster, so `deity: null`. Verified across Wikipedia (Rivers in
// Hinduism) + greenmesg / a temple liturgical page (the śloka).

export const SACRED_RIVERS: readonly TirthaEntry[] = [
  {
    id: 'ganga',
    category: 'sacred-river',
    name: { en: 'Ganga', hi: 'गंगा' },
    nameSanskrit: 'गङ्गा',
    location: {
      en: 'Rises at Gaumukh / Gangotri (Himalayas); flows across the north Indian plains to the Bay of Bengal.',
      hi: 'गौमुख / गंगोत्री (हिमालय) से निकलकर उत्तर भारत के मैदानों से होती हुई बंगाल की खाड़ी में मिलती है।',
    },
    deity: null,
    significance: {
      en: 'The holiest river — bathing in her is said to wash away sin and aid liberation.',
      hi: 'पवित्रतम नदी — उनमें स्नान पाप-नाशक एवं मोक्षदायक माना जाता है।',
    },
  },
  {
    id: 'yamuna',
    category: 'sacred-river',
    name: { en: 'Yamuna', hi: 'यमुना' },
    nameSanskrit: 'यमुना',
    location: {
      en: 'Rises at Yamunotri (Himalayas); flows through north India and joins the Ganga at the Prayagraj Sangam.',
      hi: 'यमुनोत्री (हिमालय) से निकलकर उत्तर भारत से बहती हुई प्रयागराज संगम पर गंगा में मिलती है।',
    },
    deity: null,
    significance: {
      en: 'The river-goddess of Krishna\'s Braj, twin of Yama; beloved of the Vrindavan lila.',
      hi: 'कृष्ण के ब्रज की नदी-देवी, यम की भगिनी; वृन्दावन-लीला की प्रिय।',
    },
  },
  {
    id: 'godavari',
    category: 'sacred-river',
    name: { en: 'Godavari', hi: 'गोदावरी' },
    nameSanskrit: 'गोदावरी',
    location: {
      en: 'Rises in the Brahmagiri hills at Trimbak (Maharashtra); flows southeast across the Deccan to the Bay of Bengal.',
      hi: 'त्र्यम्बक (महाराष्ट्र) की ब्रह्मगिरि पहाड़ियों से निकलकर दक्कन से होती हुई बंगाल की खाड़ी में मिलती है।',
    },
    deity: null,
    significance: {
      en: 'The "Dakshina Ganga" (Ganges of the South); linked to Rama\'s exile in the Dandakaranya.',
      hi: '"दक्षिण गंगा"; दण्डकारण्य में राम के वनवास से सम्बद्ध।',
    },
  },
  {
    id: 'saraswati',
    category: 'sacred-river',
    name: { en: 'Saraswati', hi: 'सरस्वती' },
    nameSanskrit: 'सरस्वती',
    location: {
      en: 'The lost / invisible (antahsalila) Vedic river, believed to join the Ganga–Yamuna confluence at Prayag as the unseen third stream.',
      hi: 'लुप्त / अदृश्य (अन्तःसलिला) वैदिक नदी, जो प्रयाग में गंगा-यमुना संगम में अदृश्य तीसरी धारा रूप में मिलती मानी जाती है।',
    },
    deity: 'saraswati',
    significance: {
      en: 'The Vedic river later deified as the goddess of knowledge and speech; the unseen current of the Triveni Sangam.',
      hi: 'वैदिक नदी जो आगे ज्ञान एवं वाणी की देवी रूप में पूजित हुई; त्रिवेणी संगम की अदृश्य धारा।',
    },
  },
  {
    id: 'narmada',
    category: 'sacred-river',
    name: { en: 'Narmada', hi: 'नर्मदा' },
    nameSanskrit: 'नर्मदा',
    location: {
      en: 'Rises at Amarkantak; flows westward through central India (MP and Gujarat) to the Arabian Sea.',
      hi: 'अमरकंटक से निकलकर मध्य भारत (मध्य प्रदेश एवं गुजरात) से होती हुई पश्चिम में अरब सागर में मिलती है।',
    },
    deity: null,
    significance: {
      en: 'Uniquely, her mere sight (darshana) is said to destroy sin; her river-stones are revered as Banalingas of Shiva.',
      hi: 'विशेष रूप से उनके दर्शन मात्र से पाप-नाश माना जाता है; उनके नदी-पाषाण शिव के बाणलिंग रूप में पूजित हैं।',
    },
  },
  {
    id: 'sindhu',
    category: 'sacred-river',
    name: { en: 'Sindhu (Indus)', hi: 'सिन्धु' },
    nameSanskrit: 'सिन्धु',
    location: {
      en: 'The Indus system of the northwest — from Ladakh through present-day Pakistan to the Arabian Sea.',
      hi: 'उत्तर-पश्चिम की सिन्धु प्रणाली — लद्दाख से वर्तमान पाकिस्तान होती हुई अरब सागर तक।',
    },
    deity: null,
    significance: {
      en: 'Revered through the Vedas and Puranas — the river that gave its name to "Hindu" and to India itself.',
      hi: 'वेदों एवं पुराणों में पूजित — वह नदी जिससे "हिन्दू" एवं "भारत" को नाम मिला।',
    },
  },
  {
    id: 'kaveri',
    category: 'sacred-river',
    name: { en: 'Kaveri', hi: 'कावेरी' },
    nameSanskrit: 'कावेरी',
    location: {
      en: 'Rises at Talakaveri (Brahmagiri, Karnataka); flows through Karnataka and Tamil Nadu to the Bay of Bengal.',
      hi: 'तलकावेरी (ब्रह्मगिरि, कर्नाटक) से निकलकर कर्नाटक एवं तमिलनाडु से होती हुई बंगाल की खाड़ी में मिलती है।',
    },
    deity: null,
    significance: {
      en: 'The "Dakshina Ganga" of the deep south — a purifying, life-giving river-goddess of the Tamil country.',
      hi: 'सुदूर दक्षिण की "दक्षिण गंगा" — तमिल भूमि की पावन, जीवनदायिनी नदी-देवी।',
    },
  },
]

/**
 * The sapta-nadī invocation śloka (recited while drawing bath-water, asking the
 * seven rivers to be present in it). `iast` is machine-generated from the
 * Devanagari and round-trip-verified. The metrically-correct short-i vocative
 * सरस्वति is shipped (सरस्वती circulates as a popular variant); no Purāṇic
 * source is firmly attested — see SOURCES.md.
 */
export const SAPTA_NADI_SLOKA: TirthaSloka = {
  devanagari: `गङ्गे च यमुने चैव गोदावरि सरस्वति ।
नर्मदे सिन्धु कावेरि जलेऽस्मिन् सन्निधिं कुरु ॥`,
  iast: `gaṅge ca yamune caiva godāvari sarasvati |
narmade sindhu kāveri jale'smin sannidhiṃ kuru ||`,
}
