/* Enhanced Dennis Exocortex Theme */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Card Animations */
.sd-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

/* GitHub Stats Container */
.github-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.github-stats img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Dropdown Styling */
.sd-dropdown {
    margin-top: 2rem;
}

/* Existing Admonitions - Enhanced */
div.admonition.admonition-math {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

div.admonition.admonition-math > .admonition-title {
    background-color: #4CAF50;
    color: white;
}

div.admonition.admonition-math > .admonition-title:after {
    content: "\f698";
}

div.admonition.admonition-algo {
    border-color: #9C27B0;
    background-color: rgba(156, 39, 176, 0.05);
}

div.admonition.admonition-algo > .admonition-title {
    background-color: #9C27B0;
    color: white;
}

div.admonition.admonition-algo > .admonition-title:after {
    content: "\f55b";
}

/* Code Block Enhancements */
.highlight {
    border-radius: 8px;
    margin: 1rem 0;
}

.highlight pre {
    padding: 1.2rem;
    border-radius: 8px;
}

/* Tab Styling */
.sd-tab-content {
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
}

/* Navigation Enhancement */
.sidebar-primary {
    padding: 1rem;
}

.toctree-l1 > a {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Dark Mode Support */
html[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

html[data-theme="dark"] .sd-card {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

html[data-theme="dark"] .sd-card:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: #667eea;
}

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

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Footer Enhancement */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 2px solid #e1e4e8;
}

/* Search Box Styling */
.search-container input {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 2px solid #e1e4e8;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========================================
   RESEARCH PAPER STYLING
   ======================================== */

/* Research Paper Header */
.research-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.research-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.authors {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* Research Cards */
.research-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    transition: all 0.3s ease;
}

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

.metrics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.metrics-card .sd-card-title {
    color: white !important;
}

.metrics-card strong {
    color: #ffd700;
}

/* Result Cards */
.result-card {
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.result-card:hover::before {
    top: -60%;
    right: -60%;
}

/* Performance Grid */
.performance-grid {
    text-align: center;
    padding: 2rem 0;
    margin: 2rem 0;
}

.performance-grid h3 {
    color: #2a5298;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Code Blocks Enhancement for Research */
.highlight-python {
    position: relative;
    margin: 1rem 0;
}

.highlight-python::before {
    content: '🐍 Python';
    position: absolute;
    top: -10px;
    right: 10px;
    background: #306998;
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Bibliography Styling */
.bibliography {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.bibliography li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.bibliography li::before {
    content: '📚';
    position: absolute;
    left: 0;
}

/* Dark Mode Support for Research */
html[data-theme="dark"] .research-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

html[data-theme="dark"] .research-card {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

html[data-theme="dark"] .metrics-card {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

/* ========================================
   MACHINE LEARNING PAGE - CLEAN STYLING
   ======================================== */

/* ML Header */
.ml-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.ml-header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.ml-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-style: italic;
}

/* Session Cards - Theory */
.session-card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.session-card img {
    height: 150px;
    object-fit: cover;
    opacity: 0.8;
}

.session-card:hover img {
    opacity: 1;
}

/* ML Finance Feature Card */
.ml-finance-feature {
    background: linear-gradient(to right, #f3f4f6, #e5e7eb);
    border: 2px solid #667eea;
    padding: 2rem;
    margin: 1rem 0;
}

.ml-finance-feature:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Results Table */
.results-table {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.results-table th {
    background-color: #667eea;
    color: white;
    padding: 0.5rem;
}

.results-table td {
    padding: 0.5rem;
    text-align: center;
}

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

/* Resource Cards */
.resource-card-small {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.resource-card-small:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Tab Styling - Cleaner */
.sd-tab-label {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

.sd-tab-input:checked + .sd-tab-label {
    border-bottom: 3px solid #667eea;
    color: #667eea;
    font-weight: 600;
}

/* Dark Mode Support */
html[data-theme="dark"] .ml-header h1 {
    color: #818cf8;
}

html[data-theme="dark"] .ml-subtitle {
    color: #9ca3af;
}

html[data-theme="dark"] .session-card {
    background-color: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .session-card:hover {
    border-color: #818cf8;
}

html[data-theme="dark"] .ml-finance-feature {
    background: linear-gradient(to right, #1f2937, #111827);
    border-color: #818cf8;
}

html[data-theme="dark"] .results-table th {
    background-color: #4c1d95;
}

html[data-theme="dark"] .results-table tr:nth-child(even) {
    background-color: #1f2937;
}

html[data-theme="dark"] .resource-card-small {
    background: #1f2937;
    border-color: #374151;
}

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

    .ml-subtitle {
        font-size: 1rem;
    }
}