/* Custom CSS for Vedic Numerology-Astrology Documentation */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Libertine:wght@400;700&family=Fira+Code:wght@400;500&display=swap');

/* Base styles */
body {
    font-family: 'Libertine', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
}

/* Code styling */
code, .highlight pre, .highlight code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.highlight {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1em;
    margin: 1em 0;
}

/* Navigation improvements */
.wy-nav-side {
    background-color: #2c3e50;
}

.wy-nav-side .wy-menu-vertical a {
    color: #ecf0f1;
}

.wy-nav-side .wy-menu-vertical a:hover {
    background-color: #34495e;
}

/* Header styling */
.wy-side-nav-search {
    background-color: #2c3e50;
}

.wy-side-nav-search input[type="text"] {
    border-color: #34495e;
    background-color: #34495e;
    color: #ecf0f1;
}

.wy-side-nav-search input[type="text"]::placeholder {
    color: #bdc3c7;
}

/* Content area */
.wy-plain-normal {
    color: #2c3e50;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Tables */
table.docutils {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

table.docutils th,
table.docutils td {
    border: 1px solid #dee2e6;
    padding: 0.5em 1em;
    text-align: left;
}

table.docutils th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

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

/* Admonitions */
.admonition {
    border-radius: 5px;
    margin: 1em 0;
    padding: 1em;
    border-left: 4px solid;
}

.admonition.note {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

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

.admonition.important {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

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

/* API documentation */
.class dt, .function dt, .method dt {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.5em;
    margin: 1em 0;
}

.class dd, .function dd, .method dd {
    margin-left: 1em;
    margin-bottom: 1.5em;
}

/* Footer */
footer {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .wy-nav-side {
        display: none;
    }

    .wy-nav-content-wrap {
        margin-left: 0;
    }

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

    table.docutils th,
    table.docutils td {
        padding: 0.3em 0.5em;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .wy-nav-side, .wy-nav-content-wrap .wy-nav-top, footer {
        display: none !important;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Custom classes for documentation */
.vedic-highlight {
    background-color: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 1em;
    margin: 1em 0;
}

.code-example {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1em;
    margin: 1em 0;
}

.code-example::before {
    content: "💡 Example";
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5em;
}

.api-reference {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1em;
    margin: 1em 0;
}

.api-reference::before {
    content: "🔧 API Reference";
    font-weight: bold;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5em;
}

/* Math rendering */
.math {
    text-align: center;
    margin: 1.5em 0;
}

/* Figures and images */
.figure {
    text-align: center;
    margin: 2em 0;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Custom admonition for research notes */
.admonition.research {
    background-color: #e8f4fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.admonition.research::before {
    content: "🔬 Research Note";
    font-weight: bold;
}

/* Loading animation for dynamic content */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/error indicators */
.success {
    color: #28a745;
    font-weight: bold;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.warning {
    color: #ffc107;
    font-weight: bold;
}

/* Keyboard shortcuts */
kbd {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 .1em;
    padding: .1em .6em;
    text-shadow: 0 1px 0 #fff;
}