import { StyleOption } from '../../../types';

export const mathematicsPaper: StyleOption = {
  id: 'mathematics-paper',
  name: 'Mathematics Paper',
  category: 'Academic',
  description: 'Inspired by LaTeX and Computer Modern. Serif-heavy, precise, and highly legible for academic rigor.',
  vibe: 'Academic, Rigorous, Formal',
  googleFontsImport: 'https://fonts.googleapis.com/css2?family=Domine:wght@400;700&family=Noticia+Text:wght@400;700&display=swap',
  typography: {
    fonts: {
      heading: 'Domine',
      body: 'Noticia Text',
      code: 'Noticia Text'
    },
    colors: {
      text: '212121',
      textSecondary: '424242',
      background: 'FFFFFF',
      accent: '000000',
      border: '000000',
      codeBg: 'F5F5F5',
      blockquoteBorder: '000000'
    }
  },
  elements: {
    h1: {
      font: 'heading',
      size: 24,
      color: '000000',
      bold: true,
      align: 'center',
      spacing: { before: 20, after: 12, line: 1.2 }
    },
    h2: {
      font: 'heading',
      size: 14,
      color: '000000',
      bold: true,
      align: 'left',
      spacing: { before: 16, after: 8, line: 1.2 }
    },
    h3: {
      font: 'heading',
      size: 12,
      color: '000000',
      bold: true,
      align: 'left',
      spacing: { before: 14, after: 7, line: 1.2 }
    },
    h4: {
      font: 'body',
      size: 11,
      color: '212121',
      bold: true,
      align: 'left',
      spacing: { before: 12, after: 6, line: 1.2 }
    },
    h5: {
      font: 'body',
      size: 10,
      color: '424242',
      bold: true,
      align: 'left',
      spacing: { before: 10, after: 5, line: 1.2 }
    },
    h6: {
      font: 'body',
      size: 10,
      color: '616161',
      bold: true,
      align: 'left',
      spacing: { before: 8, after: 4, line: 1.2 }
    },
    p: {
      font: 'body',
      size: 11,
      color: '212121',
      align: 'both',
      spacing: { before: 0, after: 8, line: 1.6 }
    },
    blockquote: {
      font: 'body',
      size: 10,
      color: '212121',
      italic: true,
      spacing: { before: 12, after: 12, line: 1.5 },
      padding: 10,
      background: 'F5F5F5',
      borderLeft: { color: '000000', width: 3, style: 'solid' }
    },
    code: {
      font: 'code',
      size: 10,
      color: '000000',
      background: 'F5F5F5'
    },
    pre: {
      font: 'code',
      size: 10,
      color: '000000',
      background: 'F5F5F5',
      spacing: { before: 12, after: 12, line: 1.4 },
      padding: 12
    },
    ul: {
      spacing: { before: 8, after: 8, line: 1.5 }
    },
    ol: {
      spacing: { before: 8, after: 8, line: 1.5 }
    },
    li: {
      font: 'body',
      size: 11,
      color: '212121',
      spacing: { before: 4, after: 4, line: 1.5 }
    },
    strong: {
      bold: true
    },
    em: {
      italic: true
    },
    a: {
      color: '000000',
      underline: true
    },
    table: {
      spacing: { before: 12, after: 12, line: 1.4 }
    },
    th: {
      font: 'heading',
      size: 11,
      color: '000000',
      bold: true,
      background: 'F5F5F5',
      spacing: { before: 6, after: 6, line: 1.4 }
    },
    td: {
      font: 'body',
      size: 11,
      color: '212121',
      spacing: { before: 6, after: 6, line: 1.4 }
    },
    hr: {
      border: { color: '000000', width: 1, style: 'single' },
      spacing: { before: 12, after: 12, line: 1 }
    },
    img: {
      align: 'center',
      spacing: { before: 12, after: 12, line: 1 }
    }
  }
};
