/* ghmd-blog demosten light theme - Based on classic demosten.com design */

:root[data-theme="light"] {
    /* Colors - Demosten light theme - Classic ivory & royal blue */
    --bg-primary: #FFFFF0;            /* Ivory - classic demosten background */
    --bg-secondary: #FFFACD;          /* Lemon chiffon - for alternating sections */
    --bg-code: #F6F6F6;               /* Light gray - code blocks */
    --text-primary: #191970;          /* Midnight blue - main text */
    --text-secondary: #023290;        /* Dark blue - secondary text/headings */
    --text-muted: #4a4556;            /* Muted text */
    --accent: #4169E1;                /* Royal blue - links and accents */
    --accent-hover: #A52A2A;          /* Brown - hover state */
    --border: #DEB887;                /* Burlywood - borders */
    --shadow: rgba(65, 105, 225, 0.1); /* Royal blue shadow */

    /* Syntax highlighting colors - Modernized demosten palette */
    --syntax-comment: #CD853F;        /* Peru/tan - inline code color from classic site */
    --syntax-keyword: #4169E1;        /* Royal blue - keywords */
    --syntax-string: #059669;         /* Emerald green - strings */
    --syntax-number: #B22222;         /* Firebrick red - numbers (warning color) */
    --syntax-function: #023290;       /* Dark blue - functions */
    --syntax-class: #FFD700;          /* Gold - classes (accent color) */
    --syntax-operator: #A52A2A;       /* Brown - operators */
    --syntax-builtin: #0099FD;        /* Sky blue - builtins (table header color) */
    --syntax-variable: #CD853F;       /* Peru - variables */
    --syntax-escape: #FFBB66;         /* Light orange - escape sequences */
    --syntax-attribute: #DEB887;      /* Burlywood - attributes */
    --syntax-tag: #4169E1;            /* Royal blue - tags */
    --syntax-decorator: #0099FD;      /* Sky blue - decorators */

    /* Typography */
    --font-size-base: 17px;
    --line-height: 1.7;

    /* Spacing */
    --content-width: 720px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* Demosten table styling - Light mode */
:root[data-theme="light"] .post-content table {
    margin: 1rem 0;
    border-collapse: separate;
    border-spacing: 3px;  /* Space between cells like demosten.com */
}

:root[data-theme="light"] .post-content th {
    background-color: #0099FD;
    background-image: linear-gradient(180deg, #0099FD 0%, #0080dd 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    border-left: none;
    border-right: none;
}

:root[data-theme="light"] .post-content thead th {
    border-top: 2px solid white;
}

:root[data-theme="light"] .post-content tfoot th {
    border-bottom: 2px solid white;
}

:root[data-theme="light"] .post-content td {
    color: #191970;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    border: none;
}

:root[data-theme="light"] .post-content tbody tr:nth-child(odd) {
    background-color: #FFFACD;  /* Lemon chiffon - alternating rows */
}

:root[data-theme="light"] .post-content tbody tr:nth-child(even) {
    background-color: transparent;  /* Shows page background (ivory) */
}

:root[data-theme="light"] .post-content caption {
    background-color: #FFD700;
    color: #191970;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    caption-side: top;
}
