/* assets/css/style.css */

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
}

/* Header */
.header {
    background-color: #2c5aa0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title:hover {
    color: #a8c8ec;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a8c8ec;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: #a8c8ec;
}

/* Main content */
.main {
    background-color: #000;
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.main .container {
    max-width: 1000px;
    display: block;
    padding: 0 2rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Profile section */
.profile-section {
    position: sticky;
    top: 6rem;
}

.profile-image-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.profile-image-link:hover {
    transform: translateY(-2px);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c5aa0, #1e3a6f);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 300;
}

.profile-info {
    text-align: left;
}

.profile-name-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-name-link:hover .profile-name {
    color: #a8c8ec;
}

.profile-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.social-link {
    font-size: 0.8rem;
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-link:hover {
    color: #90caf9;
    text-decoration: none;
}

.profile-name {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.profile-affiliation {
    color: #999;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.profile-email {
    color: #4a9eff;
    text-decoration: none;
    font-size: 0.95rem;
}

.profile-email:hover {
    text-decoration: underline;
}

/* Bio and content section */
.bio-section {
    color: white;
    font-size: 1rem;
    line-height: 1.7;
}

.bio-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.link {
    color: #4a9eff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Section styling */
.section-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 2.5rem 0 1.5rem 0;
}

.section-title:first-child {
    margin-top: 0;
}

/* Research page specific styles */
.research-list {
    list-style: none;
    margin: 1rem 0 2rem 0;
}

.research-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.research-list li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.publication {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

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

.pub-title {
    color: #4a9eff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.pub-venue {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.pub-description {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team/Group page styles */
.team-member, .alumni-member {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.team-member:last-child, .alumni-member:last-child {
    border-bottom: none;
}

.member-name {
    color: #4a9eff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.member-role {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-description {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Teaching page styles */
.course {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

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

.course-title {
    color: #4a9eff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.course-details {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.course-description {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.teaching-list {
    list-style: none;
    margin: 1rem 0;
}

.teaching-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.teaching-list li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Activities page styles */
.activity-category {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem 0;
}

.activity-list, .award-list, .membership-list, .volunteer-list {
    list-style: none;
    margin: 1rem 0 2rem 0;
}

.activity-list li, .award-list li, .membership-list li, .volunteer-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #ddd;
}

.activity-list li::before, .award-list li::before, .membership-list li::before, .volunteer-list li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Blog page styles */
.blog-post {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.post-title .link {
    color: #4a9eff;
    text-decoration: none;
}

.post-title .link:hover {
    text-decoration: underline;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.external-links {
    list-style: none;
    margin: 1rem 0;
}

.external-links li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.external-links li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact page styles */
.contact-section {
    margin-bottom: 2rem;
}

.contact-method {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-links {
    list-style: none;
    margin: 0.5rem 0;
}

.contact-links li {
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.contact-links li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.services-list, .office-hours {
    list-style: none;
    margin: 1rem 0;
}

.services-list li, .office-hours li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #ddd;
}

.services-list li::before, .office-hours li::before {
    content: "•";
    color: #4a9eff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Lists styling */
ul {
    margin: 1rem 0;
    padding-left: 0;
}

li {
    color: #ddd;
}

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

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 90, 160, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .main .container {
        padding: 0 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-section {
        position: static;
        text-align: center;
        display: none; /* Hide profile by default on mobile */
    }

    /* Show profile only on home page in mobile */
    .home-page .profile-section {
        display: block;
    }

    .profile-info {
        text-align: center; /* Center align all profile info on mobile */
    }

    .profile-social {
        justify-content: center; /* Center the social links */
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }

    .profile-name {
        font-size: 1.8rem;
        text-align: center; /* Center align name */
    }

    .profile-title {
        text-align: center; /* Center align title */
    }

    .profile-affiliation {
        text-align: center; /* Center align affiliation */
    }

    .profile-email {
        text-align: center; /* Center align email */
        display: block;
    }

    .profile-placeholder {
        font-size: 2.5rem;
    }

    .bio-section p {
        text-align: justify; /* Keep justify alignment on mobile */
    }

    .main {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-placeholder {
        font-size: 2.5rem;
    }
}

/* ---------- Friendly justified lists (no huge gaps) ---------- */
/* Scope to activities page so other pages are unaffected */
body.activities-page .bio-section,
body.activities-page .bio-section ul,
body.activities-page .bio-section li,
body.activities-page .bio-section p {
  text-align: justify;          /* justify interior lines */
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;       /* avoid overflow */
  line-height: 1.6;
  color: #ddd;
  text-align-last: left;        /* avoid stretching the short last line */
}

/* Use native bullets to avoid pseudo-element layout quirks */
body.activities-page .bio-section ul {
  list-style: disc outside;
  list-style-position: outside;
  padding-left: 1.6rem;   /* space for bullets */
  margin: 0.6rem 0 1.2rem;
}

/* Make list items normal list-item flow (let the UL control indent) */
body.activities-page .bio-section li {
  display: list-item;     /* restores normal list behavior */
  margin-bottom: 0.45rem;
  padding-left: 0;        /* don't add extra left padding here */
}

/* Remove any legacy/custom pseudo-bullets so only native bullets appear */
body.activities-page .bio-section li::before,
body.activities-page .activity-list li::before,
body.activities-page .volunteer-list li::before,
body.activities-page .membership-list li::before,
body.activities-page ul li::before {
  content: none !important;
  display: none !important;
}

/* Style the native bullet color and weight (modern browsers support ::marker) */
body.activities-page .bio-section li::marker {
  color: #4a9eff;
  font-weight: 700;
}

/* Ensure inline elements don't break justification */
body.activities-page .bio-section li > strong,
body.activities-page .bio-section li > em,
body.activities-page .bio-section li > a {
  display: inline;
}
