/* KNIRV Network Documentation Styles */
:root {
    --primary-color: #00c0fa;
    --secondary-color: #2b56f5;
    --accent-color: #8b5cf6;
    --bg-color: #0a0a0a;
    --surface-color: #1a1a2e;
    --text-color: #e0e0e0;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--surface-color) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

.doc-header {
    background: linear-gradient(135deg, var(--surface-color) 0%, #16213e 50%, #0f3460 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.doc-nav {
    margin-bottom: 1rem;
}

.doc-nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.doc-nav a:hover {
    color: #6fb5ff;
}

.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.doc-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.doc-main {
    padding: 3rem 0;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doc-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 192, 250, 0.1);
}

.doc-category h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.doc-category ul {
    list-style: none;
}

.doc-category li {
    margin-bottom: 0.8rem;
}

.doc-category a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.doc-category a:hover {
    color: var(--primary-color);
    background: rgba(0, 192, 250, 0.1);
    transform: translateX(5px);
}

.doc-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.doc-content h1, .doc-content h2, .doc-content h3, .doc-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.doc-content h2 {
    font-size: 1.5rem;
}

.doc-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.doc-content code {
    background: rgba(0, 192, 250, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.doc-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.doc-content a:hover {
    border-bottom-color: var(--primary-color);
}

.whitepaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.whitepaper-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whitepaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 192, 250, 0.15);
}

.whitepaper-card h3 {
    margin-bottom: 1rem;
}

.whitepaper-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.whitepaper-card h3 a:hover {
    color: #6fb5ff;
}

.whitepaper-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 192, 250, 0.3);
}

.doc-whitepapers, .doc-community {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.doc-whitepapers h2, .doc-community h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.whitepaper-link {
    text-align: center;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 2rem;
    }

    .doc-grid, .whitepaper-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .doc-content {
        padding: 1.5rem;
    }
}

/* Docsify link styles */
.docsify-link {
    color: var(--accent-color) !important;
    font-size: 0.9rem;
    font-style: italic;
    text-decoration: none;
    transition: color 0.3s ease;
}

.docsify-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Community buttons */
.community-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 192, 250, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-sizing: border-box; /* Ensure border doesn't add to size */
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}