/*
======================================================
1. Global Reset & Typography (White Theme)
======================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* White Theme Variables */
    --color-background: #ffffff;
    --color-foreground: #222222; /* Main text color */
    --color-text-secondary: #555555; /* Sub text color */
    
    --color-primary: #0056b3; /* Academic Blue */
    --color-secondary: #6f42c1; /* Deep Purple */
    --color-border: #e0e0e0; /* Light border */
    --color-accent-bg: #f8f9fa; /* Very light gray */

    /* [Changed] Highlights: Light Gold for Awards */
    --color-highlight-best: #d4a017; /* Dark Gold (Border/Icon) */
    --color-highlight-bg-best: #fffbf0; /* Very Light Champagne Gold (Background) */
    
    --color-highlight-alt: #00796b; /* Teal */
    --color-highlight-bg-alt: #e0f2f1; /* Light teal bg */
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    color: #111; 
    margin-bottom: 0.5em;
}

h1 { 
    font-family: var(--font-sans); 
    font-weight: 800;
    font-size: 2.5em; 
    letter-spacing: -1px;
}

h2 { 
    font-family: var(--font-mono);
    font-size: 1.6em; 
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 25px;
    text-transform: uppercase;
    display: inline-block;
}

h3 { 
    font-size: 1.2em; 
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003d82; 
    text-decoration: underline;
}

ul {
    list-style: none;
}

/*
======================================================
2. Header & Navigation
======================================================
*/

.main-header {
    background-color: var(--color-background);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
    }
}

.profile-info {
    flex-grow: 1;
}

.subtitle {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-top: -10px;
    margin-bottom: 15px;
}

.tagline {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Badge Style Updated for Gold */
.awards-highlight {
    background-color: var(--color-highlight-bg-best);
    color: #8a6d0b; /* Darker gold/brown text for readability */
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--color-highlight-best);
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
}

.awards-highlight i {
    margin-right: 8px;
    color: var(--color-highlight-best);
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 25px;
}

.main-nav a {
    padding: 5px 0;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.main-nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/*
======================================================
3. Main Content Sections
======================================================
*/
main {
    padding-top: 40px;
}

.section {
    padding: 30px 0;
}

hr {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: 20px 0;
}

/* About Me / Summary */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.expertise-tags span {
    background-color: var(--color-accent-bg);
    color: var(--color-foreground);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid var(--color-border);
}

/*
======================================================
4. Research Projects (Grid Layout)
======================================================
*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card-concise {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card-concise:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--color-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.proj-badge {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 0.75em;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.proj-date {
    font-size: 0.8em;
    color: #888;
    font-family: var(--font-mono);
}

.proj-title {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.proj-meta {
    font-size: 0.85em;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.proj-desc {
    font-size: 0.95em;
    color: var(--color-foreground);
    flex-grow: 1;
}

/*
======================================================
5. Experience & Timeline
======================================================
*/
.timeline-item, .experience-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
    position: relative;
}

.timeline-item::before, .experience-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.meta-date {
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85em;
    margin-bottom: 5px;
    display: block;
}

/*
======================================================
6. Publications & Awards
======================================================
*/
.publication-list li {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid transparent; 
}

.pub-title {
    display: block;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

.pub-meta {
    display: block;
    font-size: 0.9em;
    color: var(--color-primary);
    margin: 4px 0;
    font-style: italic;
}

.pub-authors {
    display: block;
    font-size: 0.9em;
    color: var(--color-text-secondary);
}

/* Highlights (Updated to Gold) */
.publication-item.highlight {
    background-color: var(--color-highlight-bg-best);
    border-left-color: var(--color-highlight-best);
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
}

.publication-item.highlight-alt {
    background-color: var(--color-highlight-bg-alt);
    border-left-color: var(--color-highlight-alt);
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
}

/* Awards List */
.list-minimal li {
    padding: 5px 0 5px 15px;
    border-left: 3px solid var(--color-border);
    margin-bottom: 8px;
}

.list-minimal li:hover {
    border-left-color: var(--color-primary);
}

/*
======================================================
7. Footer
======================================================
*/
.main-footer {
    background-color: var(--color-accent-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

.main-footer p {
    color: var(--color-text-secondary);
    margin: 8px 0;
    font-size: 0.95em;
}

.copyright {
    margin-top: 15px;
    font-size: 0.85em;
    color: #888;
}

/*
======================================================
9. News Slider Section
======================================================
*/
.news-slider-wrapper {
    width: 100%;
    overflow-x: auto; /* 가로 스크롤 허용 */
    overflow-y: hidden;
    cursor: grab; /* 마우스 커서 모양 */
    -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
    padding-bottom: 20px; /* 스크롤바 공간 확보 */
    scrollbar-width: none; /* 파이어폭스 스크롤바 숨김 */
}

/* 크롬, 사파리 스크롤바 숨김 */
.news-slider-wrapper::-webkit-scrollbar {
    display: none; 
}

.news-slider-wrapper.active {
    cursor: grabbing; /* 드래그 중 커서 모양 */
}

.news-track {
    display: flex;
    gap: 15px; /* 카드 사이 간격 */
    width: max-content; /* 내용물만큼 너비 확보 */
    padding: 5px 5px 15px 5px; /* 그림자 잘리지 않게 여백 */
}

.news-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    width: 280px; /* 카드 고정 너비 */
    flex-shrink: 0; /* 줄어들지 않게 고정 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none; /* 드래그 시 텍스트 선택 방지 */
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* 수상 뉴스 강조 (골드 테마) */
.news-card.highlight {
    background-color: var(--color-highlight-bg-best);
    border-color: var(--color-highlight-best);
    border-left-width: 4px;
}

.news-date {
    display: block;
    font-size: 0.85em;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.news-content {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--color-foreground);
    margin: 0;
}

.news-content a {
    font-weight: 600;
    margin-left: 3px;
}
