/* Staff Page Styles */
.staff-hero {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.15) 50%, 
        rgba(52, 152, 219, 0.1) 100%);
    border-radius: 0 0 40px 40px;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.staff-title-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.staff-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a8b1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Filter Tabs */
.staff-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.staff-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card-inner {
    position: relative;
    z-index: 2;
}

/* Staff Avatar */
.staff-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.staff-head {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    image-rendering: pixelated;
    object-fit: cover;
}

.staff-card:hover .staff-head {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.status-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(30, 30, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.online {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
}

.status-indicator.offline {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.status-indicator.online .status-pulse {
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.8); }
}

.staff-role-badge {
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid rgba(30, 30, 46, 0.9);
}

.role-admin { background: linear-gradient(135deg, #ff8c00 0%, #ffa94d 100%); color: #000; }
.role-dev { background: linear-gradient(135deg, #17a2b8 0%, #6fdcff 100%); color: #000; }
.role-host { background: linear-gradient(135deg, #28a745 0%, #6ae28c 100%); color: #000; }

/* Staff Info */
.staff-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.staff-name-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    animation: online-pulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.staff-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.staff-name-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.staff-name-link:hover {
    color: #667eea;
    text-decoration: none;
}

.staff-role {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.staff-status {
    margin-top: 0.5rem;
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-text.online {
    color: #00ff88;
}

.status-text.offline {
    color: rgba(255, 255, 255, 0.6);
}

/* Staff Actions */
.staff-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.staff-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.staff-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.profile-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.message-btn:hover {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* Loading States */
.loading-spinner-large {
    width: 4rem;
    height: 4rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.empty-state, .error-state {
    grid-column: 1 / -1;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-footer-link {
    background: rgba(102, 126, 234, 0.2) !important;
    border: 1px solid rgba(102, 126, 234, 0.4);
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
}

.staff-footer-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: rgba(102, 126, 234, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .staff-filter-tabs {
        flex-direction: column;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .staff-avatar {
        width: 80px;
        height: 80px;
    }
    
    .staff-name {
        font-size: 1.2rem;
    }
    
    .staff-actions {
        flex-direction: column;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .staff-hero {
        padding: 2rem 0 1.5rem;
        border-radius: 0 0 30px 30px;
    }
    
    .staff-card {
        padding: 1.25rem;
    }
    
    .staff-name-section {
        flex-direction: column;
        gap: 0.5rem;
    }
}