/* 노트 카드 UI 개선 */

/* space-badge와 weight-badge 숨기기 */
.space-badge,
.weight-badge {
    display: none !important;
}

/* 카드 뷰 세로 길이 늘리기 (네이버메모 스타일) */
.note-card {
    min-height: 160px !important;
    height: auto !important;
    max-height: 240px !important;
    overflow: visible !important; /* 드롭다운 메뉴가 잘리지 않도록 */
}

/* 카드 제목 — note-card-title h3만 대상 */
.note-card .note-card-title,
.note-card h3.note-card-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* 그리드 뷰 아이템도 동일하게 */
.note-item {
    min-height: 160px !important;
    height: auto !important;
    overflow: visible !important; /* 드롭다운 메뉴가 잘리지 않도록 */
}

.note-item .note-title,
.note-item h3 {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

/* 카드 내용 영역 조정 */
.note-card .note-content,
.note-item .note-content {
    flex: 1;
    overflow: hidden;
    margin-top: 4px;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    color: #A0A0A0 !important;

    /* 줄 수 제한 (5줄까지만 표시) */
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

/* 카드 내용 모든 요소 — 13px 통일 (h1~h6 포함) */
.note-card .note-content > *,
.note-card .note-content p,
.note-card .note-content h1,
.note-card .note-content h2,
.note-card .note-content h3,
.note-card .note-content h4,
.note-card .note-content h5,
.note-card .note-content h6,
.note-card .note-content li,
.note-card .note-content span,
.note-item .note-content > *,
.note-item .note-content p,
.note-item .note-content h1,
.note-item .note-content h2,
.note-item .note-content h3,
.note-item .note-content h4,
.note-item .note-content h5,
.note-item .note-content h6,
.note-item .note-content li {
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.6 !important;
    margin: 0 0 4px 0 !important;
    color: #A0A0A0 !important;
}

/* 메타 정보 영역 하단 고정 */
.note-meta {
    margin-top: auto;
    padding-top: 12px;
}

/* 카드 헤더와 내용 사이 간격 */
.note-card-header {
    margin-bottom: 4px !important;
}

/* 카드 전체 패딩 조정 */
.note-card,
.note-item {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
