/* 주식 용어사전 스타일 */

/* 네비게이션 바 */
.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 15px 30px;
    margin: -20px -20px 30px -20px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-links a:hover {
    background: #334155;
    color: #f1f5f9;
}

.nav-links a.active {
    background: #3b82f6;
    color: white;
}

/* 헤더 */
.dictionary-header {
    text-align: center;
    margin-bottom: 40px;
}

.dictionary-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.dictionary-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #f1f5f9;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box button {
    padding: 15px 30px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-box button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 검색 결과 */
#search-results {
    margin-top: 20px;
    font-size: 0.9em;
    color: #94a3b8;
    text-align: center;
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
}

.category-tab {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #334155;
    color: #94a3b8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.category-tab:hover {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

.category-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

/* 용어 컨테이너 */
.terms-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* 용어 카드 */
.term-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
}

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

.term-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.term-category {
    background: #334155;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.term-category.슬랭 {
    background: #dc2626;
    color: white;
}

.term-category.ETF {
    background: #3b82f6;
    color: white;
}

.term-category.지표 {
    background: #10b981;
    color: white;
}

.term-english {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-style: italic;
}

.term-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 12px;
}

.term-example {
    background: #0f172a;
    border-left: 3px solid #3b82f6;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
}

.term-example-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.term-example-text {
    color: #94a3b8;
    font-style: italic;
}

.term-warning {
    background: #7f1d1d;
    border-left: 3px solid #ef4444;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    color: #fca5a5;
}

.term-tip {
    background: #1e3a8a;
    border-left: 3px solid #3b82f6;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    color: #93c5fd;
}

.term-formula {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.term-related {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.85rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .terms-container {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        padding: 15px;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* 로딩 애니메이션 */
.loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #94a3b8;
}

