/* Basic styling for academic personal website */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fafafa;
    box-sizing: border-box;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h2 {
    color: #2c3e50;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* General image styling - overridden by specific classes */
img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #bdc3c7;
    margin: 30px 0;
}

ul.papers, ol.papers {
    margin-left: 0;
    list-style: none;
    padding-left: 0;
}

ul.papers li, ol.papers li {
    margin-bottom: 25px;
    line-height: 1.8;
}

.papers em {
    color: #2c5aa0;
    font-weight: bold;
    font-style: normal;
}

.arxiv-badge {
    display: inline-block;
    background-color: #f4d03f;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
    text-decoration: none;
}

.arxiv-badge:hover {
    background-color: #f39c12;
    text-decoration: none;
}

.conference-badge {
    display: inline-block;
    background-color: #e0e0e0;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 8px;
    text-decoration: none;
}

.link-badge {
    display: inline-block;
    background-color: #ffffff;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: normal;
    margin-right: 8px;
    text-decoration: none;
    border: 1px solid #000;
}

.link-badge:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.badge-row {
  margin-top: 8px;
}

/* Internal link styling */
a[href^="#"] {
  color: #2c5aa0;
  text-decoration: none;
}

a[href^="#"]:hover {
  text-decoration: underline;
}

b {
    font-weight: bold;
}

tt {
    font-family: "Courier New", monospace;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

small {
    color: #7f8c8d;
    font-size: 0.9em;
}

details {
    margin: 20px 0;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
}

summary:hover {
    color: #3498db;
}

/* Profile section styling */
.profile-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-text {
    flex: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-image {
        align-self: center;
    }
    
    .profile-text {
        text-align: left;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .profile-section .profile-image {
        width: 80vw !important;
        max-width: 80vw !important;
        height: auto !important;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .link-badge, .conference-badge {
        display: inline-block;
        margin-bottom: 5px;
        margin-right: 5px;
    }
} 