/* =================================================================== */
/* 페이지 특정 CSS (인기사이트모음용)                                   */
/* =================================================================== */

.site-category {
    margin-bottom: var(--rg-spacing-double);
}

.site-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--rg-spacing);
    padding-bottom: var(--rg-spacing);
    border-bottom: 2px solid var(--rg-color-border);
}

.site-subcategory-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rg-color-text-secondary);
    margin-bottom: var(--rg-spacing);
    margin-top: var(--rg-spacing-large);
}
.site-category > .site-subcategory-title:first-child {
    margin-top: 0;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--rg-spacing);
}

@media (min-width: 1200px) {
    .site-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.site-link {
    display: flex;
    align-items: center; /* [수정] 세로 중앙 정렬 */
    gap: 12px;
    padding: 12px;
    background-color: var(--rg-color-background-alt);
    border: 1px solid var(--rg-color-border);
    border-radius: var(--rg-border-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 60px; /* 링크 배너 최소 높이 지정 */
}

.site-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--rg-shadow-md);
    border-color: var(--rg-color-primary);
}

.site-favicon {
    width: 24px; /* [수정] 아이콘 크기 살짝 키움 */
    height: 24px;
    flex-shrink: 0;
    background: url('data:image/svg+xml;utf8,<svg ... > ... </svg>') center/contain no-repeat;
}

/* ▼▼▼ [추가] 텍스트 래퍼 및 설명 스타일 ▼▼▼ */
.site-text-wrapper {
    display: flex;
    flex-direction: column;
    /* [수정] 텍스트 영역이 넘치지 않도록 설정 */
    min-width: 0; 
    overflow: hidden;
}

.site-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rg-color-text);
    /* [유지] 긴 텍스트 말줄임표 처리 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    font-size: 0.8rem;
    color: var(--rg-color-text-secondary);
    margin-top: 2px;
    
    /* ▼▼▼ [수정] 2줄 말줄임표 처리 ▼▼▼ */
    line-height: 1.5; /* 줄 간격 설정 */
    height: calc(0.8rem * 1.5 * 2); /* 2줄 높이로 고정 (font-size * line-height * 줄 수) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 텍스트를 최대 2줄까지만 표시 */
}
/* ▲▲▲ [추가] 텍스트 래퍼 및 설명 스타일 ▲▲▲ */