/* FeelSharp Documentation Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Navigation */
.nav-back {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.nav-back a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    font-size: 1rem;
}

.nav-back a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.3rem;
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
}

/* Content styling */
p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

/* Code blocks - enhance pandoc styles */
pre {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    overflow-x: auto;
    font-size: 0.9rem;
}

code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: #e74c3c;
}

pre code {
    background: none !important;
    padding: 0 !important;
    color: inherit !important;
}

/* Badges and images */
img {
    max-width: 100%;
    height: auto;
    margin: 0.25rem;
}

/* Special highlights */
.highlight {
    background: #e8f6f3;
    padding: 1.5rem;
    border-left: 4px solid #27ae60;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning {
    background: #fef9e7;
    padding: 1.5rem;
    border-left: 4px solid #f39c12;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    pre {
        padding: 1rem !important;
        font-size: 0.8rem;
    }
}

/* Footer navigation */
.footer-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Enhance pandoc syntax highlighting */
.sourceCode {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* Custom enhancements for FeelSharp docs */
.feature-list li {
    margin-bottom: 0.75rem;
}

.api-method {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.api-method h4 {
    margin-top: 0;
    color: #2980b9;
}