/* MolCrawl Documentation Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --code-bg: #1f2937;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.model-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.model-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Code Block */
.code-block {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #e5e7eb;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Link Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.link-card {
    display: block;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.link-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-light);
}

/* Section lead / note */
.section-lead {
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.section-lead a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.section-lead a:hover {
    text-decoration: underline;
}

.section-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.section-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.section-note a:hover {
    text-decoration: underline;
}

/* Model Table */
.model-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    background: white;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.model-table thead {
    background: var(--primary-color);
    color: white;
}

.model-table th,
.model-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.model-table thead th {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: none;
}

.model-table tbody th {
    background: var(--bg-alt);
    color: var(--text-color);
    font-weight: 600;
    width: 18%;
}

.model-matrix tbody th {
    width: 30%;
    text-align: left;
    white-space: nowrap;
}

.model-matrix td {
    text-align: center;
}

.cell-empty {
    color: var(--text-light);
    opacity: 0.55;
}

.subsection-title {
    margin: 2.5rem 0 1.25rem;
    color: var(--text-color);
    font-size: 1.4rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.75rem;
}

.subsection-title:first-of-type {
    margin-top: 0.5rem;
}

.models-loading {
    text-align: center;
    color: var(--text-light);
    padding: 2.5rem 1rem;
    font-style: italic;
}

.models-error {
    color: #92400e;
    background: #fef3c7;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.models-error a {
    color: #92400e;
    text-decoration: underline;
}

.models-meta {
    text-align: right;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.models-meta a {
    color: var(--text-light);
}

.models-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.models-list li {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.88rem;
}

.models-list li:last-child {
    border-bottom: none;
}

.models-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.models-list a:hover {
    text-decoration: underline;
}

.model-table tbody tr:last-child td,
.model-table tbody tr:last-child th {
    border-bottom: none;
}

.model-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.88rem;
    word-break: break-all;
}

.model-table a:hover {
    text-decoration: underline;
}

.model-table code {
    color: var(--text-light);
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.88rem;
    word-break: break-all;
    background: transparent;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-public {
    background: #d1fae5;
    color: #065f46;
}

.status-wip {
    background: #fef3c7;
    color: #92400e;
}

.status-private {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 768px) {
    .model-table {
        font-size: 0.85rem;
    }

    .model-table th,
    .model-table td {
        padding: 0.6rem 0.75rem;
    }
}

/* Footer */
footer {
    background: var(--code-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }
}
