/* Add your custom CSS rules here */
body {
    font-family: 'Vazirmatn', sans-serif; /* A nice Persian font */
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* --- Dark Mode Styles --- */

/* Default light mode variables (optional but good practice) */
body {
    --bg-color: #f8f9fa; /* Light grey background */
    --text-color: #212529; /* Dark text */
    --card-bg: #ffffff; /* White cards */
    --card-border: rgba(0, 0, 0, 0.125);
    --link-color: #0d6efd;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark mode variable overrides */
body.dark-mode {
    --bg-color: #121212; /* Dark background */
    --text-color: #e0e0e0; /* Light text */
    --card-bg: #1e1e1e; /* Slightly lighter dark for cards */
    --card-border: rgba(255, 255, 255, 0.1);
    --link-color: #6ea8fe;
}

/* Apply the variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

.card-title, .card-text, h1, h2, h3, h4, h5, p, .lead {
    color: var(--text-color);
}

a {
    color: var(--link-color);
}

/* Style for the theme switcher button */
.theme-switch-btn {
    cursor: pointer;
    font-size: 1.5rem; /* Make the icon a bit bigger */
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0 10px;
}

/* Style for the article content in dark mode */
.dark-mode .article-body, .dark-mode .article-body p {
    color: #c9d1d9; /* A slightly softer white for reading */
}
