/* IIIF-inspired color scheme */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #0d5ba6;
    --text-color: #333;
    --background-color: #fff;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --link-color: #2c5aa0;
    --link-hover: #0d5ba6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.site-title:hover {
    color: #f0f0f0;
}

.site-nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: opacity 0.3s;
}

.site-nav a:hover {
    opacity: 0.8;
}

/* Main content */
.page-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--light-gray);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--link-color);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Post styling */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edit-link {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.edit-link a {
    color: var(--link-color);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--link-color);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.edit-link a:hover {
    background-color: var(--link-color);
    color: white;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Use case styling */
.use-case-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.use-case-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.use-case-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.use-case-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.use-case-section h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.section-content {
    margin-top: 1rem;
}

.instance {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
}

.instance h3 a {
    color: var(--link-color);
    text-decoration: none;
}

.instance h3 a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.links-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.links-list a {
    color: var(--link-color);
    text-decoration: none;
}

.links-list a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Code blocks */
pre {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9rem;
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-header .wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        margin-top: 1rem;
    }

    .site-nav a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .post-title,
    .use-case-title {
        font-size: 2rem;
    }

    .use-case-section {
        padding: 1rem;
    }
}

/* Images and media */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

video {
    max-width: 100%;
    height: auto;
}

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

table th,
table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

table th {
    background-color: var(--light-gray);
    font-weight: bold;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
