/* Custom CSS for Personal Website */

/* Main color scheme and typography */
:root {
    --primary-color: #2980B9;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
    --border-color: #BDC3C7;
}

/* Improved typography */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.3em;
}

h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.2em;
}

/* Navigation improvements */
.wy-nav-side {
    background: linear-gradient(180deg, var(--primary-color) 0%, #1F4E79 100%);
}

.wy-menu-vertical a {
    color: #ffffff;
    transition: all 0.3s ease;
}

.wy-menu-vertical a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Content area improvements */
.wy-nav-content {
    max-width: 1200px;
}

.rst-content {
    font-size: 16px;
}

/* Custom cards for sections */
.info-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5em;
    margin: 1em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

/* Publication and project styling */
.publication-item {
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5em;
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5em;
    margin: 1em 0;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.15);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #27AE60;
    color: white;
}

.status-complete {
    background-color: var(--primary-color);
    color: white;
}

.status-beta {
    background-color: #F39C12;
    color: white;
}

.status-archived {
    background-color: #95A5A6;
    color: white;
}

/* Links and buttons */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75em 1.5em;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-custom:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

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

th, td {
    border: 1px solid var(--border-color);
    padding: 0.75em;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* Code blocks */
.highlight {
    border-radius: 8px;
    overflow: hidden;
}

pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    background-color: var(--light-bg);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

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

.admonition.note {
    border-left-color: var(--primary-color);
    background-color: rgba(41, 128, 185, 0.1);
}

.admonition.warning {
    border-left-color: #F39C12;
    background-color: rgba(243, 156, 18, 0.1);
}

.admonition.important {
    border-left-color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.1);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .wy-nav-content {
        margin-left: 0;
    }
    
    .info-card, .publication-item, .project-card {
        margin: 0.5em 0;
        padding: 1em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}

/* Print styles */
@media print {
    .wy-nav-side, .rst-versions {
        display: none;
    }
    
    .wy-nav-content {
        margin-left: 0;
    }
    
    .info-card, .publication-item, .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Icon improvements */
.fa, .fab, .fas {
    margin-right: 0.5em;
}

/* Footer improvements */
.rst-footer-buttons {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
}

/* Sidebar improvements */
.wy-menu-vertical p.caption {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1em 0 0.5em 0;
    padding: 0.5em 1em;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Search improvements */
.wy-side-nav-search input[type=text] {
    border-radius: 25px;
    border: none;
    padding: 0.75em 1em;
    width: 100%;
    box-sizing: border-box;
}

/* Version info */
.rst-current-version {
    background-color: var(--primary-color);
}

/* Custom utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-large {
    margin-bottom: 2em;
}

.mt-large {
    margin-top: 2em;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2em;
    border-radius: 12px;
    margin: 2em 0;
    text-align: center;
}

.highlight-box h2, .highlight-box h3 {
    color: white;
    border-bottom: none;
}

/* Contact form styling (if needed) */
.contact-form {
    background: var(--light-bg);
    padding: 2em;
    border-radius: 8px;
    margin: 2em 0;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}
