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

export const darkAcademia: StyleOption = {
  id: 'dark-academia',
  name: 'Dark Academia',
  category: 'Academic',
  description: 'Moody, literary aesthetic. Tweed textures, old libraries, and classic serif typography.',
  vibe: 'Moody, Scholarly, Literary',
  googleFontsImport: 'https://fonts.googleapis.com/css2?family=Alegreya:wght@400;700&family=Alegreya+SC:wght@400;700&display=swap',
  typography: {
    fonts: {
      heading: 'Alegreya SC',
      body: 'Alegreya',
      code: 'Alegreya'
    },
    colors: {
      text: '212121',
      textSecondary: '4E342E',
      background: 'F5F1E8',
      accent: '5D4037',
      border: '5D4037',
      codeBg: 'EFEBE9',
      blockquoteBorder: '3E2723'
    }
  },
  elements: {
    h1: {
      font: 'heading',
      size: 28,
      color: '3E2723',
      bold: true,
      align: 'center',
      spacing: { before: 24, after: 14, line: 1.2 },
      border: { color: '5D4037', width: 4, style: 'double' }
    },
    h2: {
      font: 'body',
      size: 16,
      color: '4E342E',
      bold: true,
      italic: true,
      align: 'left',
      spacing: { before: 18, after: 9, line: 1.2 }
    },
    h3: {
      font: 'body',
      size: 14,
      color: '4E342E',
      bold: true,
      align: 'left',
      spacing: { before: 15, after: 7.5, line: 1.2 }
    },
    h4: {
      font: 'body',
      size: 12,
      color: '5D4037',
      bold: true,
      align: 'left',
      spacing: { before: 12, after: 6, line: 1.2 }
    },
    h5: {
      font: 'body',
      size: 11,
      color: '5D4037',
      bold: true,
      italic: true,
      align: 'left',
      spacing: { before: 10, after: 5, line: 1.2 }
    },
    h6: {
      font: 'body',
      size: 10,
      color: '6D4C41',
      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: 9, line: 1.8 }
    },
    blockquote: {
      font: 'body',
      size: 10,
      color: '4E342E',
      italic: true,
      spacing: { before: 14, after: 14, line: 1.6 },
      padding: 10,
      borderLeft: { color: '3E2723', width: 2, style: 'solid' }
    },
    code: {
      font: 'code',
      size: 10,
      color: '3E2723',
      background: 'EFEBE9'
    },
    pre: {
      font: 'code',
      size: 10,
      color: '3E2723',
      background: 'EFEBE9',
      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: '3E2723',
      bold: true,
      background: 'EFEBE9',
      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: '5D4037', width: 2, style: 'single' },
      spacing: { before: 12, after: 12, line: 1 }
    },
    img: {
      align: 'center',
      spacing: { before: 12, after: 12, line: 1 }
    }
  }
};
