/* Research Portfolio Landing Page Styles */

/* ===== Material Icons ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ===== CSS Custom Properties ===== */

/* Light Theme (Default) */
:root,
[data-theme="light"] {
    --bg-page: #fafafa;
    --bg-paper: #ffffff;
    --bg-elevated: #ffffff;
    --bg-hover: #f5f5f5;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    
    --border-light: #e8e8ec;
    --border-medium: #d0d0d8;
    
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-hover: #1d4ed8;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-page: #0f0f12;
    --bg-paper: #18181c;
    --bg-elevated: #1e1e24;
    --bg-hover: #26262e;
    
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0ac;
    --text-muted: #6a6a78;
    
    --border-light: #2a2a32;
    --border-medium: #3a3a44;
    
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-hover: #60a5fa;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ===== Base Styles ===== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== Page Structure ===== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Theme Toggle ===== */

.theme-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-hover);
    border-radius: 10px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-paper);
}

.theme-btn.active {
    color: var(--accent);
    background: var(--bg-paper);
}

.theme-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ===== Header ===== */

.site-header {
    padding: 60px 48px 48px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-paper);
}

.header-content {
    max-width: none;
}

.site-title {
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.1;
}

.site-tagline {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== Main Content ===== */

.main-content {
    flex: 1;
    padding: 60px 48px;
}

/* ===== Two-Column Layout ===== */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.projects-column {
    min-width: 0;
}

.projects-section {
    max-width: none;
    margin: 0 0 48px;
}

.projects-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 28px;
}

/* ===== Projects Grid ===== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 24px;
}

/* ===== Project Card ===== */

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-card:hover .project-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.project-card:hover .project-icon {
    color: var(--accent-hover);
}

/* Project Header - Icon + Title + Badge */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Project Badge */
.project-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    margin-left: auto;
    flex-shrink: 0;
}

/* Project Icon */
.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.project-icon .material-symbols-outlined {
    font-size: 24px;
}

/* Project Title */
.project-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    padding-top: 2px;
}

/* Project Description */
.project-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

/* Project Meta */
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.project-team {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.project-arrow .material-symbols-outlined {
    font-size: 20px;
}

/* Placeholder Card */
.project-card--placeholder {
    background: var(--bg-paper);
    border: 1px dashed var(--border-medium);
    cursor: default;
    min-height: auto;
    padding: 32px;
}

.project-card--placeholder:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-medium);
}

.project-card--placeholder .project-header {
    align-items: center;
    margin-bottom: 0;
}

.project-card--placeholder .project-icon {
    color: var(--accent);
    opacity: 0.5;
}

.project-card--placeholder:hover .project-icon {
    color: var(--accent);
}

.project-card--placeholder .project-description--placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
    flex: 1;
}

/* ===== Education Sidebar ===== */

.education-sidebar {
    position: sticky;
    top: 60px;
}

.education-sidebar .section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ===== Timeline ===== */

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-light);
    border-radius: 1px;
}

.timeline-entry {
    position: relative;
    padding-bottom: 32px;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--bg-paper);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-degree {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.timeline-date {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.timeline-program {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.timeline-institution {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-institution .material-symbols-outlined {
    font-size: 16px;
    color: var(--accent);
}

.timeline-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 22px;
}

.timeline-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.timeline-label {
    color: var(--text-muted);
    font-weight: 400;
}

/* Upcoming/Potential Timeline Entry */
.timeline-entry--upcoming {
    opacity: 0.5;
}

.timeline-entry--upcoming .timeline-marker {
    border-color: var(--text-muted);
    border-style: dashed;
}

.timeline-entry--upcoming .timeline-content {
    border-style: dashed;
    background: transparent;
}

.timeline-entry--upcoming .timeline-degree {
    color: var(--text-muted);
}

.timeline-entry--upcoming .timeline-program {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Footer ===== */

.site-footer {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    background: var(--bg-paper);
}

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

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .education-sidebar {
        position: static;
        order: -1;
    }
    
    .timeline {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-entry {
        padding-bottom: 0;
        flex: 1;
        min-width: 250px;
    }
    
    .timeline-marker {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 48px 24px 36px;
    }
    
    .main-content {
        padding: 40px 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .site-footer {
        padding: 20px 24px;
        flex-direction: column-reverse;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 40px 16px 32px;
    }
    
    .main-content {
        padding: 32px 16px;
    }
    
    .site-footer {
        padding: 16px;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .site-tagline {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .timeline-entry {
        min-width: 100%;
    }
}

