/* Fil-C CSS - Red, White, and Near-Black Theme */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Consolas', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.header {
    background-color: #c41230;
    color: #ffffff;
    padding: 20px 40px;
    border-bottom: 4px solid #8a0d22;
}

.header h1 {
    color: #ffffff;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 2.5em;
}

.header p {
    color: #ffffff;
    margin: 0.5em 0 0 0;
    font-size: 1.1em;
}

.header hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1em 0;
}

.header em {
    color: #ffffff;
    opacity: 0.9;
}

/* Container for sidebar and main content */
.container {
    display: flex;
    width: 100%;
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-right: 2px solid #c41230;
    flex-shrink: 0;
}

.sidebar p {
    margin-bottom: 0.8em;
}

.sidebar a {
    color: #c41230;
    text-decoration: none;
    border-bottom: 1px dotted #c41230;
    transition: all 0.2s ease;
    display: inline-block;
    width: 100%;
    padding: 0.2em 0;
}

.sidebar a:hover {
    color: #8a0d22;
    border-bottom: 1px solid #8a0d22;
}

/* Main content area */
.content {
    flex: 1;
    padding: 40px 40px;
    max-width: 900px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #c41230;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    border-bottom: 3px solid #c41230;
    padding-bottom: 0.3em;
    margin-top: 0;
}

/* Add padding above h1 only if it's not the first element in content */
.content h1:not(:first-child) {
    padding-top: 1.5em;
}

h2 {
    font-size: 2em;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.2em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
}

/* Paragraphs and text */
p {
    margin-bottom: 1em;
}

/* Links */
a {
    color: #c41230;
    text-decoration: none;
    border-bottom: 1px dotted #c41230;
    transition: all 0.2s ease;
}

a:hover {
    color: #8a0d22;
    border-bottom: 1px solid #8a0d22;
}

/* Lists */
ul, ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

li {
    margin-bottom: 0.3em;
}

/* Code blocks */
pre {
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #c41230;
    padding: 1em;
    margin-bottom: 1em;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.4;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Consolas', monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.95em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #c41230;
    margin: 1.5em 0;
    padding-left: 1em;
    color: #555;
    font-style: italic;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

th, td {
    border: 1px solid #e5e5e5;
    padding: 0.5em 1em;
    text-align: left;
}

th {
    background-color: #f8f8f8;
    color: #c41230;
    font-weight: 700;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 2px solid #c41230;
    margin: 2em 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

/* Strong and emphasis */
strong {
    font-weight: 700;
    color: #0a0a0a;
}

em {
    font-style: italic;
}

.centered-svg-60 {
    display: block;
    margin: 2em auto;
    width: 60%;
    height: auto;
}

.centered-svg-80 {
    display: block;
    margin: 2em auto;
    width: 80%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .container {
        display: block;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 2px solid #c41230;
        padding: 20px 15px;
    }
    
    .content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.25em;
    }
    
    .centered-svg-60,
    .centered-svg-80 {
        width: 100%;
    }
}
