/* CSS Variables - 깔끔하고 모던한 색상 팔레트 */
:root {
    /* Main Colors - 메인 색상 */
    --bg-primary: #F8FAFC;      /* 더 밝은 그레이 배경 */
    --bg-secondary: #F1F5F9;     /* 더 밝은 보조 그레이 배경 */
    --bg-card: #FFFFFF;          /* 카드 배경 */
    --bg-input: #FEFEFE;         /* 더 밝은 입력창 배경 */
    
    /* Accent Colors - 강조 색상 */
    --primary-color: #5AD4D4;    /* 아쿠아 블루 */
    --secondary-color: #7EDAC7;  /* 민트 */
    --accent-light: #B0E0E6;     /* 연한 파란색 */
    
    /* Text Colors - 텍스트 색상 */
    --text-primary: #374151;     /* 더 밝은 기본 텍스트 */
    --text-secondary: #6B7280;   /* 더 밝은 보조 텍스트 */
    --text-muted: #9CA3AF;       /* 더 밝은 흐린 텍스트 */
    --text-white: #FFFFFF;       /* 흰색 텍스트 */
    
    /* Border Colors - 테두리 색상 */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-accent: var(--accent-light);
    
    /* Status Colors - 상태 색상 */
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    
    /* Spacing - 간격 */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Border Radius - 모서리 둥글기 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows - 그림자 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography - 타이포그래피 */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* Reset & Base Styles - 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
}

/* Header - 깔끔한 헤더 */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.logo-text {
    font-weight: var(--font-weight-bold);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.logo-icon {
    font-size: var(--font-size-3xl);
}

/* Language Selector - 언어 선택기 */
.language-selector {
    margin-left: var(--spacing-4);
}

/* 헤더 언어 선택기 */
.header-language-selector {
    margin-left: var(--spacing-4);
    display: flex;
    align-items: center;
}

.header-language-selector .language-select {
    min-width: 120px;
    font-size: var(--font-size-sm);
}

.language-select {
    padding: var(--spacing-2) var(--spacing-3);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.language-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 212, 212, 0.1);
    outline: none;
}

.language-select:hover {
    border-color: var(--primary-color);
}

.language-select:active {
    transform: none;
}

/* Search Container - 검색 컨테이너 */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 var(--spacing-6);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 212, 212, 0.1);
}

.search-input {
    flex: 1;
    padding: var(--spacing-3) var(--spacing-4);
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.search-icon {
    font-size: var(--font-size-base);
}

/* Navigation - 깔끔한 네비게이션 */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: var(--spacing-3) var(--spacing-5);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Main Container - 메인 컨테이너 */
.main {
    padding: var(--spacing-8) 0;
    background: var(--bg-primary);
}

.main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

/* Main Page - 메인 페이지 */
.main-page {
    text-align: center;
}

/* Hero Section - 깔끔한 히어로 섹션 */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-16);
    padding: var(--spacing-12) 0;
}

.hero-title {
    font-size: 1.95rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
    line-height: var(--line-height-tight);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.hero-action {
    margin-top: var(--spacing-8);
}

.education-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 212, 212, 0.3);
}

.education-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 212, 212, 0.4);
    text-decoration: none;
}

.education-guide-btn .btn-icon {
    font-size: 1.1rem;
}

.education-guide-btn .btn-text {
    font-weight: 500;
}

/* Category Grid - 카테고리 그리드 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-16);
}

/* Category Cards - 깔끔한 카테고리 카드 */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-6);
    position: relative;
    z-index: 2;
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(90, 212, 212, 0.2));
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
    position: relative;
    z-index: 2;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-8);
    position: relative;
    z-index: 2;
    line-height: var(--line-height-relaxed);
}

.category-examples {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    justify-content: center;
    position: relative;
    z-index: 2;
}

.example-tag {
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.example-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-color);
}

/* Converter Section - 변환기 섹션 */
.converter-section {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.converter-section.hidden {
    display: none;
}

.converter-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-md);
}

.converter-header {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.back-btn {
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-6);
}

.back-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.back-icon {
    font-size: var(--font-size-lg);
}

.converter-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
}

.converter-description {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Converter Form - 변환기 폼 */
.converter-form {
    max-width: 700px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.converter-input {
    padding: var(--spacing-4) var(--spacing-5);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 212, 212, 0.1);
}

.converter-input:read-only {
    background: #F8FAFC;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.unit-select {
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 212, 212, 0.1);
}

/* Swap Button - 교체 버튼 */
.swap-btn {
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: var(--spacing-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.swap-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.swap-icon {
    transition: transform 0.3s ease;
}

.swap-btn:hover .swap-icon {
    transform: rotate(180deg);
}

/* Converter Actions - 변환기 액션 */
.converter-actions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
}

.convert-btn,
.clear-btn {
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.convert-btn {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.convert-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.clear-btn {
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.clear-btn:hover {
    background: #F1F5F9;
    border-color: var(--border-medium);
}

/* Info Section - 정보 섹션 */
.info-section {
    display: block;
    margin-top: var(--spacing-8);
}

.info-section.hidden {
    display: none;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.unit-info {
    display: grid;
    gap: var(--spacing-6);
}

.unit-item {
    padding: var(--spacing-4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #F8F9FA;  /* 밝은 회색 배경 */
    transition: all 0.3s ease;
}

.unit-item:hover {
    background: #F1F3F4;  /* 호버 시 더 밝은 회색 */
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.unit-item h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.unit-item p {
    color: #6B7280;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2);
}

.unit-formula {
    background: #FEFEFE;
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: #374151;
    border-left: 3px solid var(--primary-color);
}

/* Examples Section - 예시 섹션 */
.examples-section {
    display: block;
    margin-top: var(--spacing-8);
}

.examples-section.hidden {
    display: none;
}

.examples-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.examples-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.examples-grid {
    display: grid;
    gap: var(--spacing-6);
}

.example-item {
    padding: var(--spacing-4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.example-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.example-item h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.example-item p {
    color: #6B7280;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2);
}

.example-value {
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    display: inline-block;
}

/* Related Section - 관련 섹션 */
.related-section {
    display: block;
    margin-top: var(--spacing-8);
}

.related-section.hidden {
    display: none;
}

.related-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.related-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.related-grid {
    display: grid;
    gap: var(--spacing-6);
}

.related-item {
    padding: var(--spacing-4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.related-item h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.related-item p {
    color: #6B7280;
    line-height: var(--line-height-relaxed);
}

/* History Section - 히스토리 섹션 */
.history-section {
    display: block;
    margin-top: var(--spacing-8);
}

.history-section.hidden {
    display: none;
}

.history-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.history-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.history-list {
    display: grid;
    gap: var(--spacing-4);
}

.history-item {
    padding: var(--spacing-4) var(--spacing-6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.history-conversion {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.history-time {
    font-size: var(--font-size-sm);
    color: #9CA3AF;
}

/* Search Results - 검색 결과 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F8FAFC;
    border-left: 3px solid var(--primary-color);
}

.search-result-item.selected {
    background: var(--primary-color);
    color: var(--text-white);
    border-left: 3px solid var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-result-item.selected .search-result-category,
.search-result-item.selected .search-result-title,
.search-result-item.selected .search-result-description {
    color: var(--text-white);
}

.search-result-category {
    font-size: var(--font-size-sm);
    color: #9CA3AF;
    margin-bottom: var(--spacing-1);
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.search-result-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-1);
}

.search-result-description {
    font-size: var(--font-size-sm);
    color: #6B7280;
    line-height: 1.4;
}

/* Toast Messages - 토스트 메시지 */
.toast {
    position: fixed;
    top: var(--spacing-6);
    right: var(--spacing-6);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-4);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #F8FAFC;
    color: var(--text-primary);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes - 유틸리티 클래스 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Focus Styles - 포커스 스타일 */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles - 인쇄 스타일 */
@media print {
    .header,
    .nav-list,
    .footer,
    .converter-actions {
        display: none !important;
    }
    
    .converter-card,
    .info-card,
    .examples-card {
        box-shadow: none !important;
        border: 1px solid var(--border-light) !important;
    }
}

/* Footer - 깔끔한 푸터 */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-16) 0 var(--spacing-8);
    margin-top: var(--spacing-20);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-12);
    margin-bottom: var(--spacing-8);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-2);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--border-light);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

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

/* Footer Language Selector - 푸터 언어 선택기 */
.footer-bottom .language-selector {
    margin-left: 0;
}

.footer-bottom .language-select {
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.footer-bottom .language-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(90, 212, 212, 0.1);
}

.footer-bottom .language-select:hover {
    border-color: var(--primary-color);
}

/* FAQ Section - 깔끔한 FAQ 섹션 */
.faq-section {
    padding: var(--spacing-16) 0;
}

.faq-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.faq-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.faq-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--spacing-6);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-6) var(--spacing-6);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.faq-answer p {
    margin-bottom: var(--spacing-3);
}

.faq-answer ul {
    margin-left: var(--spacing-4);
}

.faq-answer li {
    margin-bottom: var(--spacing-2);
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* FAQ 카테고리 스타일 */
.faq-category {
    margin-bottom: var(--spacing-8);
}

.faq-category h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-3);
    border-bottom: 2px solid var(--border-light);
}

/* FAQ 아코디언 애니메이션 개선 */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
} 

/* Tips Section - 변환 팁 섹션 */
.tips-section {
    padding: var(--spacing-16) 0;
}

.tips-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

.tips-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.tips-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.tips-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.tips-category {
    margin-bottom: var(--spacing-8);
}

.tips-category h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-3);
    border-bottom: 2px solid var(--border-light);
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-4);
    display: flex;
    gap: var(--spacing-4);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.tip-content {
    flex: 1;
}

.tip-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.tip-table {
    margin-bottom: var(--spacing-4);
}

.tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.tip-row:last-child {
    border-bottom: none;
}

.tip-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.tip-value {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

.tip-note {
    color: var(--text-secondary);
    font-style: italic;
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-3);
    padding: var(--spacing-3);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.tip-list {
    margin-bottom: var(--spacing-4);
}

.tip-item {
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
} 

/* 언어 변경 시 부드러운 전환 */
.logo-text,
.hero-title,
.hero-description,
.nav-link,
.category-title,
.category-description,
.converter-description,
.convert-btn,
.clear-btn,
.back-text {
    transition: color 0.2s ease, opacity 0.2s ease;
} 

/* 변환기 액션 버튼들 */
.converter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 변환팁 버튼 컨테이너 */
.tips-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 변환팁 버튼 */
.tips-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.tips-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.tips-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.tips-icon {
    font-size: 1.1rem;
}

.tips-text {
    font-weight: 600;
} 

/* 단위 역사 페이지 스타일 */

.history-section {
    margin-bottom: var(--spacing-12);
}

.history-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.history-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-6);
    display: block;
}

.history-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-3);
}

.timeline {
    position: relative;
    padding-left: var(--spacing-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-8);
    padding-left: var(--spacing-6);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-3);
    background: var(--bg-secondary);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    display: inline-block;
}

.timeline-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-4);
}

.timeline-content ul {
    margin: var(--spacing-4) 0;
    padding-left: var(--spacing-6);
}

.timeline-content li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
    line-height: var(--line-height-relaxed);
}

.timeline-content strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.history-fact {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    color: var(--text-white);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin: var(--spacing-4) 0;
    position: relative;
    overflow: hidden;
}

.history-fact::before {
    content: '💡';
    position: absolute;
    right: var(--spacing-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.history-formula {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin: var(--spacing-4) 0;
    font-family: 'Courier New', monospace;
}

.history-formula strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.fun-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-6);
}

.fun-fact-item {
    background: var(--bg-secondary);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.fun-fact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.fun-fact-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
}

.fun-fact-item p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .history-title {
        font-size: var(--font-size-3xl);
    }
    
    .history-description {
        font-size: var(--font-size-base);
    }
    
    .history-card {
        padding: var(--spacing-6);
    }
    
    .timeline {
        padding-left: var(--spacing-6);
    }
    
    .timeline-item {
        padding-left: var(--spacing-4);
    }
    
    .timeline-item::before {
        left: -1.25rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .fun-facts {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    .history-header {
        margin-bottom: var(--spacing-8);
        padding: var(--spacing-6) 0;
    }
    
    .history-title {
        font-size: var(--font-size-2xl);
    }
    
    .history-content h2 {
        font-size: var(--font-size-xl);
    }
    
    .timeline-date {
        font-size: var(--font-size-base);
    }
    
    .timeline-content h3 {
        font-size: var(--font-size-lg);
    }
} 

/* 단위 역사 버튼 스타일 */
.history-button-container {
    text-align: center;
    margin-top: var(--spacing-8);
    padding: var(--spacing-4) 0;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-6);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-light));
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.history-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.history-icon {
    font-size: 1.5rem;
}

.history-text {
    font-weight: var(--font-weight-medium);
} 

/* 개인정보 처리방침 카드 스타일 */
.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.policy-card h2 {
    margin-top: 2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.policy-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.policy-card li {
    margin-bottom: 0.5rem;
} 

/* Education Section - 교육 섹션 */
.education-section {
    padding: var(--spacing-12) 0;
}

.education-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.education-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.education-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto;
}

/* Table of Contents - 목차 */
.edu-toc {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-12);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.edu-toc ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-3);
}

.edu-toc li {
    margin-bottom: var(--spacing-2);
}

.edu-toc a {
    display: block;
    padding: var(--spacing-3) var(--spacing-4);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.edu-toc a:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Education Section Content - 교육 내용 섹션 */
.edu-section {
    margin-bottom: var(--spacing-16);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--border-light);
}

.edu-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-8);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-3);
}

.edu-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    margin-bottom: var(--spacing-8);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.edu-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    border-bottom: 2px solid var(--border-light);
    padding-bottom: var(--spacing-2);
}

.edu-card p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-4);
}

.edu-card strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* Tables - 표 스타일 */
.edu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-6);
    font-size: var(--font-size-base);
}

.edu-table th,
.edu-table td {
    border: 1px solid var(--border-light);
    padding: var(--spacing-4);
    text-align: left;
}

.edu-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.edu-table tr:nth-child(even) {
    background: var(--bg-primary);
}

.edu-table tr:hover {
    background: var(--accent-light);
    color: var(--text-white);
}

.edu-table tr:hover th,
.edu-table tr:hover td {
    border-color: var(--primary-color);
}

/* Examples - 예시 스타일 */
.edu-example {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-6);
}

.edu-example strong {
    color: var(--primary-color);
}

/* Formulas - 공식 스타일 */
.edu-formula {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-4);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: var(--spacing-6);
}

.edu-formula p {
    margin-bottom: var(--spacing-2);
}

.edu-formula strong {
    color: var(--primary-color);
}

/* Lists - 목록 스타일 */
.edu-list {
    list-style: none;
    padding: 0;
}

.edu-list li {
    background: var(--bg-secondary);
    border-left: 4px solid var(--secondary-color);
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
}

.edu-list li strong {
    color: var(--primary-color);
}

/* Practice Problems - 실습 문제 스타일 */
.practice-problem {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.practice-problem p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
}

.show-answer-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
}

.show-answer-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.answer {
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    border-top: 1px dashed var(--border-medium);
}

.answer p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
}

.answer strong {
    color: var(--primary-color);
}

/* Responsive adjustments for education page */
@media (max-width: 768px) {
    .edu-toc ul {
        grid-template-columns: 1fr;
    }

    .edu-section h2 {
        font-size: var(--font-size-xl);
    }

    .edu-card {
        padding: var(--spacing-6);
    }

    .edu-card h3 {
        font-size: var(--font-size-lg);
    }

    .edu-table th,
    .edu-table td {
        padding: var(--spacing-3);
    }
}

@media (max-width: 480px) {
    .education-header h1 {
        font-size: var(--font-size-2xl);
    }

    .education-header p {
        font-size: var(--font-size-base);
    }

    .edu-toc {
        padding: var(--spacing-4);
    }

    .edu-toc a {
        padding: var(--spacing-2) var(--spacing-3);
        font-size: var(--font-size-sm);
    }

    .edu-section h2 {
        font-size: var(--font-size-xl);
    }

    .edu-card {
        padding: var(--spacing-4);
    }

    .edu-card h3 {
        font-size: var(--font-size-base);
    }

    .practice-problem {
        padding: var(--spacing-4);
    }

    .practice-problem p {
        font-size: var(--font-size-base);
    }

    .show-answer-btn {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
} 