/*
Theme Name: Academic Researcher
Theme URI: https://example.com/academic-researcher
Author: Emily Glover
Description: A professional, HCI-inspired theme for researchers, built with Bootstrap 5.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academic-researcher
*/

:root {
    --primary-color: #0f172a; /* Slate 900 */
    --accent-color: #3b82f6;  /* Blue 500 */
    --text-color: #334155;    /* Slate 700 */
    --heading-color: #0f172a;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--heading-color);
}

.main-header {
    background-color: #ffffff;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.badge {
    font-family: var(--font-main);
}

/* Typography refinements */
.lead-sm {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* HCI-inspired interaction cues */
a {
    transition: all 0.2s ease;
}

/* Custom Scrollbar for HCI feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Blog Styling */
.profile-photo, .profile-photo-placeholder, .custom-logo-link img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.post {
    margin-bottom: 4rem;
}

.post-title a {
    text-decoration: none;
    color: var(--heading-color);
}

.post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Fun elements and custom layouts */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.project-image-wrapper {
    height: 240px;
}

.project-image-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.project-card:hover .transition-transform {
    transform: scale(1.05);
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8fafc;
    padding-left: 3rem !important;
}

.blog-header .display-4 {
    letter-spacing: -0.02em;
}

/* New Blog List Styles */
.blog-list-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.blog-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 180px;
}

.blog-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-list-item:hover .blog-list-img {
    transform: scale(1.05);
}

.blog-placeholder {
    aspect-ratio: 1 / 1;
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

.hover-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition-all {
    transition: all 0.2s ease;
}

/* Post Content Styling */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #64748b;
    margin: 2rem 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.post-header .display-4 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-footer a:hover {
    text-decoration: underline;
}
