/* Academic Pages Inspired CSS */
:root {
    --text-primary: #494e52;
    --text-secondary: #888;
    --text-light: #666;
    --link-color: #52adc8;
    --link-hover: #337ab7;
    --border-light: #e5e5e5;
    --bg-primary: #fff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.2s ease;
    --font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    margin: 0;
}

/* Center the entire layout */
.page-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    max-width: 1400px;    /* 300px sidebar + 1100px content */
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: static;     /* no longer fixed */
    height: auto;
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
}

.author-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.author-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.author-links {
    list-style: none;
    padding: 0;
}

.author-links li {
    margin-bottom: 0.5rem;
}

.author-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: var(--transition-smooth);
}

.author-links a:hover {
    color: var(--link-color);
}

.author-links i {
    margin-right: 0.5rem;
    width: 16px;
}

.sidebar-nav {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--link-color);
    border-left-color: var(--link-color);
}

/* Main content area */
.main-content {
    flex: 1;
    max-width: 1100px;
    background-color: var(--bg-primary);
    padding: 3rem 4rem;
    min-height: 100vh;
}

/* Sections */
.content-section {
    display: none;
    width: 100%;
    max-width: 700px;
}

.content-section.active-section {
    display: block;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.75rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Profile/About */
.profile-header {
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.profile-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.profile-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Publications & Teaching */
.publication-item,
.teaching-item {
    margin-bottom: 1.5rem;
    background-color: transparent;
    transition: none;
}

.publication-item:hover,
.teaching-item:hover {
    box-shadow: none;
    border-color: transparent;
}

.publication-title,
.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.publication-authors,
.course-info {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-venue {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--link-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.publication-link:hover {
    background-color: var(--link-color);
    color: white;
}

/* Footer */
.site-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    /* wrapper remains centered; content will shrink naturally */
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
        max-width: 100%;
    }
    .sidebar {
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1.5rem;
    }
    .author-avatar {
        width: 120px;
        height: 120px;
    }
    .main-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    .site-footer {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .profile-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content,
    .site-footer {
        padding: 1rem 0.75rem;
    }
    .author-avatar {
        width: 100px;
        height: 100px;
    }
    .profile-header h1 {
        font-size: 1.7rem;
    }
    .profile-subtitle {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }
    .main-content,
    .site-footer {
        max-width: 100%;
        width: 100%;
    }
    .publication-item,
    .teaching-item {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

