/* ===== Hacker News 인기글 목록 페이지 ===== */

.hn-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.hn-card {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(134, 239, 172, 0.28);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.hn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(134, 239, 172, 0.35);
    border-color: #86efac;
}

.hn-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hn-rank.top-rank {
    background: #ef4444;
}

.hn-card-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 55%, #bbf7d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px 16px;
}

.hn-card-thumbnail-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3f6212;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.hn-card-external {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: #65a30d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    z-index: 2;
}

.hn-card-external:hover {
    background: #86efac;
    color: white;
}

.hn-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hn-card-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
}

.hn-card-title-link {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.hn-card-title-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.hn-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.hn-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hn-card-score {
    color: #65a30d !important;
    font-weight: 700;
}

.hn-card-comments i {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .hn-card-thumbnail {
        height: 120px;
        padding: 16px 12px;
    }

    .hn-card-thumbnail-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .hn-card-content {
        padding: 12px;
    }

    .hn-card-title {
        font-size: 1rem;
    }

    .hn-card-meta {
        gap: 6px;
        font-size: 0.72rem;
    }
}
