/* collabit.org - Specification-Driven Government Development Platform Styles */

/* Base Typography and Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
}

/* Headers and Typography */
h1 {
    color: #667eea;
    font-size: 2.2em;
    font-weight: 300;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h2 {
    color: #5a6fd8;
    font-size: 1.6em;
    font-weight: 400;
    margin: 30px 0 15px 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

h3 {
    color: #764ba2;
    font-size: 1.3em;
    font-weight: 500;
    margin: 25px 0 12px 0;
}

h4 {
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

/* Document Structure */
.document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-header h1 {
    color: white;
    border-bottom: none;
    margin: 0 0 10px 0;
}

.document-meta {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 15px;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Code and Technical Content */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #d63384;
}

pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #667eea;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 0.85em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

th {
    background: #667eea;
    color: white;
    font-weight: 500;
}

tr:hover {
    background: #f8f9fa;
}

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

li {
    margin: 8px 0;
}

ul li {
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}

ul li:before {
    content: "▸";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #667eea;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Navigation and Index Specific Styles */
.framework-intro {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.doc-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.doc-card h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.3em;
}

.doc-card p {
    margin: 0 0 15px 0;
    color: #666;
}

.doc-link {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.doc-link:hover {
    background: #5a6fd8;
}

/* Status and Progress Indicators */
.status-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.complete { background-color: #28a745; }
.in-progress { background-color: #ffc107; }
.planned { background-color: #6c757d; }

/* Contact and Footer */
.contact-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    font-size: 0.9em;
}

/* Header Specific for Index */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 300;
    color: white;
    border-bottom: none;
}

header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

header h1 a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

.launch-date {
    font-size: 1.1em;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    display: inline-block;
}

/* Document Header with Navigation */
.document-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-header h1 {
    color: white;
    border-bottom: none;
    margin: 0 0 10px 0;
}

.document-header h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.document-header h1 a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Navigation Back to Index */
.nav-header {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.nav-header a {
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        max-width: none;
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .nav-header {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
}
