/* Custom styles for GitCord documentation */

:root {
    --primary-color: #5865f2;
    --secondary-color: #7289da;
    --accent-color: #99aab5;
    --background-color: #ffffff;
    --text-color: #2c2f33;
    --code-background: #f6f8fa;
    --border-color: #e1e4e8;
}

/* Header styling */
.book-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 3px solid var(--accent-color);
}

.book-header h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Navigation styling */
.book-summary {
    background-color: #f8f9fa;
    border-right: 1px solid var(--border-color);
}

.book-summary ul.summary li a {
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.book-summary ul.summary li a:hover {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--accent-color);
}

.book-summary ul.summary li.active > a {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--accent-color);
}

/* Code blocks */
.markdown pre {
    background-color: var(--code-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.markdown code {
    background-color: var(--code-background);
    color: #e83e8c;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* YAML syntax highlighting */
.hljs-string {
    color: #28a745;
}

.hljs-keyword {
    color: #007bff;
}

.hljs-number {
    color: #fd7e14;
}

/* Buttons and interactive elements */
.btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* Alerts and notices */
.alert {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

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

.markdown table th,
.markdown table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
}

.markdown table th {
    background-color: var(--code-background);
    font-weight: 600;
}

.markdown table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .book-summary {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .book-summary.open {
        left: 0;
    }
}

/* Print styles */
@media print {
    .book-summary,
    .book-header {
        display: none;
    }
    
    .markdown {
        margin: 0;
        padding: 0;
    }
} 