/* ============================================================
   LifeStyleMod – Creators Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.creators-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 50px;
    position: relative;
    z-index: 1;
}

/* ---------- Back Link ---------- */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 22px; color: var(--text-muted); text-decoration: none;
    font-size: 0.875rem; padding: 9px 18px;
    background: rgba(15,23,42,0.4); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 30px; transition: all 0.3s; backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.back-link:hover {
    color: #fff;
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.1);
}

/* ---------- Page Hero ---------- */
.page-hero {
    text-align: center;
    margin-bottom: 40px;
}
.page-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    animation: floatUpDown 4s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(139,92,246,0.4));
}
.page-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 900;
    margin: 12px 0 8px;
}
.page-hero h1 .gradient-text {
    background: linear-gradient(135deg, #fbbf24, #8b5cf6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
.page-hero p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ---------- Stats Row ---------- */
.stats-row {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.stat-badge {
    background: rgba(15,23,42,0.45);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 40px;
    padding: 10px 26px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.stat-badge span {
    color: #a78bfa;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 4px;
}

/* ---------- Search Box ---------- */
.search-box {
    max-width: 420px;
    margin: 0 auto 35px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 12px 50px 12px 22px;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 40px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-appearance: none;
}
.search-box input:focus {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.search-clear {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer; display: none;
}
.search-clear.visible { display: block; }

/* ---------- Filters ---------- */
.filters {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
select {
    padding: 10px 20px;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
select option { background: #1e293b; }

/* ---------- Creators Grid ---------- */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.creator-card {
    padding: clamp(24px, 5vw, 30px) clamp(16px, 3vw, 22px);
    text-align: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.2);
}
.creator-card:hover {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 20px 50px rgba(139,92,246,0.2), 0 0 30px rgba(245,158,11,0.15);
    transform: translateY(-6px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.creator-avatar {
    width: 95px; height: 95px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px;
    overflow: hidden;
    border: 3px solid rgba(139,92,246,0.4);
    box-shadow: 0 0 30px rgba(139,92,246,0.2);
    transition: all 0.3s;
}
.creator-card:hover .creator-avatar {
    border-color: #a78bfa;
    box-shadow: 0 0 45px rgba(139,92,246,0.4);
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }

.creator-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }

.creator-role {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.creator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.creator-stat { text-align: center; }
.creator-stat .number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #a78bfa;
}
.creator-stat .label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.view-btn {
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}
.view-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139,92,246,0.3);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    grid-column: 1 / -1;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.15);
}
.empty-state .icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; color: #cbd5e1; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(245,158,11,0.15);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.page-btn:hover {
    color: #fff;
    border-color: rgba(139,92,246,0.4);
}
.page-btn.active {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139,92,246,0.4);
}
.page-btn:disabled {
    opacity: 0.3; cursor: not-allowed;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .creators-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: center; }
    select { width: 100%; max-width: 280px; }
    .creator-card { padding: 22px 16px; }
}

@media (max-width: 480px) {
    .stats-row { gap: 10px; }
    .stat-badge { padding: 8px 20px; font-size: 0.8rem; }
    .creator-avatar { width: 80px; height: 80px; font-size: 36px; }
}