/* =================================
   Simple Academic Site - CSS
   ================================= */

:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --hover-color: #34495e;
    --link-color: #0066cc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Container and Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
}

.header-text h1 {
    color: white;
    margin: 0 0 0.25rem 0;
}

.header-text .subtitle {
    margin: 0;
}

.header-content h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ecf0f1;
    text-decoration: none;
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Lists */
.news-list,
.talks-list,
.projects-list {
    list-style: none;
}

.news-list li,
.talks-list li,
.projects-list li {
    padding: 0.5rem 0;
    color: var(--light-text);
}

.news-list li:before,
.talks-list li:before,
.projects-list li:before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.news-list strong,
.talks-list strong,
.projects-list strong {
    color: var(--primary-color);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color);
    background-color: #f9f9f9;
}

.publication .pub-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.publication-body {
    flex: 1;
}

.publication h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.publication p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.publication em {
    font-style: italic;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    color: #ecf0f1;
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 3rem 0;
}

#contact p {
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav a {
        display: inline-block;
        padding: 0.5rem 0;
    }

    header {
        padding: 1.5rem 0;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .publication {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    header {
        padding: 1.5rem 0;
    }

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