/* ========================================
   포스트 목록
   ======================================== */

.post-list-header {
    text-align: left;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--quantum-border-light);
    margin-bottom: 8px;
    width: 100%;
    max-width: 1024px;
}

.post-list-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--quantum-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-list-header .count {
    font-style: normal;
    color: var(--quantum-point);
    font-weight: 600;
}

/* ========================================
   Quantum 스타일 아티클 카드
   ======================================== */

.article-card {
    width: 100%;
    max-width: 1024px;
    padding: 24px 0;
    border-bottom: 1px solid var(--quantum-border-light);
}

.article-card:last-child {
    border-bottom: none;
}

.article-link {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-family: "Noto Sans Korean", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--quantum-text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    word-break: keep-all;
}

.article-link:hover .article-title {
    color: var(--quantum-point);
}

.article-summary {
    font-size: 16px;
    line-height: 1.5;
    color: var(--quantum-text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    min-width: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--quantum-text-tertiary);
}

.meta-dot {
    color: var(--quantum-text-tertiary);
}

.article-category {
    font-size: 13px;
    color: var(--quantum-text-tertiary);
}

.article-thumbnail {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.article-link:hover .article-thumbnail img {
    transform: scale(1.1);
}

/* 포스트 미리보기 (목록 페이지용) */
.post-preview {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--quantum-border-medium);
}

.post-preview h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0;
    line-height: 1.4;
}

.post-preview h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.post-preview h2 a:hover {
    color: var(--quantum-point);
}

.post-summary {
    color: var(--quantum-text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

/* ========================================
   보호된 글
   ======================================== */

.post-item.protected {
    opacity: 0.7;
}

.post-item.protected .post-thumbnail {
    background: var(--quantum-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-item.protected .post-thumbnail::after {
    content: '🔒';
    font-size: 24px;
}

/* 보호된 글 폼 */
.protected_form {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: var(--quantum-bg-secondary);
    border-radius: 16px;
    text-align: center;
}

.protected_form h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--quantum-text-primary);
    margin-bottom: 12px;
}

.protected_form p {
    color: var(--quantum-text-secondary);
    margin-bottom: 24px;
}

.protected_form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--quantum-border-medium);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.protected_form .btn {
    width: 100%;
    padding: 12px;
    background: var(--quantum-point);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.protected_form .btn:hover {
    background: var(--quantum-point-hover);
}

/* ========================================
   검색 결과 없음
   ======================================== */

.not-found {
    text-align: left;
    padding: 40px 0;
    width: 100%;
    max-width: 1024px;
}

.not-found h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--quantum-text-primary);
    margin-bottom: 16px;
}

.not-found ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.not-found li {
    font-size: 14px;
    color: var(--quantum-text-tertiary);
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.not-found li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--quantum-text-tertiary);
}

/* ========================================
   태그 페이지
   ======================================== */

.tags-page {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    background: var(--quantum-bg-tertiary);
    color: var(--quantum-text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--quantum-point);
    color: white;
}

/* ========================================
   보호글 카드 (모달 방식)
   ======================================== */

.article-card--protected {
    cursor: pointer;
}

.article-card--protected .article-link {
    pointer-events: none;
}

.article-card--protected:hover .article-title {
    color: var(--quantum-point);
}

/* 제목 앞 잠금 아이콘 */
.article-card--protected .protected-icon {
    width: 16px;
    height: 16px;
    color: var(--quantum-text-tertiary);
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

/* 보호글 요약 텍스트 */
.article-card--protected .article-summary {
    color: var(--quantum-text-tertiary);
    font-style: italic;
}

/* 블러 썸네일 영역 */
.article-thumbnail--protected {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e5e8 100%);
    border-radius: 8px;
}

/* 잠금 아이콘 오버레이 */
.protected-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.protected-thumbnail-overlay [data-lucide] {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

/* 호버 효과 */
.article-card--protected:hover .protected-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.article-card--protected:hover .protected-thumbnail-overlay [data-lucide] {
    transform: scale(1.1);
}

/* ========================================
   아티클 리스트 반응형
   ======================================== */

/* 모바일 (700px 이하) */
@media (max-width: 700px) {
    .article-link {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .article-content {
        flex: 7;
        min-width: 0;
    }

    .article-thumbnail {
        flex: 3;
        width: auto;
        height: auto;
        aspect-ratio: 16 / 10;
        margin-bottom: 0;
    }

    .article-title {
        font-size: 18px;
    }

    .post-preview h2 {
        font-size: 22px;
    }

    /* 보호글 모바일 */
    .protected-thumbnail-overlay [data-lucide] {
        width: 40px;
        height: 40px;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .article-card {
        padding: 16px 0;
    }

    .article-title {
        font-size: 16px;
    }

    .article-summary {
        -webkit-line-clamp: 1;
    }

    .article-meta {
        gap: 3px;
    }

    .post-preview h2 {
        font-size: 20px;
    }

    .post-list-header {
        padding: 0 0 16px;
    }

    .post-list-header h1 {
        font-size: 20px;
    }
}
