/* ============================================
   RESEARCHER PERSONAL PAGE
   Cool Minimal Theme - Slate Blue & Gray
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-primary: #1e293b;
    --color-accent: #475569;
    --color-text: #000000;
    --color-text-muted: #20242a;
    --color-bg: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-link: #475569;
    --color-link-hover: #1e293b;
    
    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image: 
        radial-gradient(ellipse at 0% 0%, rgba(100, 116, 139, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(51, 65, 85, 0.06) 0%, transparent 50%);
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out;
}

/* Profile Photo */
.profile-photo {
    flex-shrink: 0;
}

.profile-photo img,
.photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.photo-placeholder {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.name {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.title .at-symbol {
    color: var(--color-accent);
    font-weight: 400;
    margin: 0 0.15em;
}

.title .affiliation {
    font-weight: 500;
    color: var(--color-accent);
}

.bio-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: var(--spacing-md);
}

/* Section Separator */
.section-separator {
    border: none;
    border-top: 2px solid var(--color-border);
    margin: var(--spacing-lg) 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.section-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-border);
}

/* Publication Card */
.publication-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    transition: all var(--transition-base);
    animation: fadeInUp 0.5s ease-out backwards;
}

.publication-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

/* Publication Thumbnail */
.pub-thumbnail {
    flex-shrink: 0;
}

.pub-thumbnail img,
.thumbnail-placeholder {
    width: 150px;
    height: 110px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.pub-content {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.pub-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.pub-authors {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.375rem;
}

.pub-authors strong {
    color: var(--color-text);
    font-weight: 700;
}

.pub-venue {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.venue-name {
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.venue-under-review {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.8125rem;
}

.pub-year {
    color: var(--color-text-muted);
    font-weight: 500;
    background: var(--color-bg);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

/* Publication Links */
.pub-links {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex-shrink: 0;
}

.pub-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: all var(--transition-fast);
    text-align: center;
    min-width: 60px;
}

.pub-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.footer p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .hero {
        flex-direction: column;
    }
    
    .profile-photo img,
    .photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .bio-text {
        font-size: 0.875rem;
    }
    
    .publication-card {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    .pub-thumbnail img,
    .thumbnail-placeholder {
        width: 100%;
        height: 140px;
    }
    
    .pub-links {
        flex-direction: row;
        width: 100%;
    }
    
    .pub-link {
        flex: 1;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .profile-photo img,
    .photo-placeholder {
        width: 130px;
        height: 130px;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .pub-thumbnail img,
    .thumbnail-placeholder {
        width: 100px;
        height: 75px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

