/*****************************************
 * damdanote/list.css
 *****************************************/

/*-----------------------------------------
 * 페이지 섹션
 -----------------------------------------*/
#damdanote-list-section {
    padding: 0 !important;
}

/*-----------------------------------------
 * 헤더
 -----------------------------------------*/
.note-list-header {
    text-align: center;
    margin-bottom: 48px;
}

.note-list-title {
    font-size: 2rem;
    font-weight: 700;
    color: #393939;
    margin-bottom: 8px;
}

.note-list-subtitle {
    font-size: 1rem;
    color: #808080;
    margin-bottom: 24px;
}

/*-----------------------------------------
 * 검색바
 -----------------------------------------*/
.note-search-form {
    max-width: 480px;
    margin: 0 auto 12px;
}

.note-search-wrap {
    display: flex;
    border: 1.5px solid #e0e0e0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s;
}

.note-search-wrap:focus-within {
    border-color: var(--damda-sig-color);
}

.note-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    background: transparent;
    color: #393939;
}

.note-search-btn {
    background: none;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    color: #808080;
    transition: color .2s;
}

.note-search-btn:hover {
    color: var(--damda-sig-color);
}

.note-search-result-text {
    font-size: 0.875rem;
    color: #808080;
    margin-top: 8px;
    margin-bottom: 0;
}

/*-----------------------------------------
 * 빈 상태
 -----------------------------------------*/
.note-empty-text {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 1rem;
}

/*-----------------------------------------
 * 컨테이너 full-width
 -----------------------------------------*/
.note-list-container {
    width: 100%;
    padding: 15px;
}

/*-----------------------------------------
 * 카드 그리드
 -----------------------------------------*/
#note-list-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.note-item-wrap {
    padding: 15px;
    margin-bottom: 0;
}

/*-----------------------------------------
 * 카드
 -----------------------------------------*/
.note-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 0;
    overflow: hidden;
}

.note-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    text-decoration: none;
    color: inherit;
}

.note-thumb-wrap {
    width: 100%;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: 0;
}

.note-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .35s ease;
}

.note-card-link:hover .note-thumb-img {
    transform: scale(1.04);
}

.note-info-wrap {
    padding: 6px 4px 8px;
}

.note-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #393939;
    margin-bottom: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-desc {
    font-size: 0.825rem;
    color: #808080;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.note-card-date {
    font-size: 0.775rem;
    color: #aaa;
}

.note-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.note-tag-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f8f4;
    color: var(--damda-sig-color);
    border-radius: 12px;
    font-size: 0.725rem;
    font-weight: 500;
    white-space: nowrap;
}

/*-----------------------------------------
 * Skeleton UI
 -----------------------------------------*/
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.note-skeleton-item {
    padding: 12px;
}

.skeleton-thumb {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-body {
    padding: 14px 4px 0;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-text.short  { width: 70%; }
.skeleton-text.xshort { width: 45%; }

/*-----------------------------------------
 * 반응형
 -----------------------------------------*/
@media (max-width: 575.98px) {
    .note-list-title {
        font-size: 1.5rem;
    }

    .note-card-title {
        font-size: 0.875rem;
    }

    .note-card-desc {
        display: none;
    }

    #note-list-wrap > div {
        padding: 4px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .note-card-desc {
        font-size: 0.8rem;
    }

    #note-list-wrap > div {
        padding: 4px;
    }
}
