/* Creators List Page Styles */

/* Hero Section */
.creators-hero {
    position: relative;
    background: linear-gradient(to bottom, rgb(15 23 42), rgb(30 41 59), rgb(15 23 42));
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.creators-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.creators-hero-blob-1 {
    position: absolute;
    top: 5rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: rgb(239 68 68 / 0.2);
    border-radius: 9999px;
    filter: blur(96px);
    opacity: 0.3;
}

.creators-hero-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background-color: rgb(249 115 22 / 0.2);
    border-radius: 9999px;
    filter: blur(96px);
    opacity: 0.3;
}

.creators-hero-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .creators-hero-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .creators-hero-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.creators-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, rgb(239 68 68), rgb(249 115 22), rgb(234 179 8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .creators-hero-title {
        font-size: 3.75rem;
    }
}

.creators-hero-subtitle {
    font-size: 1.25rem;
    color: rgb(203 213 225);
    margin-bottom: 2rem;
}

/* Search and Filters */
.search-filters-card {
    background: linear-gradient(to bottom right, rgb(30 41 59 / 0.5), rgb(15 23 42 / 0.5));
    border: 1px solid rgb(51 65 85 / 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.search-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.search-input,
.filter-select {
    padding: 0.75rem 1rem;
    background-color: rgb(15 23 42 / 0.5);
    border: 1px solid rgb(51 65 85);
    border-radius: 0.5rem;
    color: white;
}

.search-input::placeholder {
    color: rgb(100 116 139);
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: rgb(100 116 139);
    box-shadow: 0 0 0 2px rgb(100 116 139 / 0.3);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, rgb(239 68 68), rgb(234 88 12));
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    box-shadow: 0 10px 15px -3px rgb(239 68 68 / 0.5);
}

/* Component-specific styles */
.filter-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* Style the select element within the component */
.filter-select-component {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    background-color: rgb(15 23 42 / 0.5) !important;
    border: 1px solid rgb(51 65 85) !important;
    border-radius: 0.5rem !important;
    color: white !important;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select-component:hover {
    border-color: rgb(71 85 105) !important;
    background-color: rgb(15 23 42 / 0.7) !important;
}

.filter-select-component:focus {
    outline: none !important;
    border-color: rgb(100 116 139) !important;
    box-shadow: 0 0 0 2px rgb(100 116 139 / 0.3) !important;
}

/* Ensure disabled state is visible */
.filter-select-component:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Creators Grid Section */
.creators-grid-section {
    padding: 2rem 0;
    background-color: rgb(15 23 42);
}

.creators-grid-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .creators-grid-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .creators-grid-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.creators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .creators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Creator Card */
.creator-card-link {
    display: block;
    height: 100%;
}

.creator-card {
    background: linear-gradient(to bottom right, rgb(30 41 59), rgb(15 23 42));
    border-radius: 0.75rem;
    border: 1px solid rgb(51 65 85 / 0.5);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creator-card:hover {
    border-color: rgb(239 68 68 / 0.5);
    box-shadow: 0 25px 50px -12px rgb(239 68 68 / 0.2);
    transform: translateY(-0.5rem);
}

.creator-card-header {
    height: 6rem;
    background: linear-gradient(to right, rgb(239 68 68 / 0.2), rgb(249 115 22 / 0.2));
    transition: all 0.3s;
    flex-shrink: 0;
}

.creator-card:hover .creator-card-header {
    background: linear-gradient(to right, rgb(239 68 68 / 0.3), rgb(249 115 22 / 0.3));
}

.creator-card-body {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.creator-card-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: 4px solid rgb(15 23 42);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.creator-card:hover .creator-card-avatar {
    transform: scale(1.1) rotate(5deg);
}

.creator-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    min-height: 1.75rem;
}

.creator-card:hover .creator-card-name {
    color: transparent;
    background: linear-gradient(to right, rgb(239 68 68), rgb(249 115 22));
    -webkit-background-clip: text;
    background-clip: text;
}

.creator-card-bio {
    font-size: 0.875rem;
    color: rgb(148 163 184);
    margin-bottom: 1rem;
    line-height: 1.5;
    height: 3rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creator-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(51 65 85 / 0.5);
    margin-top: auto;
}

.creator-card-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgb(203 213 225);
}

.creator-card-stat-value {
    font-weight: 600;
}

.creator-card-monthly-value {
    font-weight: 700;
    background: linear-gradient(to right, rgb(239 68 68), rgb(249 115 22));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.creator-card-btn {
    width: 100%;
    background: linear-gradient(to right, rgb(239 68 68), rgb(234 88 12));
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.creator-card-btn:hover {
    box-shadow: 0 10px 15px -3px rgb(239 68 68 / 0.5);
    transform: translateY(-0.125rem);
}

/* Empty State */
.creators-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.creators-empty-text {
    font-size: 1.5rem;
    color: rgb(148 163 184);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: rgb(30 41 59);
    border: 1px solid rgb(51 65 85 / 0.5);
    color: rgb(203 213 225);
    border-radius: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination-btn:hover {
    border-color: rgb(239 68 68 / 0.5);
}

.pagination-btn-active {
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgb(239 68 68), rgb(234 88 12));
    color: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}
