/**
 * Glossary Term Styles
 * 용어사전 드롭다운 스타일
 */

/* 용어 링크 스타일 */
.glossary-term {
    color: #3b82f6;
    border-bottom: 1px dotted #3b82f6;
    cursor: pointer;
    position: relative;
}

.glossary-term:hover {
    color: #2563eb;
    border-bottom-style: solid;
}

/* 드롭다운 컨테이너 */
.glossary-dropdown {
    position: fixed;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    animation: glossaryFadeIn 0.15s ease-out;
}

@keyframes glossaryFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 드롭다운 헤더 - 용어 정의 */
.glossary-dropdown__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #2a2a4a);
}

.glossary-dropdown__term {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.glossary-dropdown__definition {
    font-size: 12px;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.4;
}

/* 드롭다운 메뉴 항목 */
.glossary-dropdown__menu {
    padding: 8px 0;
}

.glossary-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary, #fff);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.glossary-dropdown__item:hover {
    background: var(--bg-tertiary, #252545);
}

.glossary-dropdown__item--disabled {
    color: var(--text-muted, #666);
    pointer-events: none;
}

.glossary-dropdown__item--disabled .glossary-dropdown__icon {
    opacity: 0.4;
}

.glossary-dropdown__icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.glossary-dropdown__item--glossary .glossary-dropdown__icon {
    color: #10b981;
}

.glossary-dropdown__item--entry .glossary-dropdown__icon {
    color: #3b82f6;
}

.glossary-dropdown__label {
    flex: 1;
}

.glossary-dropdown__badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted, #666);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .glossary-dropdown {
        position: fixed;
        left: 16px !important;
        right: 16px !important;
        max-width: none;
        bottom: auto;
    }
}

/* 오버레이 (모바일용) */
.glossary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
}

.glossary-overlay.is-active {
    display: block;
}
