@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 {
    margin-bottom: 1.2rem;
    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;
}

article h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 10px 0;
}

article p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 10px;
    /* 긴 텍스트 생략 효과 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 날짜용 time 태그 */
time {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.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: #ffffff !important; /* 글자색 흰색으로 강제 */
    padding: 8px 12px !important;
}

/* 3. 활성화된(마우스 올린) 아이템 색상 */
.tagify__dropdown__item--active {
    background: var(--primary-color) !important; /* 강조색 (예: 파란색) */
    color: #000000 !important; /* 글자색 반전 */
}