/* research.css - Academic & Minimalist Styling for Literature Section */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* Keep the interface consistent with the portfolio; use serif text for reading. */
body.academic-page {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.7;
}

body.academic-page h1, 
body.academic-page h2, 
body.academic-page h3, 
body.academic-page h4, 
body.academic-page h5 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
}

/* Base content text colors */
.prose {
    font-family: 'Lora', Georgia, serif;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Inter', system-ui, sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose p {
    margin-bottom: 1.25rem;
}
.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose blockquote {
    border-left: 4px solid #1e3a8a;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563; /* tailwind gray-600 */
    margin: 1.5rem 0;
}

/* Dark mode overrides (for Markdown elements since Tailwind prose handles some but not all) */
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4 {
    color: #f3f4f6; /* tailwind gray-100 */
}
.dark .prose blockquote {
    border-left-color: #3b82f6; /* tailwind blue-500 */
    color: #9ca3af; /* tailwind gray-400 */
}

/* Preserve the paper list, with the same restrained card treatment as the portfolio. */
.academic-paper-card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.academic-paper-card:hover {
    border-color: #93c5fd;
    background: #f9fafb;
}

.dark .academic-paper-card {
    border-color: #374151;
    background: #1f2937;
}

.dark .academic-paper-card:hover {
    border-color: #60a5fa;
    background: #253144;
}

.reading-container {
    overflow-wrap: anywhere;
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.125rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose a { color: #1e40af; text-decoration: underline; text-underline-offset: 3px; }
.dark .prose a { color: #60a5fa; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: 0.5rem; background: #f3f4f6; }
.dark .prose pre { background: #1f2937; }
.prose code { font-family: 'Fira Code', monospace; font-size: 0.875em; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { padding: 0.65rem; border: 1px solid #d1d5db; text-align: left; }
.dark .prose th, .dark .prose td { border-color: #374151; }
.prose hr { margin: 2rem 0; border-color: #e5e7eb; }
.dark .prose hr { border-color: #374151; }

@media (max-width: 640px) {
    .academic-paper-card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .academic-paper-card { transition: none; }
}
