/* Academic Personal Website Styles */

/* Base Styles */
body {
    font-family: 'Times New Roman', Times, serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
    color: #3d3426;
    background-color: #f5f2e8;
}

/* Typography */
h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    font-weight: normal;
}

h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: normal;
    border-bottom: 1px solid #d4c4a8;
    padding-bottom: 0.5em;
    color: #654321;
}

h3 {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: normal;
}

/* Layout Components */
.header {
    margin-bottom: 3em;
    position: relative;
}

/* Header Links Override */
.header a {
    color: #8b6f47;
    text-decoration: none;
}

.header a:hover {
    color: #654321;
    text-decoration: underline;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.motto {
    font-style: italic;
    color: #8b4513;
    font-size: 1.0em;
}

.motto::before {
    content: '"';
}

.motto::after {
    content: '"';
}

.profile-section {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    margin-bottom: 2em;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-content {
    flex: 1;
}

/* Profile Content Links */
.profile-content a {
    color: #8b6f47;
    text-decoration: none;
}

.profile-content a:hover {
    color: #654321;
    text-decoration: underline;
}

/* Navigation */
.nav {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid #8b4513;
}

.nav a {
    color: #654321;
    text-decoration: none;
    margin-right: 2em;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

.nav .active {
    color: #8b4513;
}

/* Links */
.links {
    margin: 1em 0;
}

.links a {
    color: #8b4513;
    text-decoration: none;
    margin-right: 1em;
}

.links a:hover {
    text-decoration: underline;
}

/* Publications Filter */
.filter-section {
    margin-bottom: 2em;
    padding: 1em;
    background-color: #f5f3f0;
    border: 1px solid #d4c4a8;
    border-radius: 4px;
}

.filter-label {
    font-weight: bold;
    color: #654321;
    margin-right: 1em;
    display: block;
    margin-bottom: 0.5em;
}

.filter-buttons {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #8b4513;
    color: #8b4513;
    padding: 0.3em 0.8em;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #8b4513;
    color: #faf8f5;
}

.filter-btn.active {
    background-color: #8b4513;
    color: #faf8f5;
}

/* Publications */
.paper {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
}

.paper:last-child {
    border-bottom: none;
}

.paper.hidden {
    display: none;
}

.paper-content {
    flex: 1;
}

.paper-title {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.paper-authors {
    margin-bottom: 0.3em;
    font-style: italic;
}

.paper-venue {
    color: #666;
    margin-bottom: 0.5em;
}

.paper-links {
    margin-top: 0.5em;
}

.paper-links a {
    color: #8b4513;
    text-decoration: none;
    margin-right: 1em;
    font-size: 0.9em;
}

.paper-links a:hover {
    text-decoration: underline;
}

/* Media Elements */
.paper-media {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    border: 1px solid #d4c4a8;
    flex-shrink: 0;
    overflow: hidden;
}

.paper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paper-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Experience */
.experience-item {
    margin-bottom: 1.5em;
}

.experience-title {
    font-weight: bold;
}

.experience-date {
    color: #666;
    font-size: 0.9em;
}

/* Footer */
.footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #ddd;
    color: #666;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .motto {
        text-align: center;
        max-width: 100%;
        margin-top: 0.5em;
        font-size: 0.9em;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        align-self: center;
    }
    
    .nav a {
        margin-right: 1em;
    }
    
    .paper {
        flex-direction: column;
        gap: 1em;
    }
    
    .paper-media {
        width: 100%;
        height: 120px;
        align-self: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-label {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav a {
        display: block;
        margin-bottom: 0.5em;
        margin-right: 0;
    }
    
    .filter-btn {
        font-size: 0.8em;
        padding: 0.25em 0.6em;
    }
}
