/* Spock GOS - Global Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Navigation Header */
.nav-header {
    border-bottom: 2px solid #1976d2;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.nav-header h1 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 1.8em;
}

.nav-header small {
    display: block;
    margin: 5px 0;
}

.nav-header a {
    color: #1976d2;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-header a:hover {
    background: #e3f2fd;
}

/* Headings */
h1 { color: #1976d2; margin-top: 0; }
h2 { color: #333; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-top: 30px; }
h3 { color: #555; margin-top: 25px; }
h4 { color: #666; margin-top: 20px; }

/* Links */
a {
    color: #1976d2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Tables */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.matrix-table th {
    background: #1976d2;
    color: white;
    font-weight: 600;
}

.matrix-table tr:nth-child(even) {
    background: #fafafa;
}

.matrix-table tr:hover {
    background: #f0f7ff;
}

.matrix-table td:first-child {
    background: #f5f5f5;
    font-weight: 500;
}

/* Code */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

code {
    font-family: 'Consolas', 'Monaco', 'Fira Code', monospace;
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}

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

/* Lists */
ul, ol {
    margin: 10px 0;
    padding-left: 25px;
}

li {
    margin: 5px 0;
}

/* Section Cards */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.section-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #1976d2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.section-card h3 a {
    color: #1976d2;
    text-decoration: none;
}

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

.section-card p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

/* Section Introduction */
.section-intro {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #1976d2;
}

.section-intro p {
    margin: 0;
}

/* Wiki Entries */
.wiki-entry {
    background: white;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #1976d2;
}

.wiki-entry h3 {
    margin-top: 0;
    color: #1976d2;
}

.wiki-entry ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* Architecture Diagram */
.architecture-diagram pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
}

/* Footer */
.footer-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
}

/* Spec IDs */
.spec-id {
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

/* Status Badges */
.status-unknown {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Traceability Links */
.trace-link {
    font-size: 0.85em;
    color: #666;
}

.trace-link a {
    color: #1976d2;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        padding: 15px;
    }

    .nav-header h1 {
        font-size: 1.4em;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .matrix-table {
        font-size: 0.9em;
    }

    pre {
        font-size: 0.85em;
    }
}
