/* 
   Style for Kostas Christodoulopoulos' Personal Webpage
   Inspired by Dimos Dimarogonas' site, but updated with modern aesthetics.
*/

:root {
    --primary-color: #1a365d; /* Scholar Blue / Navy */
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-color: #ffffff;
    --sidebar-bg: #f7fafc;
    --border-color: #e2e8f0;
    --sidebar-width: 300px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 100;
}

.profile-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.nav-links {
    width: 100%;
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

.contact-info {
    margin-top: auto;
    width: 100%;
    padding-top: 2rem;
    font-size: 0.85rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-item i {
    margin-right: 0.75rem;
    width: 20px;
    color: var(--primary-color);
}

/* Main Content Styling */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 4rem;
    max-width: 1000px;
    width: 100%;
}

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

section:last-child {
    border-bottom: none;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.bio-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bio-text ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.bio-text ul ul {
    list-style-type: circle;
    padding-left: 1.25rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.bio-text li {
    margin-bottom: 0.4rem;
}

/* Projects/Interests Card */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.interest-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.interest-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Metrics Section */
.metrics-grid {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    flex: 1;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.metric-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Publications List */
.pub-category {
    margin-bottom: 3rem;
}

.pub-year-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-muted);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.pub-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    transition: border-color 0.2s;
}

.pub-item:hover {
    border-left-color: var(--accent-color);
}

.pub-title {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
}

.pub-title:hover {
    color: var(--accent-color);
}

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

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

.pub-links {
    margin-top: 0.5rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.btn-link:hover {
    background: var(--accent-color);
    color: white;
}

.missing-file {
    border-color: #e53e3e;
    color: #e53e3e;
}

.missing-file:hover {
    background: #e53e3e;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem 1rem;
    }
    .main-content {
        margin-left: 0;
        padding: 2rem;
    }
    .metrics-grid {
        flex-direction: column;
    }
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    gap: 0.4rem;
    z-index: 1000;
}

.lang-btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-color);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.lang-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.lang-active {
    background: var(--primary-color);
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}
