/**
 * VERYMORE - 크리에이터 페이지 스타일 (v2.0)
 * 메인 컬러: #E91E8C (새 로고 기반)
 * 개선된 디자인 시스템
 */

/* ========================================
   CSS 변수
   ======================================== */
:root {
    /* 메인 컬러 */
    --primary: #E91E8C;
    --primary-dark: #C71A75;
    --primary-light: #FF4DA6;
    --primary-lighter: #FF6BB8;
    --primary-ultra-light: #FFF5FA;

    /* 중립 컬러 */
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* 간격 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* 둥근 모서리 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* 그림자 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 24px rgba(233, 30, 140, 0.2);

    /* 전환 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   페이지 컨테이너
   ======================================== */
.creators-page {
    min-height: 100vh;
    background: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   히어로 섹션
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.hero-description {
    font-size: 18px;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    line-height: 1.6;
}

/* 히어로 검색 */
.hero-search {
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input-large {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.search-input-large:focus {
    outline: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.search-btn-large {
    padding: 16px 40px;
    background: white;
    color: #E91E8C;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* 인기 태그 */
.popular-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 14px;
    opacity: 0.8;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 섹션 */
.section {
    padding: 80px 0;
}

.section-gray {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.section-title .section-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.5;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap var(--transition-base);
}

.section-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* 필터 섹션 */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filters-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}

/* 검색 박스 */
.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #E91E8C;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #E91E8C;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #C71A75;
}

/* 필터 그룹 */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.filter-select {
    padding: 10px 36px 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23495057' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #E91E8C;
}

/* 크리에이터 그리드 */
.creators-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.creators-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.creators-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========================================
   크리에이터 카드
   ======================================== */
.creator-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creator-card:hover {
    border-color: var(--primary);
}

/* 크리에이터 이미지 */
.creator-image-link {
    display: block;
    position: relative;
    padding-top: 66.67%; /* 3:2 비율 */
    overflow: hidden;
    background: #f8f9fa;
}

.creator-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.creator-card:hover .creator-image {
    transform: scale(1.05);
}

.creator-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* 크리에이터 정보 */
.creator-info {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.creator-header {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.creator-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.creator-name-group {
    flex: 1;
    min-width: 0;
}

.creator-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.creator-name a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-base);
}

.creator-name a:hover {
    color: var(--primary);
}

.creator-specialty {
    display: inline-block;
    font-size: 13px;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* 통계 */
.creator-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.stat-item svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* 액션 버튼 */
.creator-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.creator-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
}

/* ========================================
   버튼 스타일
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ========================================
   페이지네이션
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-2xl);
}

.pagination-btn,
.pagination-number {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-700);
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-weight: 600;
    transition: all var(--transition-base);
}

.pagination-btn:hover,
.pagination-number:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========================================
   빈 상태
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
}

.empty-icon {
    margin-bottom: var(--spacing-lg);
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.empty-description {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* ========================================
   CTA 섹션
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    background: var(--gray-50);
}

/* ========================================
   검색 페이지 전용 스타일
   ======================================== */

/* 검색 헤더 */
.search-header {
    background: var(--white);
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.results-count {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.results-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* 검색 폼 인라인 */
.search-form-inline {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-form-inline .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
}

.search-form-inline .search-input:focus {
    outline: none;
    border-color: #E91E8C;
}

/* 필터 & 정렬 */
.filters-wrapper {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.chip-count {
    padding: 2px 8px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.filter-chip.active .chip-count {
    background: rgba(255,255,255,0.2);
}

/* 정렬 그룹 */
.sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.sort-select {
    padding: 10px 36px 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23495057' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: #E91E8C;
}

/* 12개 그리드 (검색 결과용) */
.creators-grid-12 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* 검색 결과 없음 */
.no-results {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
}

.no-results svg {
    margin-bottom: var(--spacing-lg);
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.no-results p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* 반응형 디자인 */

/* 태블릿 (768px - 1199px) */
@media (max-width: 1199px) {
    .creators-grid-8,
    .creators-grid-4,
    .creators-grid-12 {
        grid-template-columns: repeat(3, 1fr);
    }

    .creators-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-group {
        margin-left: 0;
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .search-form,
    .search-form-inline {
        flex-direction: column;
    }

    .search-btn-large {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title,
    .page-title {
        font-size: 26px;
    }

    .section-title .icon {
        font-size: 28px;
    }

    .creators-grid-6,
    .creators-grid-8,
    .creators-grid-4,
    .creators-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .search-header {
        padding: 30px 0;
    }

    .filter-group {
        width: 100%;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .creator-info {
        padding: 16px;
    }

    .creator-name {
        font-size: 16px;
    }

    .creator-stats {
        gap: 12px;
    }

    .stat-item {
        font-size: 13px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 16px;
    }
}

/* 모바일 (< 576px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
    }

    .popular-tags {
        justify-content: flex-start;
    }

    .section {
        padding: 40px 0;
    }

    .section-title,
    .page-title {
        font-size: 22px;
    }

    .creators-grid-6,
    .creators-grid-8,
    .creators-grid-4,
    .creators-grid-12 {
        grid-template-columns: 1fr;
    }

    .creator-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .filters-section {
        padding: 16px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-title {
        font-size: 24px;
    }
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
