/* Reset default styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Light mode (default) */
body {
    background-color: #f5f5f5;
    color: #333;
}

/* Dark mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Container */
section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

body.dark-mode header {
    background-color: #0052cc;
}

/* Navigation */
header nav a {
    color: #ffffff; /* White for high contrast in light mode */
    text-decoration: none;
    margin: 0 10px;
}

body.dark-mode header nav a {
    color: #4da8ff;
}

header nav a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2 {
    font-weight: 600;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

body.dark-mode a {
    color: #4da8ff;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 20px;
}

/* Post metadata */
.post-meta {
    font-size: 0.9em; /* Smaller font size for date, category, tags */
    margin: 5px 0 0 0; /* Minimal top margin, no bottom margin */
    line-height: 1.2; /* Reduced line height for compactness */
}

/* Inline display for category and tags */
.post-meta a {
    margin-right: 5px;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.9em; /* Smaller font size */
    font-style: italic; /* Italicized text */
}

/* Buttons */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

body.dark-mode button {
    background-color: #4da8ff;
}

button:hover {
    background-color: #0056b3;
}

body.dark-mode button:hover {
    background-color: #003d99;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #e9ecef;
    margin-top: 20px;
}

body.dark-mode footer {
    background-color: #2c2c2c;
}

/* Responsive design */
@media (max-width: 600px) {
    section {
        padding: 10px;
    }
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.2em;
    }
    .post-meta {
        font-size: 0.8em;
    }
    .disclaimer {
        font-size: 0.8em; /* Even smaller on mobile */
    }
}
