/* This file requires /css/styles.css to be loaded first for base variables and styles */

@import '/css/components/buttons.css';
@import '/css/components/cards.css';
@import '/css/components/navigation.css';

/* ===== Blog-Specific CSS Variables ===== */
:root {
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* ===== Blog-Specific Dark Theme Overrides ===== */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d3748;
    --bg-accent: #4a5568;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --border-color: #4a5568;
}

/* ===== Blog Layout Overrides ===== */
.container {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 20px auto;
    padding: 30px;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Navigation (moved to components/navigation.css) ===== */

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
}

.theme-toggle:hover {
    background: var(--bg-accent);
}

.main-navigation a.active {
    background: var(--primary-color);
    color: white;
}

/* ===== Typography ===== */
h1 { font-size: 2.8rem; font-weight: 700; margin: 30px 0; line-height: 1.2; }
h2 { font-size: 1.8rem; font-weight: 600; margin: 40px 0 20px 0; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; }
h3 { font-size: 1.4rem; font-weight: 600; margin: 30px 0 15px 0; }
h4 { font-size: 1.2rem; font-weight: 600; margin: 25px 0 10px 0; }
p { margin: 20px 0; line-height: 1.7; }
.subtitle { font-style: italic; font-size: 1.2rem; color: var(--text-secondary); text-align: center; margin: -10px 0 40px 0; }

/* ===== Article Components (moved to components/cards.css) ===== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Benefit items moved to components/cards.css */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.comparison-table th { background: var(--primary-color); color: white; font-weight: 600; }

.comparison-table tr:hover {
    background: var(--bg-accent);
}

.code-block {
    background: var(--dark-color);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
}

/* Highlight boxes moved to components/cards.css */

ul, ol { margin: 20px 0; padding-left: 30px; }
li { margin: 8px 0; line-height: 1.6; }
a { color: var(--primary-color); text-decoration: underline; transition: color 0.3s ease; }
a:hover { color: var(--info-color); }

.cta-section {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--info-color)
    );
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

/* CTA sections and buttons moved to components/cards.css and components/buttons.css */

/* Navigation links moved to components/navigation.css */

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container { margin: 10px; padding: 20px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }
    .theme-toggle { position: static; display: block; margin: 0 0 20px auto; width: fit-content; }
    .comparison-table { font-size: 0.9rem; }
    .comparison-table th, .comparison-table td { padding: 10px 8px; }
    .benefits-grid { grid-template-columns: 1fr; }
    /* Button and navigation responsive styles moved to components */
}

/* ===== Text Readability Fixes (moved to components/cards.css) ===== */
