/* Creator Browse/Discovery Page Styles */

.creator-browse-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.browse-header .my-subscriptions-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.browse-header .my-subscriptions-btn i {
    color: #ff6b9d;
}

.browse-header .header-content h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browse-header .header-content h1 i {
    color: #4a9eff;
}

.browse-header .header-content p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

/* Filters Section */
.browse-filters {
    margin-bottom: 24px;
}

.search-container {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

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

.search-input::placeholder {
    color: #666;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.search-clear:hover {
    color: #fff;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.category-chip {
    padding: 6px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}

.category-chip:hover {
    border-color: #4a9eff;
    color: #fff;
}

.category-chip.active {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #fff;
}

.sort-container {
    flex-shrink: 0;
}

.sort-select {
    padding: 8px 32px 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

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

/* Results Section */
.browse-results {
    min-height: 200px;
}

.results-header {
    margin-bottom: 16px;
}

.results-count {
    color: #888;
    font-size: 14px;
}

/* Loading State */
.browse-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}

.browse-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.browse-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.browse-empty .empty-icon {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.browse-empty .empty-icon i {
    font-size: 32px;
    color: #666;
}

.browse-empty h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.browse-empty p {
    color: #888;
    margin: 0 0 20px 0;
}

/* Error State */
.browse-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.browse-error .error-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.browse-error .error-icon i {
    font-size: 32px;
    color: #ff4d4d;
}

.browse-error h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.browse-error p {
    color: #888;
    margin: 0 0 20px 0;
}

/* Creators Grid */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Creator Card */
.creator-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.creator-card:hover {
    border-color: #3a3a3a;
}

.creator-card-banner {
    height: 100px;
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.creator-card-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card-banner .banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.creator-card-banner .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.creator-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 3px solid #1a1a1a;
    margin: -36px auto 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card-avatar i {
    font-size: 32px;
    color: #666;
}

.creator-card-content {
    padding: 12px 16px 16px;
    text-align: center;
}

.creator-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.creator-username {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px 0;
}

.creator-bio {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creator-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.creator-categories .cat-tag {
    font-size: 11px;
    color: #888;
    background: #252525;
    padding: 3px 8px;
    border-radius: 10px;
}

.creator-stats {
    margin-bottom: 12px;
}

.creator-stats .stat {
    font-size: 13px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.creator-stats .stat i {
    color: #666;
}

.creator-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.creator-card-footer .price-badge {
    font-size: 12px;
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.creator-card-footer .subscribe-btn {
    flex-shrink: 0;
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

.load-more-btn {
    min-width: 150px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .creator-browse-page {
        padding: 16px;
    }

    .browse-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .browse-header .my-subscriptions-btn {
        align-self: flex-start;
    }

    .browse-header .header-content h1 {
        font-size: 20px;
    }

    .filter-row {
        flex-direction: column;
    }

    .category-filters {
        width: 100%;
        justify-content: flex-start;
    }

    .sort-container {
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }

    .creators-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .creator-card-banner {
        height: 80px;
    }

    .creator-card-avatar {
        width: 64px;
        height: 64px;
        margin-top: -32px;
    }
}

@media (max-width: 480px) {
    .creators-grid {
        grid-template-columns: 1fr;
    }

    .category-chip {
        padding: 5px 10px;
        font-size: 12px;
    }
}
