/* Boosted Users Page Styles */

:root {
    --boost-primary: #ff6b6b;
    --boost-secondary: #ff8787;
    --boost-success: #51cf66;
    --boost-bg: #f8f9fa;
    --boost-border: #e9ecef;
    --boost-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

/* Fix for page layout to work with header properly */
.boosted-users-page {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.boosted-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    position: relative;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.boosted-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.boosted-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.boosted-hero h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.boosted-hero p {
    font-size: 1.3rem;
    margin: 0 0 30px 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.boost-cta {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--boost-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.boost-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--boost-shadow);
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--boost-primary);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   BOOSTED SECTION
   ============================================================ */

.boosted-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin: 0;
    color: #333;
}

.refresh-btn {
    padding: 10px;
    background: var(--boost-bg);
    border: 1px solid var(--boost-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--boost-primary);
    border-color: var(--boost-primary);
    color: white;
    transform: rotate(180deg);
}

.refresh-btn.spinning {
    animation: spin 0.5s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   BOOSTED GRID
   ============================================================ */

.boosted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.boosted-card {
    background: white;
    border: 2px solid var(--boost-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--boost-shadow);
}

.boosted-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
    border-color: var(--boost-primary);
}

.boost-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--boost-primary) 0%, var(--boost-secondary) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.boost-badge svg {
    animation: zap 1.5s ease-in-out infinite;
}

@keyframes zap {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.user-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 20px;
}

.user-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--boost-primary);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--boost-success);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid white;
}

.user-info {
    text-align: center;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.user-username {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.user-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 10px 0 0 0;
}

/* ============================================================
   BOOST TIMER
   ============================================================ */

.boost-timer {
    margin: 20px 0;
}

.timer-bar {
    height: 8px;
    background: var(--boost-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--boost-primary) 0%, var(--boost-secondary) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.timer-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ============================================================
   VISIT PROFILE BUTTON
   ============================================================ */

.visit-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--boost-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.visit-profile-btn:hover {
    background: #e85e5e;
    transform: scale(1.02);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--boost-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: var(--boost-primary);
    border-color: var(--boost-primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #666;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 30px 0;
}

.empty-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--boost-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.empty-cta:hover {
    background: #e85e5e;
    transform: translateY(-2px);
}

/* ============================================================
   LOADING & ERROR STATES
   ============================================================ */

.loading-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--boost-border);
    border-top-color: var(--boost-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.loading-state p {
    color: #666;
    font-size: 1.1rem;
}

.error-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.error-state p {
    color: #e85e5e;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 30px;
    background: var(--boost-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: #e85e5e;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .boosted-hero h1 {
        font-size: 2rem;
    }

    .boosted-hero p {
        font-size: 1rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }

    .boosted-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}
