@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ============================================================
   샤오홍슈 인플루언서 공개 페이지 CSS
============================================================ */

:root {
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --xhs-red: #ff2442;
    --xhs-red-dark: #e01f3a;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --border-color: #e3e6f0;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    --gradient-xhs: linear-gradient(135deg, var(--xhs-red) 0%, var(--xhs-red-dark) 100%);
}

* {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ============================================================
   헤더
============================================================ */
.pub-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.pub-logo .logo-badge {
    background: var(--gradient-xhs);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pub-header-desc {
    font-size: 13px;
    color: var(--text-medium);
}

/* ============================================================
   히어로 배너
============================================================ */
.pub-hero {
    background: var(--gradient-xhs);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pub-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 250px; height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.pub-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.pub-hero h1 {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.pub-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
}

.pub-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.pub-hero .stat-item {
    text-align: center;
}

.pub-hero .stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    display: block;
}

.pub-hero .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

/* ============================================================
   필터
============================================================ */
.pub-filter-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pub-filter-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label-pub {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-medium);
    white-space: nowrap;
}

.cat-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    background-color: var(--white);
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
}

.cat-tag:hover {
    border-color: var(--xhs-red);
    color: var(--xhs-red);
    background-color: #fff5f6;
}

.cat-tag.active {
    background: var(--gradient-xhs);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 36, 66, 0.25);
    font-weight: 600;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* ============================================================
   메인 컨테이너
============================================================ */
.pub-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 36px 40px 60px;
}

/* 결과 카운트 */
.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-count {
    font-size: 14px;
    color: var(--text-medium);
}

.result-count strong {
    color: var(--xhs-red);
    font-size: 18px;
    font-weight: 900;
}

/* ============================================================
   그리드
============================================================ */
.inf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

/* ============================================================
   카드
============================================================ */
.inf-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 22px;
    position: relative;
    text-align: center;
}

.inf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: rgba(255, 36, 66, 0.2);
}

/* 프로필 이미지 */
.inf-avatar-wrap {
    position: relative;
    margin-bottom: 14px;
}

.inf-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    display: block;
    transition: border-color 0.3s ease;
}

.inf-card:hover .inf-avatar {
    border-color: var(--xhs-red);
}

.inf-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 28px;
    border: 3px solid var(--border-color);
}

/* 팔로워 뱃지 (아바타 하단 우측) */
.inf-follower-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--gradient-xhs);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.35);
}

/* 카테고리 뱃지 */
.inf-category {
    display: inline-block;
    padding: 3px 10px;
    background: #eef2ff;
    color: var(--primary-start);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* 채널명 (블러 처리) */
.inf-channel-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    width: 100%;
    filter: blur(5px);
    user-select: none;
    transition: filter 0.3s ease;
    line-height: 1.4;
}

/* 위치 */
.inf-location {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 4px;
}

.loc-kr {
    color: #3b82f6;
    font-weight: 600;
}

.loc-cn {
    color: var(--xhs-red);
    font-weight: 600;
}

/* 팔로워 수 (하단) */
.inf-followers-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f7;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.inf-followers-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--xhs-red);
}

.inf-followers-unit {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 500;
}

/* ============================================================
   문의 CTA (카드 하단)
============================================================ */
.inf-cta {
    margin-top: 10px;
    font-size: 11px;
    color: #bbb;
    text-align: center;
}

/* ============================================================
   페이지네이션
============================================================ */
.pub-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 6px;
    flex-wrap: wrap;
}

.pub-pagination .page-link {
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.pub-pagination .page-link:hover {
    background: #fff5f6;
    border-color: var(--xhs-red);
    color: var(--xhs-red);
}

.pub-pagination .page-link.active {
    background: var(--gradient-xhs);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 36, 66, 0.25);
}

/* ============================================================
   빈 상태
============================================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-medium);
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 15px;
}

/* ============================================================
   문의 플로팅 버튼
============================================================ */
.float-inquiry {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-xhs);
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.4);
    text-decoration: none;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.float-inquiry:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 36, 66, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   푸터
============================================================ */
.pub-footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 24px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-medium);
}

/* ============================================================
   반응형
============================================================ */
@media screen and (max-width: 992px) {
    .pub-hero {
        padding: 40px 24px;
    }

    .pub-hero h1 {
        font-size: 24px;
    }

    .pub-hero .hero-stats {
        gap: 24px;
    }

    .pub-filter-wrap {
        padding: 16px 20px;
    }

    .pub-container {
        padding: 24px 20px 50px;
    }

    .inf-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .pub-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pub-hero .hero-stats {
        gap: 20px;
    }

    .pub-hero .stat-num {
        font-size: 22px;
    }

    .pub-filter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-divider {
        display: none;
    }

    .inf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .float-inquiry {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .inf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .inf-card {
        padding: 20px 14px 16px;
    }

    .inf-avatar, .inf-avatar-placeholder {
        width: 72px;
        height: 72px;
    }

    .inf-followers-num {
        font-size: 18px;
    }
}