/* style.css - Academic Sidebar Layout */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --accent-color: #0CAF93; /* Academic Blue */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #E3E3E2;
    --sidebar-bg: #f8f9fa;
    --border-color: #e9ecef;
    --sidebar-width: 300px;
}

body.dark-mode {
    --primary-color: #e0e0e0;
    --accent-color: #E78B06;
    --text-color: #cccccc;
    --text-muted: #aaaaaa;
    --bg-color: #1C1C1D;
    --sidebar-bg: #1e1e1e;
    --border-color: #333333;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    margin: 0;
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Sidebar --- */
#sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    padding: 40px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Circle shape like target site */
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 5px 0;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Navigation Menu in Sidebar */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav ul li {
    margin-bottom: 12px;
}

nav ul li a {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

body.dark-mode .theme-toggle:hover {
    background-color: #2d2d2d;
}

/* --- Main Content --- */
main {
    margin-left: var(--sidebar-width);
    padding: 60px 80px;
    max-width: 900px; /* Optimal reading width */
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-footer {
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 500;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* News List */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.news-date {
    font-weight: 700;
    min-width: 120px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Publication Cards */
.publication-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.pub-img-container {
    flex-shrink: 0;
    width: 160px;
}

.pub-img-container img {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pub-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pub-details h3 a {
    color: var(--primary-color);
}

.pub-details h3 a:hover {
    color: var(--accent-color);
}

.pub-authors {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.pub-venue {
    font-style: italic;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Experience List */
.experience-item {
    margin-bottom: 30px;
}

.experience-item h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.experience-item h4 {
    margin: 5px 0;
    font-weight: 500;
    color: var(--text-muted);
}

.date-loc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    main {
        margin-left: 0;
        padding: 40px 20px;
    }

    .publication-item {
        flex-direction: column;
    }
    
    .pub-img-container {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .news-list li {
        flex-direction: column;
        gap: 5px;
    }
}

