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

export const historyTextbook: StyleOption = {
  id: 'history-textbook',
  name: 'History Textbook',
  category: 'Academic',
  description: 'Classic textbook design. Sepia tones, distinct serif headers, and wide margins for notes.',
  vibe: 'Classic, Educational, Historical',
  googleFontsImport: 'https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&family=Sorts+Mill+Goudy&display=swap',
  typography: {
    fonts: {
      heading: 'Goudy Bookletter 1911',
      body: 'Sorts Mill Goudy',
      code: 'Sorts Mill Goudy'
    },
    colors: {
      text: '212121',
      textSecondary: '3E2723',
      background: 'FFF8E1',
      accent: '8D6E63',
      border: '8D6E63',
      codeBg: 'FFF3E0',
      blockquoteBorder: '8D6E63'
    }
  },
  elements: {
    h1: {
      font: 'heading',
      size: 28,
      color: '5D4037',
      bold: false,
      align: 'left',
      spacing: { before: 20, after: 10, line: 1.2 },
      border: { color: '8D6E63', width: 2, style: 'single' }
    },
    h2: {
      font: 'body',
      size: 16,
      color: '3E2723',
      bold: false,
      align: 'left',
      spacing: { before: 15, after: 7.5, line: 1.2 }
    },
    h3: {
      font: 'body',
      size: 14,
      color: '4E342E',
      bold: true,
      align: 'left',
      spacing: { before: 12, after: 6, line: 1.2 }
    },
    h4: {
      font: 'body',
      size: 12,
      color: '5D4037',
      bold: true,
      align: 'left',
      spacing: { before: 10, after: 5, line: 1.2 }
    },
    h5: {
      font: 'body',
      size: 11,
      color: '6D4C41',
      bold: true,
      align: 'left',
      spacing: { before: 8, after: 4, line: 1.2 }
    },
    h6: {
      font: 'body',
      size: 10,
      color: '795548',
      bold: true,
      align: 'left',
      spacing: { before: 6, after: 3, line: 1.2 }
    },
    p: {
      font: 'body',
      size: 11,
      color: '212121',
      align: 'left',
      spacing: { before: 0, after: 8, line: 1.7 }
    },
    blockquote: {
      font: 'body',
      size: 10,
      color: '3E2723',
      spacing: { before: 10, after: 10, line: 1.5 },
      padding: 16,
      background: 'FFFFFF',
      border: { color: '8D6E63', width: 1, style: 'single' }
    },
    code: {
      font: 'code',
      size: 10,
      color: '5D4037',
      background: 'FFF3E0'
    },
    pre: {
      font: 'code',
      size: 10,
      color: '5D4037',
      background: 'FFF3E0',
      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: '5D4037',
      underline: true
    },
    table: {
      spacing: { before: 12, after: 12, line: 1.4 }
    },
    th: {
      font: 'heading',
      size: 11,
      color: '5D4037',
      bold: true,
      background: 'FFF3E0',
      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: '8D6E63', width: 1, style: 'single' },
      spacing: { before: 12, after: 12, line: 1 }
    },
    img: {
      align: 'center',
      spacing: { before: 12, after: 12, line: 1 }
    }
  }
};
