@charset "UTF-8";

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'dungGeunMo', monospace;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--border-dim);
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

h4 {
    font-size: 1.2rem;
    color: var(--text-dim);
}

p {
    color: var(--text-main);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 1.5rem;
}

li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-dim);
}

li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    align-self: center;
}

strong {
    color: var(--primary-color);
    font-weight: bold;
}

code {
    background: var(--card-bg);
    color: #ff7b72;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

hr {
    border: none;
    border-top: 1px solid var(--text-dim);
    margin: 40px 0;
}

/* 요청하신 small 태그 복구 */
small {
    color: var(--text-dim);
    font-size: 0.8rem;
}

article {
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-dim);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

/* 날짜용 time 태그 */
time {
    color: var(--text-dim);
    font-size: 0.8rem;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* 기본 스타일링 */
    padding: 10px 35px 10px 15px;
    font-family: 'dungGeunMo', monospace;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;

    /* 커스텀 화살표 아이콘 (SVG 데이터) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* 호버 및 포커스 상태 */
select:hover {
    border-color: var(--primary-color);
    background-color: rgba(88, 166, 255, 0.05);
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    /* 포커스 시 화살표 색상을 프라이머리 컬러로 변경 (선택사항) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358a6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* 내부 옵션 스타일 */
select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.tagify {
    --placeholder-color: rgba(255, 255, 255, 0.5) !important;
    --placeholder-color-focus: rgba(255, 255, 255, 0.25) !important;
    --tag-bg: rgba(88, 166, 255, 0.1);
    --tag-text-color: #fff;
    --tag-hover: var(--primary-color);
    --tags-border-color: var(--glass-border);
}

.tagify__tag {
    background: rgba(88, 166, 255, 0.15) !important;
    backdrop-filter: blur(4px);
}

.tagify__dropdown__wrapper {
    background: rgba(26, 29, 35, 0.9) !important; /* 배경색 */
    border-color: var(--glass-border) !important; /* 테두리색 */
    border-width: 1px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 2. 드롭다운 아이템 텍스트 색상 및 간격 */
.tagify__dropdown__item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 15px;
    border-bottom: 1px solid var(--glass-border);
}

.tagify__dropdown__item:hover {
    color: #ffffff !important;
    background: rgba(58, 182, 255, 0.1);
}

.tagify__loading {
    margin-right: 10px; /* 로딩 스피너 위치 */
}

/* 3. 활성화된(마우스 올린) 아이템 색상 */
.tagify__dropdown__item--active {
    background: var(--primary-color) !important; /* 강조색 (예: 파란색) */
    color: #ffffff !important;
}

/* 4. 활성화된 상태의 하위 요소(strong, small) 색상 강제 지정 */
.tagify__dropdown__item--active strong {
    color: #ffffff !important;
}

.tagify__dropdown__item--active small {
    color: rgba(255, 255, 255, 0.8) !important;
}