/* Global Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --text-color: #333333;
    --background-color: #ffffff;
    --section-spacing: 3rem;
    --hover-color: #666666;
    --link-accent: rgba(216, 199, 163, 0.55);
    --link-accent-muted: rgba(216, 199, 163, 0.45);
    --link-accent-strong: rgba(150, 108, 50, 0.42);
    --max-width: 800px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header and Navigation */
header {
    background-color: white;
    padding: 1.15rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
}

.language-selector i {
    font-size: 1rem;
}

.language-select {
    max-width: 5.5rem;
    padding: 0.15rem 0;
    border: 0;
    color: var(--primary-color);
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
}

.language-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

section {
    margin-bottom: var(--section-spacing);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1.35rem;
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: -0.5px;
}

section h2 a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    background-image: linear-gradient(to top, var(--link-accent) 38%, transparent 38%);
    background-position: 0 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--link-accent-strong);
    transition: background-size 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

section h2 a:visited {
    color: var(--primary-color);
}

section h2 a:hover {
    background-size: 100% 82%;
    border-bottom-color: var(--primary-color);
    opacity: 0.9;
}

section h2 a::after,
.blog-post h2 a::after {
    content: "open ->";
    color: var(--primary-color);
    font-size: 0.55em;
    font-weight: 500;
    line-height: 1;
    padding: 0.28rem 0.42rem;
    border: 1px solid var(--link-accent-strong);
    border-radius: 999px;
    background-color: rgba(216, 199, 163, 0.18);
    opacity: 0.72;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

section h2 a:hover::after,
.blog-post h2 a:hover::after {
    background-color: var(--link-accent-muted);
    opacity: 1;
}

/* Blog Styles */
.blog-post {
    margin-bottom: 2.25rem;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.blog-post h2 a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary-color);
    text-decoration: none;
    background-image: linear-gradient(to top, var(--link-accent-muted) 32%, transparent 32%);
    background-position: 0 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--link-accent-strong);
    transition: background-size 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.blog-post h2 a:visited {
    color: var(--primary-color);
}

.blog-post h2 a:hover {
    background-size: 100% 80%;
    border-bottom-color: var(--primary-color);
    opacity: 0.9;
}

.post-meta {
    color: var(--secondary-color);
    font-size: 0.82rem;
    margin: 0.35rem 0;
}

.post-meta span {
    margin-right: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 0.7rem;
    font-weight: 500;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* Entry Styles */
.entry {
    margin-bottom: 1.35rem;
}

.entry h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 1.08rem;
}

.entry h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.entry h3 a:hover {
    border-bottom-color: var(--primary-color);
    opacity: 0.75;
}

.institution {
    font-weight: 500;
    color: var(--secondary-color);
}

.date {
    color: var(--secondary-color);
    font-size: 0.84rem;
}

.description {
    margin-top: 0.35rem;
    color: var(--text-color);
}

.contribution-note {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-style: italic;
}

/* Publications */
.links {
    margin-top: 0.35rem;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.links a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    color: var(--secondary-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    main {
        padding: 1rem;
    }

    section {
        margin-bottom: 2.25rem;
    }
}

/* Add these styles to your existing CSS file */

.blog-post-full {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.blog-post-full h1 {
    font-size: 2.05rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.blog-post-full .post-meta {
    margin-bottom: 1.35rem;
}

.blog-post-full .post-content {
    line-height: 1.6;
}

.blog-post-full h2 {
    font-size: 1.45rem;
    margin: 1.4rem 0 0.75rem;
    color: var(--primary-color);
}

.blog-post-full p {
    margin-bottom: 1rem;
}

.blog-post-full ul {
    margin: 0.75rem 0 1rem 1.5rem;
}

.blog-post-full li {
    margin-bottom: 0.5rem;
}

.blog-post-full strong {
    font-weight: 600;
}
