/* Custom Theme for AI Agents Course */

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

/* Better typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.3em;
}

h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.2em;
}

/* Code blocks */
pre {
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Inline code in headings */
h1 code, h2 code, h3 code {
    background-color: transparent;
    color: inherit;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background-color: #f9fafb;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--accent-color);
    background-color: #f0f9ff;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 4px;
}

/* Lists */
ul, ol {
    line-height: 1.8;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s;
}

a:hover {
    border-bottom: 1px solid var(--primary-color);
}

/* Callout boxes */
.warning {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

.info {
    background-color: #dbeafe;
    border-left: 4px solid var(--primary-color);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

.success {
    background-color: #d1fae5;
    border-left: 4px solid var(--success-color);
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

/* Chapter navigation */
.nav-chapters {
    font-size: 0.95em;
}

/* Sidebar */
.sidebar {
    background-color: #f9fafb;
}

.chapter li.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .nav-chapters, .mobile-nav-chapters {
        display: none;
    }
    
    pre {
        page-break-inside: avoid;
    }
}

/* Callout Boxes with Emojis */
blockquote p:first-child {
    margin-top: 0;
}

/* Key Takeaways */
blockquote:has(strong:first-child) {
    background-color: #f0fdf4;
    border-left: 4px solid var(--success-color);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Mermaid diagram styling */
.mermaid {
    text-align: center;
    margin: 2em auto;
    background-color: #ffffff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Logo styling */
.sidebar .sidebar-logo {
    text-align: center;
    padding: 1.5em 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1em;
}

.sidebar .sidebar-logo img {
    max-width: 120px;
    height: auto;
}
